Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Launcher jar to sonatype oss repo deploy
  • Loading branch information
gschueler committed Jun 15, 2015
1 parent 20c5040 commit 4245df6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions build.gradle
Expand Up @@ -37,7 +37,8 @@ ext.exportedProjects = [
":rundeck-storage:rundeck-storage-api",
":rundeck-storage:rundeck-storage-data",
":rundeck-storage:rundeck-storage-filesys",
":rundeck-storage:rundeck-storage-conf"
":rundeck-storage:rundeck-storage-conf",
":rundeck-launcher:launcher"
]
/**
* Defaults for all projects
Expand All @@ -48,17 +49,18 @@ subprojects {
apply from: "${rootDir}/gradle/java.gradle"
apply plugin: 'eclipse'
eclipse.project.name = "${project.getParent().eclipse.project.name}:${name}"

// the environment can be set by adding -Penvironment={value} as a command
// line switch. by default we run as 'development'
ext.environment = project.hasProperty('environment') ? environment : 'development';

// Unless we're doing a release build, append -SNAPSHOT to the end of the
// artifacts. Otherwise use the currentVersion as defined in gradle.properties and
// the releaseTag if it is not 'GA'
def vtag = environment != 'release' ? '-SNAPSHOT' : (project.hasProperty('releaseTag') && releaseTag!='GA' ? '-'+releaseTag : '')
def vtag = environment != 'release' ? '-SNAPSHOT' : (project.hasProperty('releaseTag') && releaseTag != 'GA' ? '-' + releaseTag : '')
version = currentVersion + vtag

}
allprojects{
ext.isReleaseBuild = false
ext.isSnapshotBuild = false
ext.isDevBuild = false
Expand All @@ -77,8 +79,7 @@ task wrapper(type: Wrapper) {

// prompt for PGP key passphrase if not set
gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.allTasks.any { it instanceof Sign } && project.hasProperty("signing.keyId") && !project.hasProperty
("signing.password") && !isDevBuild) {
if (taskGraph.allTasks.any { it instanceof Sign } && project.hasProperty("signing.keyId") && !project.hasProperty( "signing.password") && !project.isDevBuild) {
// Use Java 6's console to read from the console (no good for a CI environment)
Console console = System.console()
console.printf "\n\nWe have to sign some things in this build.\n\nPlease enter your signing details.\n\n"
Expand Down Expand Up @@ -179,7 +180,7 @@ exportedProjects.each {
}

//utility to create a pom for building
if(project.name!='core'){
if(!(project.name in ['core','launcher'])){
//:core buildfile will generate its own pom for specialized purpose
task createPom << {
publishPom.writeTo("pom.xml")
Expand Down

0 comments on commit 4245df6

Please sign in to comment.