Skip to content

Commit b5b2f5e

Browse files
author
Justin Ryan
committed
Correct artifacts, moved pom to more visible area
1 parent 52bd53f commit b5b2f5e

5 files changed

Lines changed: 36 additions & 20 deletions

File tree

build.gradle

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,39 @@
22
ext.releaseVersion = '1.1.3' // TEMPLATE: Set to latest release
33
ext.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
514
apply from: file('gradle/convention.gradle')
615
apply from: file('gradle/maven.gradle')
716
apply from: file('gradle/check.gradle')
8-
apply from: file('gradle/license.gradle')
17+
//apply from: file('gradle/license.gradle') // Waiting for re-release
918

1019
subprojects {
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'

gradle/convention.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ subprojects
2626
}
2727

2828
artifacts {
29-
archives jar
3029
archives sourcesJar
3130
archives javadocJar
3231
}

gradle/license.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
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

gradle/maven.gradle

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff 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
}

gradle/release.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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+

0 commit comments

Comments
 (0)