Skip to content

Commit

Permalink
Include sources and javadoc jars
Browse files Browse the repository at this point in the history
  • Loading branch information
aaneja committed Feb 21, 2025
1 parent f00bb82 commit 193ac1b
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ ext.tempto_runner = project(':tempto-runner')
ext.tempto_ldap = project(':tempto-ldap')
ext.tempto_kafka = project(':tempto-kafka')
ext.expected_result_generator = project(':expected-result-generator')
ext.tempto_version = '1.55-SNAPSHOT'
ext.tempto_version = '1.54-SNAPSHOT'
ext.tempto_group = "io.prestodb.tempto"
ext.isReleaseVersion = !tempto_version.endsWith("SNAPSHOT")

Expand Down 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 193ac1b

Please sign in to comment.