Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
upload correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Sep 15, 2020
1 parent e426a1e commit 9dd880b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ subprojects {

kotlinProject()

val sourcesJar by tasks.creating(Jar::class) {
archiveClassifier.set("sources")
from(project.the<SourceSetContainer>()["main"].allSource)
}

publishing {
publications {
create<MavenPublication>(project.name) {
Expand All @@ -48,6 +53,7 @@ subprojects {
appendNode("licenses").appendNode("license").appendNode("name", "Apache License, Version 2.0").parent().appendNode("url", "http://www.apache.org/licenses/LICENSE-2.0.html")
}
}
artifact(sourcesJar)
}
}

Expand Down

0 comments on commit 9dd880b

Please sign in to comment.