Move integration into a file

This commit is contained in:
R. Tyler Croy 2015-11-01 15:58:15 -08:00
parent 61f8adacee
commit 1b788d1271
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 23 additions and 7 deletions

View File

@ -1,13 +1,11 @@
apply plugin: 'maven'
apply plugin: 'groovy'
if (System.env['Jenkins.Repository']) {
apply from: 'gradle/integration.gradle'
}
repositories {
if (System.env['Jenkins.Repository']) {
maven {
url System.env['Jenkins.Repository']
}
}
jcenter()
}

18
gradle/integration.gradle Normal file
View File

@ -0,0 +1,18 @@
/*
* Handle installing our artifacts into the Jenkins local repository for integration testing
* <https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Maven+Repository+Server>
*/
repositories {
maven {
url System.env['Jenkins.Repository']
}
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: System.env['Jenkins.Repository'])
}
}
}