Skip to content

Commit

Permalink
Correct artifacts, moved pom to more visible area
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Ryan committed Apr 9, 2012
1 parent 52bd53f commit b5b2f5e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 20 deletions.
31 changes: 26 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion gradle/convention.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ subprojects
}

artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/license.gradle
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
14 changes: 2 additions & 12 deletions gradle/maven.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'
}
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions gradle/release.gradle
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'

0 comments on commit b5b2f5e

Please sign in to comment.