Skip to content

Commit

Permalink
github action publish update
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Aug 15, 2024
1 parent 872a8fb commit c27a332
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
distribution: 'temurin'
java-version: 21
- name: Publish package
run: gradle publish
run: ./gradlew publish
env:
GITHUB_ACTOR: ${{ secrets.GITHUBACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
32 changes: 32 additions & 0 deletions xemantic-kotlin-swing-dsl-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,35 @@ dependencies {
api(libs.kotlinx.coroutines.core)
runtimeOnly(libs.kotlinx.coroutines.swing)
}

publishing {

publications {
create<MavenPublication>("mavenJava") {
groupId = "com.xemantic.kotlin"
from(components["kotlin"])
pom {
name.set("xemantic-kotlin-swing-dsl-core")
description.set("Kotlin goodies for Java Swing")
url.set("https://github.com/xemantic/xemantic-kotlin-swing-dsl")

licenses {
license {
name.set("GNU Lesser General Public License 3")
url.set("https://www.gnu.org/licenses/lgpl-3.0.en.html")
}
}
developers {
developer {
id.set("morisil")
name.set("Kazik Pogoda")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/xemantic/xemantic-kotlin-swing-dsl")
}
}
}
}
}
32 changes: 32 additions & 0 deletions xemantic-kotlin-swing-dsl-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,35 @@ plugins {
dependencies {
api(libs.kotlinx.coroutines.test)
}

publishing {

publications {
create<MavenPublication>("mavenJava") {
groupId = "com.xemantic.kotlin"
from(components["kotlin"])
pom {
name.set("xemantic-kotlin-swing-dsl-test")
description.set("Kotlin goodies for Java Swing")
url.set("https://github.com/xemantic/xemantic-kotlin-swing-dsl")

licenses {
license {
name.set("GNU Lesser General Public License 3")
url.set("https://www.gnu.org/licenses/lgpl-3.0.en.html")
}
}
developers {
developer {
id.set("morisil")
name.set("Kazik Pogoda")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/xemantic/xemantic-kotlin-swing-dsl")
}
}
}
}
}

0 comments on commit c27a332

Please sign in to comment.