Fix Gradle deprecation for registerFeature

This commit is contained in:
Artem Bilan
2024-08-02 09:17:05 -04:00
committed by GitHub
parent 6054e8bc9f
commit 1baf84a47f

View File

@@ -210,16 +210,17 @@ configure(javaProjects) { subproject ->
srcDirs = ['src/test/resources', 'src/test/java']
}
}
feature
}
java {
withJavadocJar()
withSourcesJar()
registerFeature('optional') {
usingSourceSet(sourceSets.main)
usingSourceSet(sourceSets.feature)
}
registerFeature('provided') {
usingSourceSet(sourceSets.main)
usingSourceSet(sourceSets.feature)
}
}