Compare commits
2 commits
392af12f50
...
efcfe5e56f
Author | SHA1 | Date | |
---|---|---|---|
efcfe5e56f | |||
0fa364b47e |
4 changed files with 1 additions and 50 deletions
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
|
@ -35,9 +35,6 @@ jobs:
|
||||||
- name: Publish JS release
|
- name: Publish JS release
|
||||||
run: ./gradlew publishJsPublicationToOSSRHRepository
|
run: ./gradlew publishJsPublicationToOSSRHRepository
|
||||||
|
|
||||||
- name: Delete GnuPG data
|
|
||||||
run: rm -rfv $HOME/.gnupg
|
|
||||||
|
|
||||||
publish-linux:
|
publish-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -31,7 +31,7 @@ publishing {
|
||||||
withType<MavenPublication>().configureEach {
|
withType<MavenPublication>().configureEach {
|
||||||
pom {
|
pom {
|
||||||
name.set("UrlEncoder for Kotlin Multiplatform")
|
name.set("UrlEncoder for Kotlin Multiplatform")
|
||||||
description.set(project.description)
|
description.set("A simple defensive library to encode/decode URL components")
|
||||||
url.set(mavenUrl)
|
url.set(mavenUrl)
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
|
|
|
@ -9,9 +9,6 @@ plugins {
|
||||||
id("com.github.ben-manes.versions")
|
id("com.github.ben-manes.versions")
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "A simple defensive application to encode/decode URL components"
|
|
||||||
|
|
||||||
val deployDir = project.layout.projectDirectory.dir("deploy")
|
|
||||||
val urlEncoderMainClass = "net.thauvin.erik.urlencoder.UrlEncoder"
|
val urlEncoderMainClass = "net.thauvin.erik.urlencoder.UrlEncoder"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
@ -63,28 +60,9 @@ tasks {
|
||||||
dependsOn(fatJar)
|
dependsOn(fatJar)
|
||||||
}
|
}
|
||||||
|
|
||||||
clean {
|
|
||||||
delete(deployDir)
|
|
||||||
}
|
|
||||||
|
|
||||||
withType<DokkaTask>().configureEach {
|
withType<DokkaTask>().configureEach {
|
||||||
dokkaSourceSets.configureEach {
|
dokkaSourceSets.configureEach {
|
||||||
moduleName.set("UrlEncoder Application")
|
moduleName.set("UrlEncoder Application")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val copyToDeploy by registering(Sync::class) {
|
|
||||||
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
|
||||||
from(configurations.jvmRuntimeClasspath) {
|
|
||||||
exclude("annotations-*.jar")
|
|
||||||
}
|
|
||||||
from(jvmJar)
|
|
||||||
into(deployDir)
|
|
||||||
}
|
|
||||||
|
|
||||||
register("deploy") {
|
|
||||||
description = "Copies all needed files to the 'deploy' directory."
|
|
||||||
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
|
||||||
dependsOn(build, copyToDeploy)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,6 @@ plugins {
|
||||||
id("com.github.ben-manes.versions")
|
id("com.github.ben-manes.versions")
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "A simple defensive library to encode/decode URL components"
|
|
||||||
|
|
||||||
val deployDir = project.layout.projectDirectory.dir("deploy")
|
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
commonTest {
|
commonTest {
|
||||||
|
@ -28,11 +24,6 @@ base {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
|
||||||
clean {
|
|
||||||
delete(deployDir)
|
|
||||||
}
|
|
||||||
|
|
||||||
dokkaJavadoc {
|
dokkaJavadoc {
|
||||||
dokkaSourceSets {
|
dokkaSourceSets {
|
||||||
configureEach {
|
configureEach {
|
||||||
|
@ -52,19 +43,4 @@ tasks {
|
||||||
moduleName.set("UrlEncoder Library")
|
moduleName.set("UrlEncoder Library")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val copyToDeploy by registering(Sync::class) {
|
|
||||||
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
|
||||||
from(configurations.runtimeClasspath) {
|
|
||||||
exclude("annotations-*.jar")
|
|
||||||
}
|
|
||||||
from(jvmJar)
|
|
||||||
into(deployDir)
|
|
||||||
}
|
|
||||||
|
|
||||||
register("deploy") {
|
|
||||||
description = "Copies all needed files to the 'deploy' directory."
|
|
||||||
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
|
||||||
dependsOn(build, copyToDeploy)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue