Skip to content

Commit 1baf84a

Browse files
authored
Fix Gradle deprecation for registerFeature
1 parent 6054e8b commit 1baf84a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,17 @@ configure(javaProjects) { subproject ->
210210
srcDirs = ['src/test/resources', 'src/test/java']
211211
}
212212
}
213+
feature
213214
}
214215

215216
java {
216217
withJavadocJar()
217218
withSourcesJar()
218219
registerFeature('optional') {
219-
usingSourceSet(sourceSets.main)
220+
usingSourceSet(sourceSets.feature)
220221
}
221222
registerFeature('provided') {
222-
usingSourceSet(sourceSets.main)
223+
usingSourceSet(sourceSets.feature)
223224
}
224225
}
225226

0 commit comments

Comments
 (0)