Skip to content

Commit

Permalink
Merge pull request Netflix#243 from tbak/master
Browse files Browse the repository at this point in the history
Update gradle configuration.
  • Loading branch information
tbak committed Nov 7, 2014
2 parents 91b1bc8 + a5fea6f commit 3b573a7
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 3 deletions.
47 changes: 47 additions & 0 deletions gradle/netflix-oss.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@
/*
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply from: 'http://artifacts.netflix.com/gradle-netflix-local/artifactory.gradle'

def artifactsBase = 'http://artifacts.netflix.com/'
def ivyIvyPattern = '[organisation]/[module]/[revision]/[module]-[revision]-ivy.[ext]'
def ivyArtifactPattern = '[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'

allprojects {
dependencies.components.eachComponent { ComponentMetadataDetails details ->
details.statusScheme = ['snapshot', 'integration', 'candidate', 'release']
}
repositories.matching { it.name.contains('nfrepo-') && it.class.name.contains('legacy') }.all {
println "Replacing URLResolver ${it.name}"
repositories.remove(it)
repositories.ivy {
name = "nfrepo-${project.status}s"
def artifactsUrl = artifactsBase + name
credentials {
username 'resolver'
password 'resolver'
}
url "${artifactsBase}/${name}"
layout 'pattern', {
artifact ivyArtifactPattern
ivy ivyIvyPattern
m2compatible = true
}
}
repositories.maven {
name = "nfrepo-${project.status}s-pom"
url "${artifactsBase}/${name}"
}
}
}
1 change: 0 additions & 1 deletion gradle/release.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

apply plugin: 'release'

[ uploadIvyLocal: 'uploadLocal', uploadArtifactory: 'artifactoryPublish', buildWithArtifactory: 'build' ].each { key, value ->
Expand Down
20 changes: 18 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
#Tue Apr 02 11:45:56 PDT 2013
#
# Copyright 2014 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#Tue Apr 01 17:23:21 PDT 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.5-bin.zip
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-bin.zip

0 comments on commit 3b573a7

Please sign in to comment.