Permalink
Browse files

Add local publishing

  • Loading branch information...
1 parent 6157d05 commit 6d37dcb85c0d7f8ad938661166ff2e6cd71361f7 @quidryan quidryan committed Oct 11, 2012
Showing with 13 additions and 14 deletions.
  1. +1 −0 .gitignore
  2. +12 −14 gradle/release.gradle
View
@@ -34,6 +34,7 @@ Thumbs.db
# Editor Files #
################
*~
+*.swp
# Gradle Files #
################
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 6d37dcb

Please sign in to comment.