-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparation for Maven central releases
* added signing plugin in build * sign artifacts * added details to pom.xml needed for Maven central releases * updated build-test.gradle
- Loading branch information
Thorsten Klein
committed
Aug 12, 2013
1 parent
49c2f30
commit be69e0d
Showing
7 changed files
with
266 additions
and
201 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
*.class | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
/build | ||
/.gradle | ||
/.settings | ||
/.classpath | ||
/.project | ||
*.class | ||
*~ | ||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
/build | ||
/.gradle | ||
/.settings | ||
/.classpath | ||
/.project |
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,4 +1,4 @@ | ||
language: groovy | ||
branches: | ||
only: | ||
language: groovy | ||
branches: | ||
only: | ||
- master |
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,48 +1,48 @@ | ||
[![Build Status](https://travis-ci.org/tklein/gradle-jaxws-plugin.png)](https://travis-ci.org/tklein/gradle-jaxws-plugin) | ||
|
||
gradle-jaxws-plugin | ||
=================== | ||
|
||
Gradle plugin to create Java classes from a WSDL using JAX-WS. This plugin | ||
was heavily influenced by the gradle-jaxb-plugin. | ||
|
||
Installation | ||
------------ | ||
|
||
Currently this project is not hosted in public repository, so you just need to build it locally. | ||
|
||
```bash | ||
$ git clone git@github.com:tklein/gradle-jaxws-plugin.git | ||
$ cd gradle-jaxws-plugin | ||
$ gradle build install | ||
``` | ||
|
||
Usage | ||
----- | ||
|
||
You can just use the _jaxws_ plugin like any other plugin in your build file. The example below uses a url from the web, but there is no reason why you cannot reference a wsdl from the local project. | ||
|
||
```groovy | ||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath "eu.schnuckelig.gradle:gradle-jaxws-plugin:0.1-SNAPSHOT" | ||
} | ||
} | ||
apply plugin: 'maven' | ||
apply plugin: 'jaxws' | ||
jaxws { | ||
packageName = 'eu.schnuckelig.gradle.test' | ||
wsdlURL = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL' | ||
} | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
``` | ||
[![Build Status](https://travis-ci.org/tklein/gradle-jaxws-plugin.png)](https://travis-ci.org/tklein/gradle-jaxws-plugin) | ||
|
||
gradle-jaxws-plugin | ||
=================== | ||
|
||
Gradle plugin to create Java classes from a WSDL using JAX-WS. This plugin | ||
was heavily influenced by the gradle-jaxb-plugin. | ||
|
||
Installation | ||
------------ | ||
|
||
Currently this project is not hosted in public repository, so you just need to build it locally. | ||
|
||
```bash | ||
$ git clone git@github.com:tklein/gradle-jaxws-plugin.git | ||
$ cd gradle-jaxws-plugin | ||
$ gradle build install | ||
``` | ||
|
||
Usage | ||
----- | ||
|
||
You can just use the _jaxws_ plugin like any other plugin in your build file. The example below uses a url from the web, but there is no reason why you cannot reference a wsdl from the local project. | ||
|
||
```groovy | ||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath "eu.schnuckelig.gradle:gradle-jaxws-plugin:0.1-SNAPSHOT" | ||
} | ||
} | ||
apply plugin: 'maven' | ||
apply plugin: 'jaxws' | ||
jaxws { | ||
packageName = 'eu.schnuckelig.gradle.test' | ||
wsdlURL = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL' | ||
} | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
``` |
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,27 +1,25 @@ | ||
buildscript { | ||
repositories { | ||
maven { | ||
url uri('../repo') | ||
} | ||
mavenLocal() | ||
} | ||
dependencies { | ||
classpath group: 'eu.schnuckelig', name: 'gradle-jaxws-plugin', version: '0.1-SNAPSHOT' | ||
} | ||
} | ||
|
||
apply plugin: 'maven' | ||
apply plugin: 'jaxws' | ||
|
||
jaxws { | ||
packageName = 'eu.schnuckelig.gradle.test' | ||
wsdlURL = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL' | ||
} | ||
|
||
repositories { | ||
maven { | ||
url uri('../repo') | ||
} | ||
maven { url "http://eis-ms-db-36.ms.eucon.local:8881/nexus/content/groups/public/" } | ||
mavenLocal() | ||
} | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
maven { | ||
url uri('https://oss.sonatype.org/content/groups/public') | ||
} | ||
} | ||
dependencies { | ||
classpath group: 'eu.schnuckelig.gradle', name: 'gradle-jaxws-plugin', version: '1.0' | ||
} | ||
} | ||
|
||
apply plugin: 'maven' | ||
apply plugin: 'jaxws' | ||
|
||
jaxws { | ||
packageName = 'eu.schnuckelig.gradle.test' | ||
wsdlURL = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL' | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} |
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,36 +1,103 @@ | ||
apply plugin: 'java' | ||
apply plugin: 'groovy' | ||
apply plugin: 'eclipse' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
ext.isReleaseVersion = !version.endsWith("SNAPSHOT") | ||
|
||
dependencies { | ||
compile gradleApi() | ||
groovy localGroovy() | ||
} | ||
|
||
group = 'eu.schnuckelig.gradle' | ||
version = '0.1-SNAPSHOT' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
testCompile 'junit:junit:4.11' | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") } | ||
sign configurations.archives | ||
} | ||
apply plugin: 'java' | ||
apply plugin: 'groovy' | ||
apply plugin: 'eclipse' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
group = 'eu.schnuckelig.gradle' | ||
version = '1.0' | ||
|
||
ext { | ||
isReleaseVersion = !version.endsWith("SNAPSHOT") | ||
description = 'Gradle JAX-WS plugin' | ||
packaging = 'jar' | ||
projectUrl = 'https://github.com/tklein/gradle-jaxws-plugin' | ||
scmBrowseUrl = 'https://github.com/tklein/gradle-jaxws-plugin' | ||
scmUrl = 'scm:git:https://github.com/tklein/gradle-jaxws-plugin' | ||
} | ||
|
||
dependencies { | ||
compile gradleApi() | ||
compile localGroovy() | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
testCompile 'junit:junit:4.11' | ||
} | ||
|
||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { | ||
authentication(userName: repoUser, password: repoPassword) | ||
} | ||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
authentication(userName: repoUser, password: repoPassword) | ||
} | ||
|
||
pom.project { | ||
name archivesBaseName | ||
packaging packaging | ||
description project.ext.description | ||
url projectUrl | ||
inceptionYear '2013' | ||
|
||
scm { | ||
url scmBrowseUrl | ||
connection scmUrl | ||
} | ||
|
||
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 'tklein' | ||
name 'Thorsten Klein' | ||
email 'dev@perlwizard.de' | ||
url 'http://www.schnuckelig.eu' | ||
|
||
roles { | ||
role 'Developer' | ||
} | ||
timezone '+1' | ||
} | ||
} | ||
} | ||
|
||
} | ||
} | ||
} | ||
|
||
// custom tasks for creating source/javadoc jars | ||
task sourcesJar(type: Jar, dependsOn:classes) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn:javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
// add javadoc/source jar tasks as artifacts | ||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
|
||
signing { | ||
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") } | ||
sign configurations.archives | ||
} |
Oops, something went wrong.