-
-
Notifications
You must be signed in to change notification settings - Fork 967
Closed
Milestone
Description
Task List
- Steps to reproduce provided
- Stacktrace (if present) provided
- Example that reproduces the problem uploaded to Github
- Full description of the issue provided (see below)
Steps to Reproduce
- create a plugin
- add a dependency (e.g.
compile "org.springframework:spring-messaging:5.1.5.RELEASE") - run
gradle(w) generatePomFileForMavenPublication - check
build/publications/maven/pom-default.xml
Expected Behaviour
the dependency should not have any exclusions in the pom file, i.e.:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-messaging</artifactId>
<version>5.1.5.RELEASE</version>
<scope>compile</scope>
</dependency>Actual Behaviour
the dependency has grails-specific exclusions that are not related to the actual dependency:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-messaging</artifactId>
<version>5.1.5.RELEASE</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<artifactId>grails-plugin-async</artifactId>
<groupId>org.grails</groupId>
</exclusion>
<exclusion>
<artifactId>grails-plugin-events</artifactId>
<groupId>org.grails</groupId>
</exclusion>
<exclusion>
<artifactId>grails-plugin-converters</artifactId>
<groupId>org.grails</groupId>
</exclusion>
<exclusion>
<artifactId>grails-plugin-gsp</artifactId>
<groupId>org.grails</groupId>
</exclusion>
<exclusion>
<artifactId>grails-plugin-testing</artifactId>
<groupId>org.grails</groupId>
</exclusion>
</exclusions>
</dependency>possible cause
i think the exclusions are defined here: https://github.com/grails/grails-core/blob/v4.0.0.M1/grails-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/core/GrailsGradlePlugin.groovy#L186-L189
and i would guess this is likely due to a change of behavior by gradle(-5)?
workaround
what i am currently doing is this (build.gradle) :(
publishing {
publications.first().pom.withXml {
asNode().dependencies.dependency.exclusions*.replaceNode {}
}
}Environment Information
- Operating System: win x64
- Grails Version: 4.0.0.M1
- JDK Version: 8u131
- Container Version (If Applicable): n/a
Example Application
grails-spring-websocket-2.5.0.M1is using the described workaround here: zyro23/grails-spring-websocket@a305117#diff-c197962302397baf3a4cc36463dce5eaR44
erichelgeson
Metadata
Metadata
Assignees
Labels
No labels