tklein / gradle-jaxws-plugin

Gradle plugin to create Java classes from a WSDL using JAX-WS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

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

The plugin is available on Maven Central now, so you simply have to add it to your build dependencies as outlined in the usage section.

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.

buildscript {
	repositories {
		mavenCentral()
	}
	dependencies {
		classpath "eu.schnuckelig.gradle:gradle-jaxws-plugin:1.0"
	}
}

apply plugin: 'maven'
apply plugin: 'jaxws'

jaxws {
	packageName = 'eu.schnuckelig.gradle.test'
	wsdlURL = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL'
}

repositories {
	mavenCentral()
}

About

Gradle plugin to create Java classes from a WSDL using JAX-WS

License:Apache License 2.0


Languages

Language:Groovy 100.0%