diff --git a/urlencoder-app/build.gradle.kts b/urlencoder-app/build.gradle.kts index 82e9f4c..93a9789 100644 --- a/urlencoder-app/build.gradle.kts +++ b/urlencoder-app/build.gradle.kts @@ -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 { @@ -61,28 +60,9 @@ tasks { dependsOn(fatJar) } - clean { - delete(deployDir) - } - withType().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) - } } diff --git a/urlencoder-lib/build.gradle.kts b/urlencoder-lib/build.gradle.kts index ca6d91c..a05acf5 100644 --- a/urlencoder-lib/build.gradle.kts +++ b/urlencoder-lib/build.gradle.kts @@ -8,8 +8,6 @@ plugins { id("com.github.ben-manes.versions") } -val deployDir = project.layout.projectDirectory.dir("deploy") - kotlin { sourceSets { commonTest { @@ -26,11 +24,6 @@ base { } tasks { - - clean { - delete(deployDir) - } - dokkaJavadoc { dokkaSourceSets { configureEach { @@ -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) - } }