Permalink
Browse files

Some fixes to allow publishing libs to artifactory. Distributions sti…

…ll broken.
  • Loading branch information...
1 parent 690c756 commit 8ec8976c0cc86117a0ee63891a538d334c802cd4 @adammurdoch adammurdoch committed Apr 8, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 build.gradle
  2. +4 −4 buildSrc/src/main/groovy/org/gradle/build/Version.groovy
  3. +2 −2 gradle/publish.gradle
View
@@ -511,7 +511,7 @@ uploadDists {
dependsOn testedDists
uploadDescriptor = false
doFirst {
- org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials('Artifactory Realm', 'repo.gradle.org', artifactoryUserName, artifactoryUserPassword)
+ org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials('Artifactory Realm', 'gradle.artifactoryonline.com', artifactoryUserName, artifactoryUserPassword)
repositories.add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'gradleReleases'
addArtifactPattern("${version.distributionUrl}/[artifact]-[revision](-[classifier]).[ext]" as String)
@@ -71,17 +71,17 @@ class Version {
String getDistributionUrl() {
if (release) {
- 'https://repo.gradle.org/gradle/distributions'
+ 'https://gradle.artifactoryonline.com/gradle/distributions'
} else {
- 'https://repo.gradle.org/gradle/distributions/gradle-snapshots'
+ 'https://gradle.artifactoryonline.com/gradle/distributions/gradle-snapshots'
}
}
String getLibsUrl() {
if (release) {
- 'https://repo.gradle.org/gradle/libs-releases-local'
+ 'https://gradle.artifactoryonline.com/gradle/libs-releases-local'
} else {
- 'https://repo.gradle.org/gradle/libs-snapshots-local'
+ 'https://gradle.artifactoryonline.com/gradle/libs-snapshots-local'
}
}
}
View
@@ -50,9 +50,9 @@ uploadArchives {
dependsOn generatePom
uploadDescriptor = false
doFirst {
- org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials('Artifactory Realm', 'repo.gradle.org', artifactoryUserName, artifactoryUserPassword)
+ org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials('Artifactory Realm', 'gradle.artifactoryonline.com', artifactoryUserName, artifactoryUserPassword)
repositories.add(new org.apache.ivy.plugins.resolver.URLResolver()) {
- name = 'gradleReleases'
+ name = 'gradleLibs'
addArtifactPattern("${version.libsUrl}/${project.group.replaceAll('\\.', '/')}/${archivesBaseName}/[revision]/[artifact]-[revision](-[classifier]).[ext]" as String)
}
}

0 comments on commit 8ec8976

Please sign in to comment.