File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22ext. releaseVersion = ' 1.1.3' // TEMPLATE: Set to latest release
33ext. githubProjectName = rootProject. name // TEMPLATE: change to match github project, if it doesn't match project name
44
5+ buildscript {
6+ repositories { mavenCentral() }
7+ }
8+
9+ allprojects {
10+ repositories { mavenCentral() }
11+ }
12+
13+ // apply from: file('gradle/release.gradle') // Not fully tested
514apply from : file(' gradle/convention.gradle' )
615apply from : file(' gradle/maven.gradle' )
716apply from : file(' gradle/check.gradle' )
8- apply from : file(' gradle/license.gradle' )
17+ // apply from: file('gradle/license.gradle') // Waiting for re-release
918
1019subprojects {
11- group = ' com.netflix.osstemplate' // TEMPLATE: Set to organization of project
12-
13- repositories {
14- mavenCentral()
20+ // Closure to configure all the POM with extra info, common to all projects
21+ pom {
22+ project {
23+ url " https://github.com/Netflix/${ rootProject.githubProjectName} "
24+ scm {
25+ connection " scm:git:git@github.com:Netflix/${ rootProject.githubProjectName} .git"
26+ url " scm:git:git@github.com:Netflix/${ rootProject.githubProjectName} .git"
27+ developerConnection " scm:git:git@github.com:Netflix/${ rootProject.githubProjectName} .git"
28+ }
29+ issueManagement {
30+ system ' github'
31+ url ' https://github.com/Netflix/${rootProject.githubProjectName}/issues'
32+ }
33+ }
1534 }
1635
36+ group = ' com.netflix.osstemplate' // TEMPLATE: Set to organization of project
37+
1738 dependencies {
1839 compile ' javax.ws.rs:jsr311-api:1.1.1'
1940 compile ' com.sun.jersey:jersey-core:1.11'
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ subprojects
2626 }
2727
2828 artifacts {
29- archives jar
3029 archives sourcesJar
3130 archives javadocJar
3231 }
Original file line number Diff line number Diff line change 11buildscript {
2- dependencies { classpath ' nl.javadude.gradle.plugins:license-gradle-plugin:0.4 ' }
2+ dependencies { classpath ' nl.javadude.gradle.plugins:license-gradle-plugin:0.5 ' }
33}
44
5- apply plugin : ' license'
5+ apply plugin : nl.javadude.gradle.plugins. license.LicensePlugin
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ subprojects {
44 apply plugin : ' signing'
55
66 signing {
7- required { performingRelease && gradle. taskGraph. hasTask(" uploadMavenCentral " )}
7+ required { performingRelease && gradle. taskGraph. hasTask(" uploadArchives " )}
88 sign configurations. archives
99 }
1010
1111 /**
1212 * Publishing to Maven Central example provided from http://jedicoder.blogspot.com/2011/11/automated-gradle-project-deployment-to.html
1313 */
14- task uploadMavenCentral (type :Upload ) {
14+ task uploadArchives (type :Upload ) {
1515 configuration = configurations. archives
1616 dependsOn signArchives
1717 doFirst {
@@ -35,23 +35,13 @@ subprojects {
3535 artifactId ' oss-parent'
3636 version ' 7'
3737 }
38- url " https://github.com/Netflix/${ rootProject.ext.githubProjectName} "
3938 licenses {
4039 license {
4140 name ' The Apache Software License, Version 2.0'
4241 url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
4342 distribution ' repo'
4443 }
4544 }
46- scm {
47- connection " scm:git:git@github.com:Netflix/${ rootProject.ext.githubProjectName} .git"
48- url " scm:git:git@github.com:Netflix/${ rootProject.ext.githubProjectName} .git"
49- developerConnection " scm:git:git@github.com:Netflix/${ rootProject.ext.githubProjectName} .git"
50- }
51- issueManagement {
52- system ' github'
53- url ' https://github.com/Netflix/${rootProject.ext.githubProjectName}/issues'
54- }
5545 }
5646 }
5747 }
Original file line number Diff line number Diff line change 1+ buildscript {
2+ dependencies { classpath group : ' no.entitas.gradle' , name : ' gradle-release-plugin' , version : ' 1.11' }
3+ }
4+
5+ apply plugin : no.entitas.gradle.git.GitReleasePlugin // 'gitrelease'
6+
You can’t perform that action at this time.
0 commit comments