Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #318 includes/excludes for dependencies #602

Merged
merged 1 commit into from Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1 @@
invoker.goals=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates
@@ -0,0 +1,31 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>localhost</groupId>
<artifactId>it-display-dependency-updates-issue-318-dependencyExcludes</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>it-display-dependency-updates-issue-318-dependencyExcludes</name>
<description>exclude a set of dependencies</description>
<url>http://localhost/</url>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-impl</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>latest-versions-api</artifactId>
<version>2.0.8</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
@@ -0,0 +1 @@
dependencyExcludes=*:*:*:*:*:compile,*:*:*:*:*:test
@@ -0,0 +1,10 @@
def buildLog = new File( basedir, "build.log" )

assert buildLog.text.contains( """
[INFO] The following dependencies in Dependencies have newer versions:
[INFO] localhost:dummy-api ....................................... 1.0 -> 3.0
[INFO]
[INFO] ------------------------------------------------------------------------
""".replaceAll( "\n", System.lineSeparator() ) )

return true
@@ -0,0 +1 @@
invoker.goals=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates
@@ -0,0 +1,31 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>localhost</groupId>
<artifactId>it-display-dependency-updates-issue-318-dependencyIncludes-multi</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>it-display-dependency-updates-issue-318-dependencyIncludes-multi</name>
<description>include a set of dependencies using multiple filters</description>
<url>http://localhost/</url>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-impl</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>latest-versions-api</artifactId>
<version>2.0.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
@@ -0,0 +1 @@
dependencyIncludes=*:dummy-api,*:dummy-impl
@@ -0,0 +1,11 @@
def buildLog = new File(basedir, "build.log")

assert buildLog.text.contains("""
[INFO] The following dependencies in Dependencies have newer versions:
[INFO] localhost:dummy-api ....................................... 1.0 -> 3.0
[INFO] localhost:dummy-impl ...................................... 1.0 -> 2.2
[INFO]
[INFO] ------------------------------------------------------------------------
""".replaceAll( "\n", System.lineSeparator() ) )

return true
@@ -0,0 +1 @@
invoker.goals=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates
@@ -0,0 +1,31 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>localhost</groupId>
<artifactId>it-display-dependency-updates-issue-318-dependencyIncludes</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>it-display-dependency-updates-issue-318-dependencyIncludes</name>
<description>include a set of dependencies</description>
<url>http://localhost/</url>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-impl</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>latest-versions-api</artifactId>
<version>2.0.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
@@ -0,0 +1 @@
dependencyIncludes=localhost:dummy-*:*:*:*:*
@@ -0,0 +1,11 @@
def buildLog = new File(basedir, "build.log")

assert buildLog.text.contains("""
[INFO] The following dependencies in Dependencies have newer versions:
[INFO] localhost:dummy-api ....................................... 1.0 -> 3.0
[INFO] localhost:dummy-impl ...................................... 1.0 -> 2.2
[INFO]
[INFO] ------------------------------------------------------------------------
""".replaceAll( "\n", System.lineSeparator() ) )

return true
@@ -0,0 +1 @@
invoker.goals=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates
@@ -0,0 +1,31 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>localhost</groupId>
<artifactId>it-display-dependency-updates-issue-318-dependencyIncludesAndExcludes</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>it-display-dependency-updates-issue-318-dependencyIncludesAndExcludes</name>
<description>combine dependency inclusion and exclusion</description>
<url>http://localhost/</url>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-impl</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>latest-versions-api</artifactId>
<version>2.0.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,2 @@
dependencyIncludes=localhost:dummy-*:*:*:*:*
dependencyExcludes=*:dummy-impl:*:*:*
@@ -0,0 +1,10 @@
def buildLog = new File(basedir, "build.log")

assert buildLog.text.contains("""
[INFO] The following dependencies in Dependencies have newer versions:
[INFO] localhost:dummy-api ....................................... 1.0 -> 3.0
[INFO]
[INFO] ------------------------------------------------------------------------
""".replaceAll( "\n", System.lineSeparator() ) )

return true
@@ -0,0 +1 @@
invoker.goals=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates
@@ -0,0 +1,57 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>localhost</groupId>
<artifactId>it-display-dependency-updates-issue-318-dependencyManagementExcludes</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>it-display-dependency-updates-issue-318-dependencyManagementExcludes</name>
<description>exclude dependencies from dependencyManagement</description>
<url>http://localhost/</url>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-impl</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>latest-versions-api</artifactId>
<version>2.0.11</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-impl</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>latest-versions-api</artifactId>
<version>2.0.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api-impl-bom-pom</artifactId>
<version>1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
@@ -0,0 +1,2 @@
processDependencies=false
dependencyManagementExcludes=*:*:*:*:*:provided,*:*:*:*:*:import
@@ -0,0 +1,11 @@
def buildLog = new File(basedir, "build.log")

assert buildLog.text.contains("""
[INFO] The following dependencies in Dependency Management have newer versions:
[INFO] localhost:dummy-api ....................................... 1.0 -> 3.0
[INFO] localhost:dummy-impl ...................................... 1.0 -> 2.2
[INFO]
[INFO] ------------------------------------------------------------------------
""".replaceAll( "\n", System.lineSeparator() ) )

return true
@@ -0,0 +1 @@
invoker.goals=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates
@@ -0,0 +1,50 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>localhost</groupId>
<artifactId>it-display-dependency-updates-issue-318-dependencyManagementIncludes</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>it-display-dependency-updates-issue-318-dependencyManagementIncludes</name>
<description>include dependencies from dependencyManagement</description>
<url>http://localhost/</url>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-impl</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>latest-versions-api</artifactId>
<version>2.0.11</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-impl</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>localhost</groupId>
<artifactId>latest-versions-api</artifactId>
<version>2.0.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
@@ -0,0 +1,2 @@
processDependencies=false
dependencyManagementIncludes=*:*:*:*:*:null,*:*:*:*:*:test
@@ -0,0 +1,11 @@
def buildLog = new File(basedir, "build.log")

assert buildLog.text.contains("""
[INFO] The following dependencies in Dependency Management have newer versions:
[INFO] localhost:dummy-api ....................................... 1.0 -> 3.0
[INFO] localhost:dummy-impl ...................................... 1.0 -> 2.2
[INFO]
[INFO] ------------------------------------------------------------------------
""".replaceAll( "\n", System.lineSeparator() ) )

return true