Skip to content

Commit

Permalink
[MNG-8601] Add type test-java-source type (#2136)
Browse files Browse the repository at this point in the history
Similar to java-source type, but for tests sources.

---

https://issues.apache.org/jira/browse/MNG-8601
  • Loading branch information
cstamas authored Mar 3, 2025
1 parent 14d1bd4 commit ece5dbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ public interface Type extends ExtensibleEnum {
*/
String TEST_JAR = "test-jar";

/**
* Artifact type name for a JAR file containing test sources.
*/
String TEST_JAVA_SOURCE = "test-java-source";

/**
* Returns the dependency type id.
* The id uniquely identifies this <i>dependency type</i>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public Collection<DefaultType> types() {
false,
JavaPathType.CLASSES,
JavaPathType.PATCH_MODULE),
new DefaultType(Type.TEST_JAVA_SOURCE, Language.JAVA_FAMILY, "jar", "test-sources", false),
new DefaultType(Type.MODULAR_JAR, Language.JAVA_FAMILY, "jar", null, false, JavaPathType.MODULES),
new DefaultType(Type.CLASSPATH_JAR, Language.JAVA_FAMILY, "jar", null, false, JavaPathType.CLASSES),
// j2ee types
Expand Down

0 comments on commit ece5dbb

Please sign in to comment.