Skip to content

Commit

Permalink
Fix broken publishing tasks in build script (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt authored Jul 24, 2024
1 parent 5e8069f commit a066ae9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ tasks {

sourcesJar = create<Jar>("sourcesJar") sourcesJar@{
archiveClassifier.set("sources")
from(sourceSets.named("main"))
from(sourceSets.main.get().allSource)
}

javadocJar = create<Jar>("javadocJar") javadocJar@{
Expand Down Expand Up @@ -105,8 +105,9 @@ tasks {
}

publishing {
publications.create<MavenPublication>("ion-element") {
// from(components.java)
publications.create<MavenPublication>("IonElement") {
artifactId = "ion-element"
artifact(tasks.jar)
artifact(sourcesJar)
artifact(javadocJar)

Expand Down

0 comments on commit a066ae9

Please sign in to comment.