|
|
|
@ -85,6 +85,10 @@ def bintrayPackage = bintray.pkg { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
def azureUser = "AZURE_ARTIFACTS" |
|
|
|
|
def azureKey = project.hasProperty('azureApiKey') ? project.property('azureApiKey') : System.getenv('AZURE_KEY') |
|
|
|
|
def artifactRepoUrl = 'https://pkgs.dev.azure.com/Hyperledger/Besu/_packaging/besu/maven/v1' |
|
|
|
|
|
|
|
|
|
allprojects { |
|
|
|
|
apply plugin: 'java-library' |
|
|
|
|
apply plugin: 'io.spring.dependency-management' |
|
|
|
@ -119,11 +123,13 @@ allprojects { |
|
|
|
|
if ("$System.env.JENKINS_URL" == 'https://jenkins.pegasys.tech/') { |
|
|
|
|
maven { url "https://nexus.int.pegasys.tech/repository/consensys-pegasys/" } |
|
|
|
|
maven { url "https://nexus.int.pegasys.tech/repository/jcenter/" } |
|
|
|
|
maven { url artifactRepoUrl } |
|
|
|
|
} else { |
|
|
|
|
jcenter() |
|
|
|
|
mavenCentral() |
|
|
|
|
mavenLocal() |
|
|
|
|
maven { url "https://consensys.bintray.com/pegasys-repo" } |
|
|
|
|
maven { url artifactRepoUrl } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -314,6 +320,16 @@ subprojects { |
|
|
|
|
apply plugin: 'maven-publish' |
|
|
|
|
|
|
|
|
|
publishing { |
|
|
|
|
repositories { |
|
|
|
|
maven { |
|
|
|
|
url artifactRepoUrl |
|
|
|
|
credentials { |
|
|
|
|
username azureUser |
|
|
|
|
password azureKey |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
publications { |
|
|
|
|
mavenJava(MavenPublication) { |
|
|
|
|
groupId "org.hyperledger.besu.internal" |
|
|
|
@ -349,18 +365,6 @@ subprojects { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bintray { |
|
|
|
|
user = bintrayUser |
|
|
|
|
key = bintrayKey |
|
|
|
|
|
|
|
|
|
publications = ['mavenJava'] |
|
|
|
|
override = version.endsWith('SNAPSHOT') |
|
|
|
|
|
|
|
|
|
publish = true |
|
|
|
|
|
|
|
|
|
pkg = bintrayPackage |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tasks.withType(Test) { |
|
|
|
@ -616,6 +620,27 @@ tasks.register("verifyDistributions") { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
apply plugin: 'maven-publish' |
|
|
|
|
publishing { |
|
|
|
|
repositories { |
|
|
|
|
maven { |
|
|
|
|
url artifactRepoUrl |
|
|
|
|
credentials { |
|
|
|
|
username azureUser |
|
|
|
|
password azureKey |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
publications { |
|
|
|
|
maven(MavenPublication) { |
|
|
|
|
artifact source: distTar.outputs.files.singleFile, extension: 'tar.gz' |
|
|
|
|
artifact source: distZip.outputs.files.singleFile, extension: 'zip' |
|
|
|
|
version "${project.version}" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bintray { |
|
|
|
|
user = bintrayUser |
|
|
|
|
key = bintrayKey |
|
|
|
@ -633,6 +658,9 @@ bintray { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
build.dependsOn verifyDistributions |
|
|
|
|
publish.dependsOn verifyDistributions |
|
|
|
|
publish.mustRunAfter(distTar) |
|
|
|
|
publish.mustRunAfter(distZip) |
|
|
|
|
bintrayUpload.dependsOn verifyDistributions |
|
|
|
|
bintrayUpload.mustRunAfter(distTar) |
|
|
|
|
bintrayUpload.mustRunAfter(distZip) |
|
|
|
|