-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for classpath resources
- Loading branch information
1 parent
820e0b1
commit 53c60b0
Showing
5 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/test/resources/biz/lermitage/oga/classpath_build_config/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<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> | ||
|
||
<!-- Intentionally does not have a parent to emulate a 3rd party --> | ||
|
||
<groupId>biz.lermitage.oga</groupId> | ||
<artifactId>classpath-build-config</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<name>Build Configuration</name> | ||
</project> |
10 changes: 10 additions & 0 deletions
10
...biz/lermitage/oga/classpath_build_config/src/main/resources/classpath-og-definitions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "2", | ||
"date": "2021/02/03", | ||
"migration": [ | ||
{ | ||
"old": "org.mock-server", | ||
"new": "com.example.classpath.dependency" | ||
} | ||
] | ||
} |
48 changes: 48 additions & 0 deletions
48
src/test/resources/biz/lermitage/oga/ko_classpath_definitions/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<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> | ||
|
||
<artifactId>project-to-test</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<name>Test CheckMojo</name> | ||
|
||
<parent> | ||
<groupId>biz.lermitage.oga</groupId> | ||
<artifactId>parent-pom</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<dependencies> | ||
<!-- From the classpath og-definitions file --> | ||
<dependency> | ||
<groupId>org.mock-server</groupId> | ||
<artifactId>mockserver-junit-rule-no-dependencies</artifactId> | ||
<version>5.13.2</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>biz.lermitage.oga</groupId> | ||
<artifactId>oga-maven-plugin</artifactId> | ||
<configuration> | ||
<additionalDefinitionFiles> | ||
<!-- A file in the plugin dependency --> | ||
<additionalDefinitionFile>classpath-og-definitions.json</additionalDefinitionFile> | ||
</additionalDefinitionFiles> | ||
</configuration> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.example.oga</groupId> | ||
<artifactId>build-config</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |