"testJar"(Jar::class) { classifier = "tests" from(java.sourceSets["test"].output) dependsOn("testClasses") }Then you add the artifact itself:
artifacts { add("archives", tasks["testJar"]) }
Your build will now create an additional JAR file with the specified content which are the compiled class files for tests in this example.
Keine Kommentare:
Kommentar veröffentlichen