Skip to content

Commit

Permalink
Back to snapshot, use Artifactory for releases for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Feb 26, 2015
1 parent ba86af6 commit d61515f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 29 deletions.
23 changes: 13 additions & 10 deletions build.gradle
Expand Up @@ -19,7 +19,7 @@ ext.providedDeps = []
ext.provided = { providedDeps << it }
ext {
bintrayPublish = false
grailsVersion = '3.0.0.M2'
grailsVersion = '3.0.0.BUILD-SNAPSHOT'
isBuildSnapshot = grailsVersion.endsWith(".BUILD-SNAPSHOT")
isTravisBuild = System.getenv().get("TRAVIS") == 'true'

Expand Down Expand Up @@ -310,17 +310,20 @@ subprojects { project ->

publishing {

if(isBuildSnapshot) {
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
if(isBuildSnapshot) {
url "https://repo.grails.org/grails/libs-snapshots-local"
}
else {
url "https://repo.grails.org/grails/libs-releases-local"
}
}
}

Expand Down
21 changes: 12 additions & 9 deletions grails-bom/build.gradle
Expand Up @@ -4,17 +4,20 @@ apply plugin: 'com.jfrog.bintray'

publishing {

if(isBuildSnapshot) {
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
if(isBuildSnapshot) {
url "https://repo.grails.org/grails/libs-snapshots-local"
}
else {
url "https://repo.grails.org/grails/libs-releases-local"
}
}
}

Expand Down
21 changes: 12 additions & 9 deletions grails-dependencies/build.gradle
Expand Up @@ -4,17 +4,20 @@ apply plugin: 'com.jfrog.bintray'

publishing {

if(isBuildSnapshot) {
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
if(isBuildSnapshot) {
url "https://repo.grails.org/grails/libs-snapshots-local"
}
else {
url "https://repo.grails.org/grails/libs-releases-local"
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion travis-build.sh
Expand Up @@ -29,7 +29,7 @@ if [[ $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0 ]]; then
echo "Publishing archives"

if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
./gradlew bintrayUpload || EXIT_STATUS=$?
./gradlew publish || EXIT_STATUS=$?
./gradlew assemble || EXIT_STATUS=$?

version="$TRAVIS_TAG"
Expand Down

0 comments on commit d61515f

Please sign in to comment.