forked from Netflix/Hystrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct artifacts, moved pom to more visible area
- Loading branch information
Justin Ryan
committed
Apr 9, 2012
1 parent
52bd53f
commit b5b2f5e
Showing
5 changed files
with
36 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,39 @@ | |
ext.releaseVersion = '1.1.3' // TEMPLATE: Set to latest release | ||
ext.githubProjectName = rootProject.name // TEMPLATE: change to match github project, if it doesn't match project name | ||
|
||
buildscript { | ||
repositories { mavenCentral() } | ||
} | ||
|
||
allprojects { | ||
repositories { mavenCentral() } | ||
} | ||
|
||
//apply from: file('gradle/release.gradle') // Not fully tested | ||
apply from: file('gradle/convention.gradle') | ||
apply from: file('gradle/maven.gradle') | ||
apply from: file('gradle/check.gradle') | ||
apply from: file('gradle/license.gradle') | ||
//apply from: file('gradle/license.gradle') // Waiting for re-release | ||
|
||
subprojects { | ||
group = 'com.netflix.osstemplate' // TEMPLATE: Set to organization of project | ||
|
||
repositories { | ||
mavenCentral() | ||
// Closure to configure all the POM with extra info, common to all projects | ||
pom { | ||
project { | ||
url "https://github.com/Netflix/${rootProject.githubProjectName}" | ||
scm { | ||
connection "scm:git:[email protected]:Netflix/${rootProject.githubProjectName}.git" | ||
url "scm:git:[email protected]:Netflix/${rootProject.githubProjectName}.git" | ||
developerConnection "scm:git:[email protected]:Netflix/${rootProject.githubProjectName}.git" | ||
} | ||
issueManagement { | ||
system 'github' | ||
url 'https://github.com/Netflix/${rootProject.githubProjectName}/issues' | ||
} | ||
} | ||
} | ||
|
||
group = 'com.netflix.osstemplate' // TEMPLATE: Set to organization of project | ||
|
||
dependencies { | ||
compile 'javax.ws.rs:jsr311-api:1.1.1' | ||
compile 'com.sun.jersey:jersey-core:1.11' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ subprojects | |
} | ||
|
||
artifacts { | ||
archives jar | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
buildscript { | ||
dependencies { classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.4' } | ||
dependencies { classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5' } | ||
} | ||
|
||
apply plugin: 'license' | ||
apply plugin: nl.javadude.gradle.plugins.license.LicensePlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,14 @@ subprojects { | |
apply plugin: 'signing' | ||
|
||
signing { | ||
required { performingRelease && gradle.taskGraph.hasTask("uploadMavenCentral")} | ||
required { performingRelease && gradle.taskGraph.hasTask("uploadArchives")} | ||
sign configurations.archives | ||
} | ||
|
||
/** | ||
* Publishing to Maven Central example provided from http://jedicoder.blogspot.com/2011/11/automated-gradle-project-deployment-to.html | ||
*/ | ||
task uploadMavenCentral(type:Upload) { | ||
task uploadArchives(type:Upload) { | ||
configuration = configurations.archives | ||
dependsOn signArchives | ||
doFirst { | ||
|
@@ -35,23 +35,13 @@ subprojects { | |
artifactId 'oss-parent' | ||
version '7' | ||
} | ||
url "https://github.com/Netflix/${rootProject.ext.githubProjectName}" | ||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
scm { | ||
connection "scm:git:[email protected]:Netflix/${rootProject.ext.githubProjectName}.git" | ||
url "scm:git:[email protected]:Netflix/${rootProject.ext.githubProjectName}.git" | ||
developerConnection "scm:git:[email protected]:Netflix/${rootProject.ext.githubProjectName}.git" | ||
} | ||
issueManagement { | ||
system 'github' | ||
url 'https://github.com/Netflix/${rootProject.ext.githubProjectName}/issues' | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
buildscript { | ||
dependencies { classpath group: 'no.entitas.gradle', name: 'gradle-release-plugin', version: '1.11' } | ||
} | ||
|
||
apply plugin: no.entitas.gradle.git.GitReleasePlugin // 'gitrelease' | ||
|