Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-7817. Make maven upload scripts work from official kit builds.
1. build-client.xml has a new target to make 2 new maven jars: javadoc and sources 2. Add step to build-kits.py to call maven-jars. 3. Add copy step to build-kits.py that will make a mavenjars/voltdb directory in the release directory. This will have the 3 .jar files (client, javadoc,sources) and a copy of upload.gradle 4. Changed upload.gradle to deal with the new pre-packaged world.
- Loading branch information
1 parent
9bcda87
commit fd9e19c
Showing
4 changed files
with
151 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
apply plugin: 'java' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
group = 'org.voltdb' | ||
|
||
//Get the version string from the sources jar filename | ||
def srcfilepath = new FileNameFinder().getFileNames ('.' , 'voltdbclient-*-sources.jar')[0] | ||
def matcher = ( srcfilepath =~ /.*voltdbclient-(.*)-sources.jar$/) | ||
version = matcher[0][1] | ||
println version | ||
description = 'VoltDB client interface libraries' | ||
archivesBaseName = 'voltdbclient' | ||
|
||
configurations { | ||
clientArchives | ||
ascSignatures | ||
} | ||
|
||
artifacts { | ||
clientArchives file: file("voltdbclient-${version}.jar"), name:'voltdbclient', | ||
classifier:null, type:'jar', extension:'jar' | ||
clientArchives file: file("voltdbclient-${version}-javadoc.jar"), name:'voltdbclient', | ||
classifier:'javadoc', type:'jar', extension:'jar' | ||
clientArchives file: file("voltdbclient-${version}-sources.jar"), name:'voltdbclient', | ||
classifier:'sources', type:'jar', extension:'jar' | ||
} | ||
|
||
signing { | ||
sign configurations.clientArchives | ||
} | ||
|
||
task debug << { | ||
configurations.clientArchives.artifacts.each { ca -> | ||
println(['name','type','extension','classifier','file'].collect { | ||
"${it}: ${ca.$/${it}/$}" | ||
}.join(", ")) | ||
} | ||
} | ||
|
||
uploadClientArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment mvnd -> | ||
signing.signPom(mvnd) | ||
configurations.clientArchives.artifacts.each { ca -> | ||
def ascfile = file(ca.file.path + '.asc') | ||
def ascartf = project.artifacts.add('ascSignatures', ascfile) { | ||
classifier = ca.classifier | ||
extension = ca.extension + '.asc' | ||
type = ca.type + '.asc' | ||
} | ||
mvnd.addArtifact(ascartf) | ||
} | ||
} | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: sonatypeUsername, password: sonatypePassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: sonatypeUsername, password: sonatypePassword) | ||
} | ||
// repository(url: "file://localhost/Users/stefano/tmp/m2repo/") | ||
|
||
pom.project { | ||
name 'voltdbclient' | ||
packaging 'jar' | ||
description 'VoltDB client interface libraries' | ||
url 'http://www.voltdb.com/' | ||
|
||
scm { | ||
url 'git@github.com:VoltDB/voltdb.git' | ||
connection 'scm:git@github.com:VoltDB/voltdb.git' | ||
developerConnection 'scm:git@github.com:VoltDB/voltdb.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'GNU Affero General Public License Version 3' | ||
url 'http://www.gnu.org/licenses/agpl.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'jhugg' | ||
name 'John Hugg' | ||
email 'jhugg@voltdb.com' | ||
organizationUrl 'http://www.voltdb.com' | ||
} | ||
developer { | ||
id 'vtkstef' | ||
name 'Stefano Santoro' | ||
email 'ssantoro@voltdb.com' | ||
organizationUrl 'http://www.voltdb.com' | ||
} | ||
developer { | ||
id 'jpiekos' | ||
name 'John Piekos' | ||
email 'jpiekos@voltdb.com' | ||
organizationUrl 'http://www.voltdb.com' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
uploadClientArchives.dependsOn { | ||
[signClientArchives] | ||
} |
This file was deleted.
Oops, something went wrong.