diff --git a/build.gradle b/build.gradle index 483908e..92cdaf8 100644 --- a/build.gradle +++ b/build.gradle @@ -15,6 +15,7 @@ subprojects { apply plugin : 'groovy' apply plugin : 'maven' apply plugin : 'idea' + apply plugin : 'artifactory' sourceCompatibility = 1.6 @@ -53,6 +54,20 @@ subprojects { testCompile 'org.spockframework:spock-core:0.7-groovy-1.8' } + artifactory { + publish { + contextUrl = 'http://oss.jfrog.org' + repository { + repoKey = 'oss-snapshot-local' + username = project.properties.bintrayUserName + password = project.properties.bintrayApiKey + } + } + } + + artifactoryPublish { + onlyIf { version.endsWith("SNAPSHOT") } + } } diff --git a/doxygen/build.gradle b/doxygen/build.gradle index 479904b..d702c31 100644 --- a/doxygen/build.gradle +++ b/doxygen/build.gradle @@ -74,6 +74,7 @@ uploadArchives { } } + onlyIf { !version.endsWith("SNAPSHOT") } }