diff --git a/.gitignore b/.gitignore index 8d97c4f..a9f8104 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ build/ *.sw* .idea/ *.iml +/bin/ diff --git a/build.gradle b/build.gradle index 17f2a67..b0b5f78 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,11 @@ apply plugin: 'groovy' apply plugin: 'maven' apply plugin: 'com.jfrog.bintray' -version = '0.3.0' +if (System.env['Jenkins.Repository']) { + apply from: 'gradle/integration.gradle' +} + +version = '0.3.1' group = 'com.github.jruby-gradle' description = 'A library for managing Ruby gems' defaultTasks 'check', 'assemble' diff --git a/gradle/integration.gradle b/gradle/integration.gradle new file mode 100644 index 0000000..9db7124 --- /dev/null +++ b/gradle/integration.gradle @@ -0,0 +1,19 @@ +/* + * Handle installing our artifacts into the Jenkins local repository for integration testing + * + */ + +repositories { + maven { + url System.env['Jenkins.Repository'] + } +} + +uploadArchives { + repositories { + mavenDeployer { + repository(url: System.env['Jenkins.Repository']) + } + } +} +