Skip to content

Commit

Permalink
Include sources and javadoc jars (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaneja authored Feb 21, 2025
1 parent 435c27c commit a5e5157
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -143,33 +143,20 @@ configure(subprojects - expected_result_generator - tempto_examples) {
apply plugin: 'java'
apply plugin: 'maven-publish'

// plugins configuration
javadoc {
failOnError = true
}

// javadoc.jar generation
task javadocJar(type: Jar) {
archiveClassifier.set('javadoc')
from(javadoc)
}


// sources.jar generation
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from(sourceSets.main.allJava)
java {
withJavadocJar()
withSourcesJar()
}

signing {
required { isReleaseVersion && !skipSigning }
sign configurations.archives
}

artifacts {
archives javadocJar, sourcesJar
}

// publishing to sonatype

publishing {
Expand Down

0 comments on commit a5e5157

Please sign in to comment.