Permalink
Browse files

Merge of gradle-template

  • Loading branch information...
2 parents aca84b4 + 6d37dcb commit 3a466befb7d3236486fcd90be84cf733c9ee318f @quidryan quidryan committed Oct 22, 2012
Showing with 22 additions and 14 deletions.
  1. +1 −0 .gitignore
  2. +9 −0 gradle/maven.gradle
  3. +12 −14 gradle/release.gradle
View
@@ -34,6 +34,7 @@ Thumbs.db
# Editor Files #
################
*~
+*.swp
# Gradle Files #
################
View
@@ -30,6 +30,15 @@ task uploadMavenCentral(type:Upload, dependsOn: signArchives) {
// Closure to configure all the POM with extra info, common to all projects
pom.project {
+ name "${project.name}"
+ description "${project.name} developed by Netflix"
+ developers {
+ developer {
+ id 'netflixgithub'
+ name 'Netflix Open Source Development'
+ email 'talent@netflix.com'
+ }
+ }
licenses {
license {
name 'The Apache Software License, Version 2.0'
View
@@ -16,23 +16,21 @@ unSnapshotVersion.dependsOn checkUpdateNeeded
checkUpdateNeeded.dependsOn checkCommitNeeded
checkCommitNeeded.dependsOn initScmPlugin
-// Call out to compile against internal repository
-task uploadArtifactory(type: GradleBuild) {
- startParameter = project.gradle.startParameter.newInstance()
- startParameter.addInitScript( file('gradle/netflix-oss.gradle') )
- startParameter.getExcludedTaskNames().add('check')
- tasks = [ 'build', 'artifactoryPublish' ]
+[
+ uploadIvyLocal: 'uploadLocal',
+ uploadArtifactory: 'artifactoryPublish', // Call out to compile against internal repository
+ buildWithArtifactory: 'build' // Build against internal repository
+].each { key, value ->
+ // Call out to compile against internal repository
+ task "${key}"(type: GradleBuild) {
+ startParameter = project.gradle.startParameter.newInstance()
+ startParameter.addInitScript( file('gradle/netflix-oss.gradle') )
+ startParameter.getExcludedTaskNames().add('check')
+ tasks = [ 'build', value ]
+ }
}
task releaseArtifactory(dependsOn: [checkSnapshotDependencies, uploadArtifactory])
-
-task buildWithArtifactory(type: GradleBuild) {
- startParameter = project.gradle.startParameter.newInstance()
- startParameter.addInitScript( file('gradle/netflix-oss.gradle') )
- startParameter.getExcludedTaskNames().add('check')
- tasks = [ 'build' ]
-}
-
// Ensure upload happens before taggging but after all pre-checks
releaseArtifactory.dependsOn checkSnapshotDependencies
createReleaseTag.dependsOn releaseArtifactory

0 comments on commit 3a466be

Please sign in to comment.