Skip to content

Commit

Permalink
Update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek committed Jun 9, 2024
1 parent c28ddb6 commit 296b7b5
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,26 @@ subprojects {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withJavadocJar()
withSourcesJar()
}

tasks {
val javadocJar by creating(Jar::class) {
dependsOn("javadoc")
archiveClassifier.set("javadoc")
from(javadoc)
}

val sourcesJar by creating(Jar::class) {
dependsOn("classes")
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
}

build {
dependsOn(jar)
dependsOn(sourcesJar)
dependsOn(javadocJar)
}
}

val projectName = project.property("artifact-id") as String
Expand Down

0 comments on commit 296b7b5

Please sign in to comment.