Support transitive=false in AetherGrapeEngine
@Grab allows a dependency to be declared, but for its transitive dependencies to be excluded by setting transitive to false. This commit enhances AetherGrapeEngine to honour this setting by using a wildcard exclusion on any dependency so declared.
This commit is contained in:
@@ -100,11 +100,17 @@
|
||||
<resource>
|
||||
<directory>src/main/groovy</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${project.build.directory}/generated-resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<additionalClasspathElements>
|
||||
<additionalClasspathElement>${project.build.directory}/generated-resources</additionalClasspathElement>
|
||||
</additionalClasspathElements>
|
||||
<classpathDependencyExcludes>
|
||||
<classpathDependencyExcludes>org.springframework:spring-core</classpathDependencyExcludes>
|
||||
<classpathDependencyExcludes>org.springframework:spring-beans</classpathDependencyExcludes>
|
||||
@@ -190,7 +196,7 @@
|
||||
<property name="dependencies" value="${project.parent}" />
|
||||
<vppcopy
|
||||
file="${basedir}/src/main/resources/META-INF/springcli.properties.vpp"
|
||||
tofile="${project.build.directory}/classes/META-INF/springcli.properties"
|
||||
tofile="${project.build.directory}/generated-resources/META-INF/springcli.properties"
|
||||
overwrite="true" />
|
||||
</target>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user