Skip to content

Commit

Permalink
chore(server): Build source jar #964
Browse files Browse the repository at this point in the history
  • Loading branch information
roxspring committed Apr 6, 2019
1 parent 1885854 commit 0b07235
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ allprojects {
tasks.withType(KotlinCompile::class.java).all {
kotlinOptions.jvmTarget = "1.8"
}

tasks.register("sourcesJar", Jar::class) {
dependsOn(JavaPlugin.CLASSES_TASK_NAME)
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
}

artifacts {
add("archives", tasks["sourcesJar"])
}
}

dependencies {
Expand Down

0 comments on commit 0b07235

Please sign in to comment.