@@ -17,23 +17,21 @@ unSnapshotVersion.dependsOn checkUpdateNeeded
17
17
checkUpdateNeeded. dependsOn checkCommitNeeded
18
18
checkCommitNeeded. dependsOn initScmPlugin
19
19
20
- // Call out to compile against internal repository
21
- task uploadArtifactory (type : GradleBuild ) {
22
- startParameter = project. gradle. startParameter. newInstance()
23
- startParameter. addInitScript( file(' gradle/netflix-oss.gradle' ) )
24
- startParameter. getExcludedTaskNames(). add(' check' )
25
- tasks = [ ' build' , ' artifactoryPublish' ]
20
+ [
21
+ uploadIvyLocal : ' uploadLocal' ,
22
+ uploadArtifactory : ' artifactoryPublish' , // Call out to compile against internal repository
23
+ buildWithArtifactory : ' build' // Build against internal repository
24
+ ]. each { key, value ->
25
+ // Call out to compile against internal repository
26
+ task " ${ key} " (type : GradleBuild ) {
27
+ startParameter = project. gradle. startParameter. newInstance()
28
+ startParameter. addInitScript( file(' gradle/netflix-oss.gradle' ) )
29
+ startParameter. getExcludedTaskNames(). add(' check' )
30
+ tasks = [ ' build' , value ]
31
+ }
26
32
}
27
33
task releaseArtifactory (dependsOn : [checkSnapshotDependencies, uploadArtifactory])
28
34
29
-
30
- task buildWithArtifactory (type : GradleBuild ) {
31
- startParameter = project. gradle. startParameter. newInstance()
32
- startParameter. addInitScript( file(' gradle/netflix-oss.gradle' ) )
33
- startParameter. getExcludedTaskNames(). add(' check' )
34
- tasks = [ ' build' ]
35
- }
36
-
37
35
// Ensure upload happens before taggging but after all pre-checks
38
36
releaseArtifactory. dependsOn checkSnapshotDependencies
39
37
createReleaseTag. dependsOn releaseArtifactory
0 commit comments