Skip to content

Commit

Permalink
Merge of gradle-template
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Ryan committed Oct 22, 2012
2 parents aca84b4 + 6d37dcb commit 3a466be
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Thumbs.db
# Editor Files # # Editor Files #
################ ################
*~ *~
*.swp


# Gradle Files # # Gradle Files #
################ ################
Expand Down
9 changes: 9 additions & 0 deletions gradle/maven.gradle
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ task uploadMavenCentral(type:Upload, dependsOn: signArchives) {


// Closure to configure all the POM with extra info, common to all projects // Closure to configure all the POM with extra info, common to all projects
pom.project { 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 { licenses {
license { license {
name 'The Apache Software License, Version 2.0' name 'The Apache Software License, Version 2.0'
Expand Down
26 changes: 12 additions & 14 deletions gradle/release.gradle
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@ unSnapshotVersion.dependsOn checkUpdateNeeded
checkUpdateNeeded.dependsOn checkCommitNeeded checkUpdateNeeded.dependsOn checkCommitNeeded
checkCommitNeeded.dependsOn initScmPlugin checkCommitNeeded.dependsOn initScmPlugin


// Call out to compile against internal repository [
task uploadArtifactory(type: GradleBuild) { uploadIvyLocal: 'uploadLocal',
startParameter = project.gradle.startParameter.newInstance() uploadArtifactory: 'artifactoryPublish', // Call out to compile against internal repository
startParameter.addInitScript( file('gradle/netflix-oss.gradle') ) buildWithArtifactory: 'build' // Build against internal repository
startParameter.getExcludedTaskNames().add('check') ].each { key, value ->
tasks = [ 'build', 'artifactoryPublish' ] // 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 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 // Ensure upload happens before taggging but after all pre-checks
releaseArtifactory.dependsOn checkSnapshotDependencies releaseArtifactory.dependsOn checkSnapshotDependencies
createReleaseTag.dependsOn releaseArtifactory createReleaseTag.dependsOn releaseArtifactory
Expand Down

0 comments on commit 3a466be

Please sign in to comment.