-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from AlanKrueger/master
update to gradle 1.2 and add nexus plugin
- Loading branch information
Showing
5 changed files
with
55 additions
and
72 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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
.settings | ||
bin | ||
build | ||
local.properties | ||
gradle.properties |
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,18 +1,18 @@ | ||
apply plugin: 'groovy' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
apply plugin: 'eclipse' | ||
apply plugin: 'nexus' | ||
|
||
group = 'com.trigonic' | ||
version = '1.1' | ||
version = '1.2-SNAPSHOT' | ||
|
||
def props = new Properties(); | ||
def localProperties = new File("local.properties") | ||
if (localProperties.exists()) localProperties.withInputStream { props.load(it) } | ||
props.each { project.ext.set it.key, it.value } | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
configurations { | ||
deployerJars | ||
dependencies { | ||
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.2' | ||
} | ||
} | ||
|
||
repositories { | ||
|
@@ -21,13 +21,11 @@ repositories { | |
|
||
dependencies { | ||
compile gradleApi() | ||
compile 'org.redline-rpm:redline:1.1.9' | ||
compile 'org.redline-rpm:redline:1.1.+' | ||
|
||
groovy 'org.codehaus.groovy:groovy:1.8.5' | ||
groovy 'org.codehaus.groovy:groovy:1.8.+' | ||
|
||
testCompile 'junit:junit:4.+' | ||
|
||
deployerJars 'org.apache.maven.wagon:wagon-http:1.0-beta-7' | ||
} | ||
|
||
task packageJavadoc(type: Jar, dependsOn: 'javadoc') { | ||
|
@@ -46,63 +44,48 @@ artifacts { | |
archives packageSources | ||
} | ||
|
||
signing { | ||
required { gradle.taskGraph.hasTask("uploadArchives") } | ||
sign configurations.archives | ||
} | ||
|
||
uploadArchives { | ||
repositories.mavenDeployer { | ||
configuration = configurations.deployerJars | ||
|
||
beforeDeployment { MavenDeployment deployment -> signPom(deployment) } | ||
|
||
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2') { | ||
authentication(userName: props.get('maven.repository.user'), password: props.get('maven.repository.password')) | ||
modifyPom { | ||
project { | ||
name 'gradle-rpm-plugin - Gradle plugin for constructing RPM packages' | ||
packaging 'jar' | ||
description 'Provides a task similar to Tar and Zip for constructing RPM package files.' | ||
url 'https://github.com/TrigonicSolutions/gradle-rpm-plugin' | ||
inceptionYear '2011' | ||
|
||
parent { | ||
groupId 'org.sonatype.oss' | ||
artifactId 'oss-parent' | ||
version '7' | ||
} | ||
|
||
pom.project { | ||
name 'gradle-rpm-plugin - Gradle plugin for constructing RPM packages' | ||
packaging 'jar' | ||
description 'Provides a task similar to Tar and Zip for constructing RPM package files.' | ||
url 'https://github.com/TrigonicSolutions/gradle-rpm-plugin' | ||
inceptionYear '2011' | ||
|
||
parent { | ||
groupId 'org.sonatype.oss' | ||
artifactId 'oss-parent' | ||
version '7' | ||
} | ||
|
||
scm { | ||
url 'scm:git://github.com/TrigonicSolutions/gradle-rpm-plugin.git' | ||
connection 'scm:git://github.com/TrigonicSolutions/gradle-rpm-plugin.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
|
||
scm { | ||
url 'scm:git://github.com/TrigonicSolutions/gradle-rpm-plugin.git' | ||
connection 'scm:git://github.com/TrigonicSolutions/gradle-rpm-plugin.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'akrueger' | ||
name 'Alan Krueger' | ||
email '[email protected]' | ||
roles{ | ||
role 'Developer' | ||
} | ||
timezone '-6' | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'akrueger' | ||
name 'Alan Krueger' | ||
email '[email protected]' | ||
roles{ | ||
role 'Developer' | ||
} | ||
timezone '-6' | ||
} | ||
} | ||
} | ||
} | ||
|
||
task createWrapper(type: Wrapper) { | ||
gradleVersion = '1.0-milestone-9' | ||
gradleVersion = '1.2' | ||
} | ||
|
Binary file not shown.
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,6 +1,6 @@ | ||
#Tue Apr 03 15:05:27 CDT 2012 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.0-milestone-9-bin.zip | ||
#Wed Oct 17 11:36:47 CDT 2012 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.2-bin.zip |
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