Skip to content

Commit

Permalink
Fixed the dozens of artifactory warnings at gradle initialisation. (c…
Browse files Browse the repository at this point in the history
…orda#1862)

* Fixed the dozens of artifactory warnings at gradle initialisation.
  • Loading branch information
Clintonio authored Oct 11, 2017
1 parent 9cec137 commit 15d29d7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,16 @@ artifactory {
publish {
contextUrl = 'https://ci-artifactory.corda.r3cev.com/artifactory'
repository {
repoKey = 'corda-releases'
repoKey = 'corda-dev'
username = 'teamcity'
password = System.getenv('CORDA_ARTIFACTORY_PASSWORD')
}

defaults {
publications('corda-jfx', 'corda-mock', 'corda-rpc', 'corda-core', 'corda', 'cordform-common', 'corda-finance', 'corda-node', 'corda-node-api', 'corda-test-common', 'corda-test-utils', 'corda-jackson', 'corda-verifier', 'corda-webserver-impl', 'corda-webserver', 'corda-node-driver', 'corda-confidential-identities')
// Root project applies the plugin (for this block) but does not need to be published
if(project != rootProject) {
publications(project.extensions.publish.name())
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion constants.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gradlePluginsVersion=2.0.2
gradlePluginsVersion=2.0.3
kotlinVersion=1.1.50
guavaVersion=21.0
bouncycastleVersion=1.57
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ class ProjectPublishExtension {
task.setPublishName(name)
}

/**
* Get the publishing name for this project.
*/
String name() {
return task.getPublishName()
}

/**
* True when we do not want to publish default Java components
*/
Expand Down

0 comments on commit 15d29d7

Please sign in to comment.