One of our projects is a web service (with CXF as library), where the web
service is defined in an annotated Java class, e.g.:
@WebService
@SOAPBinding(style=Style.DOCUMENT,use=Use.LITERAL,parameterStyle=ParameterStyle.WRAPPED)
public interface MyWebService {
public MyClass2 myMethod(
@WebParam(name="myParam") MyClass1 myParam) throws
MyException;
}
Additionally to the web service implementation we need to build (compile,
jar) the client, which consists of the MyWebService class along with all
referenced classes, e.g. MyClass1, MyClass2, MyException.
Using ANT we compile the class MyWebService to a separate directory (which
also compiles all referenced classes) using the libraries defined for the
configuration "client" in ivy.xml, then package them.
How would I do this in gradle, i.e.:
define an additional configuration "client" with dependencies
have a second compile task using these dependencies and compiling only
MyWebService and referenced classes
package the resulting classes into a jar (besides packaging the web service
implementation into a war)
publish the web service implementation and the client jar to the enterprise
repository, where the published ivy.xml contains the correct dependencies
including the "client" configuration
--
View this message in context:
http://www.nabble.com/Additional-dependency-configuration-and-additional-compile-task-tp19991304p19991304.html
Sent from the gradle-user mailing list archive at Nabble.com.