Add includeScope to not include test dependencies for maven-dependency-plugin
Motivation: maven-dependency-plugin will include dependencies of all scopes by default. We should limit the scope to avoid pulling test dependencies. See #5317. Modifications: Add includeScope to avoid pulling test dependencies. Result: netty-all doesn't include codes from netty-build
This commit is contained in:
parent
9b22097f7e
commit
48ed70c1aa
@ -257,6 +257,7 @@
|
||||
<configuration>
|
||||
<classifier>sources</classifier>
|
||||
<includes>io/netty/**</includes>
|
||||
<includeScope>runtime</includeScope>
|
||||
<includeGroupIds>${project.groupId}</includeGroupIds>
|
||||
<outputDirectory>${generatedSourceDir}</outputDirectory>
|
||||
</configuration>
|
||||
@ -272,6 +273,7 @@
|
||||
<configuration>
|
||||
<excludes>io/netty/example/**,META-INF/native/libnetty-tcnative*</excludes>
|
||||
<includes>io/netty/**,META-INF/native/**</includes>
|
||||
<includeScope>runtime</includeScope>
|
||||
<includeGroupIds>${project.groupId}</includeGroupIds>
|
||||
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
||||
</configuration>
|
||||
|
Loading…
Reference in New Issue
Block a user