Skip to content

Commit

Permalink
Removed deploy tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Sep 21, 2023
1 parent 0fa364b commit efcfe5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
20 changes: 0 additions & 20 deletions urlencoder-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ plugins {
id("com.github.ben-manes.versions")
}

val deployDir = project.layout.projectDirectory.dir("deploy")
val urlEncoderMainClass = "net.thauvin.erik.urlencoder.UrlEncoder"

kotlin {
Expand Down Expand Up @@ -61,28 +60,9 @@ tasks {
dependsOn(fatJar)
}

clean {
delete(deployDir)
}

withType<DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
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)
}
}
22 changes: 0 additions & 22 deletions urlencoder-lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ plugins {
id("com.github.ben-manes.versions")
}

val deployDir = project.layout.projectDirectory.dir("deploy")

kotlin {
sourceSets {
commonTest {
Expand All @@ -26,11 +24,6 @@ base {
}

tasks {

clean {
delete(deployDir)
}

dokkaJavadoc {
dokkaSourceSets {
configureEach {
Expand All @@ -50,19 +43,4 @@ tasks {
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)
}
}

0 comments on commit efcfe5e

Please sign in to comment.