Skip to content

Commit

Permalink
build fixes for RC6
Browse files Browse the repository at this point in the history
  • Loading branch information
erosb committed Oct 30, 2024
1 parent 481ee13 commit a578afa
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ sonarqube {
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand All @@ -75,6 +85,8 @@ publishing {
version = project.version

from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = project.name
description = project.description
Expand All @@ -101,16 +113,6 @@ publishing {
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

tasks.withType(Sign) {
onlyIf { !version.endsWith("SNAPSHOT") }
}
Expand Down

0 comments on commit a578afa

Please sign in to comment.