Skip to content

Commit

Permalink
Add more pom information to artifacts (#294)
Browse files Browse the repository at this point in the history
to meet Maven central requirements
Also, add back ability to skip signing by using `-PskipSigning=true` during builds
  • Loading branch information
aaneja authored Feb 26, 2025
1 parent ea07a1e commit 75ffae5
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ ext.tempto_kafka = project(':tempto-kafka')
ext.expected_result_generator = project(':expected-result-generator')
ext.tempto_version = '1.54-SNAPSHOT'
ext.tempto_group = "io.prestodb.tempto"
ext.isReleaseVersion = !tempto_version.endsWith("SNAPSHOT")

ext.nexusUsername = 'setup_nexusUsername_in_gradle.properties'
ext.nexusPassword = 'setup_nexusPassword_in_gradle.properties'
ext.skipSigning = false


subprojects {
Expand Down Expand Up @@ -151,6 +153,7 @@ configure(subprojects - expected_result_generator - tempto_examples) {
}

signing {
required { isReleaseVersion && !skipSigning }
sign publishing.publications
useGpgCmd() //Use system provide GPG
}
Expand Down
23 changes: 23 additions & 0 deletions tempto-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,29 @@ publishing {
publications {
maven(MavenPublication) {
artifactId artifactId

pom {
name = artifactId

licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = 'prestodb'
name = 'PrestoDb'
email = '[email protected]'
}
}
scm {
url = '[email protected]:prestodb/tempto.git'
connection = 'scm:git:[email protected]:prestodb/tempto.git'
developerConnection = 'scm:git:[email protected]:prestodb/tempto.git'
}
}
}
}
}
Expand Down
23 changes: 23 additions & 0 deletions tempto-kafka/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,29 @@ publishing {
publications {
maven(MavenPublication) {
artifactId artifactId

pom {
name = artifactId

licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = 'prestodb'
name = 'PrestoDb'
email = '[email protected]'
}
}
scm {
url = '[email protected]:prestodb/tempto.git'
connection = 'scm:git:[email protected]:prestodb/tempto.git'
developerConnection = 'scm:git:[email protected]:prestodb/tempto.git'
}
}
}
}
}
23 changes: 23 additions & 0 deletions tempto-ldap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@ publishing {
publications {
maven(MavenPublication) {
artifactId artifactId

pom {
name = artifactId

licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = 'prestodb'
name = 'PrestoDb'
email = '[email protected]'
}
}
scm {
url = '[email protected]:prestodb/tempto.git'
connection = 'scm:git:[email protected]:prestodb/tempto.git'
developerConnection = 'scm:git:[email protected]:prestodb/tempto.git'
}
}
}
}
}
23 changes: 23 additions & 0 deletions tempto-logging-log4j/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,29 @@ publishing {
publications {
maven(MavenPublication) {
artifactId artifactId

pom {
name = artifactId

licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = 'prestodb'
name = 'PrestoDb'
email = '[email protected]'
}
}
scm {
url = '[email protected]:prestodb/tempto.git'
connection = 'scm:git:[email protected]:prestodb/tempto.git'
developerConnection = 'scm:git:[email protected]:prestodb/tempto.git'
}
}
}
}
}
23 changes: 23 additions & 0 deletions tempto-runner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,29 @@ publishing {
publications {
maven(MavenPublication) {
artifactId artifactId

pom {
name = artifactId

licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = 'prestodb'
name = 'PrestoDb'
email = '[email protected]'
}
}
scm {
url = '[email protected]:prestodb/tempto.git'
connection = 'scm:git:[email protected]:prestodb/tempto.git'
developerConnection = 'scm:git:[email protected]:prestodb/tempto.git'
}
}
}
}
}

0 comments on commit 75ffae5

Please sign in to comment.