Skip to content

Commit bf057fe

Browse files
Use sourceSet for java under 17
1 parent 76bb993 commit bf057fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: micrometer-osgi-test/build.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ dependencies {
2626
def testingBundle = tasks.register('testingBundle', Bundle) {
2727
archiveClassifier = 'tests'
2828
from sourceSets.test.output
29+
if (javaLanguageVersion.asInt() < 17) {
30+
sourceSet = sourceSets.tests
31+
}
2932
bundle {
30-
sourceSet = sourceSets.test
31-
bnd = """\
33+
bnd """\
3234
Bundle-SymbolicName: \${task.archiveBaseName}-\${task.archiveClassifier}
3335
Test-Cases: \${classes;HIERARCHY_INDIRECTLY_ANNOTATED;org.junit.platform.commons.annotation.Testable;CONCRETE}
3436
""".stripIndent()

0 commit comments

Comments
 (0)