I’ve got the following plugin configuration in a Maven (for now) project:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>initialize</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<includes>**/*.xsd,**/*.wsdl</includes>
<outputDirectory>${project.build.directory}/schema</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.someCompany.someTeam.someProject</groupId>
<artifactId>someProject-wsdl</artifactId>
</artifactItem>
<artifactItem>
<groupId>com.someCompany</groupId>
<artifactId>someCompany-xsd</artifactId>
</artifactItem>
<artifactItem>
<groupId>com.someCompany.someTeam</groupId>
<artifactId>common-schema</artifactId>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
Unfortunately, I can’t find something similar in Gradle. The only thing I’ve found is creating a task, loading artifacts as zip files (specifying the whole path to the artifact) and then unzip it.
Is there any other alternative? Thank you very much for any help!