Skip to content

Commit

Permalink
Add tasks for generating source and javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzammilshahid committed Oct 24, 2024
1 parent d79fbed commit 725bcee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ dependencies {
tasks.test {
useJUnitPlatform()
}

tasks.register<Jar>("sourcesJar") {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}

tasks.register<Jar>("javadocJar") {
dependsOn(tasks.javadoc)
archiveClassifier.set("javadoc")
from(tasks.javadoc.get().destinationDir)
}

kotlin {
jvmToolchain(17)
}

0 comments on commit 725bcee

Please # to comment.