Skip to content

Commit a9af97c

Browse files
committed
fix test-fixtures target registration and 'enable' convention
1 parent faa3116 commit a9af97c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/bcv-gradle-plugin/src/main/kotlin/BCVProjectPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ constructor(
186186
extension: BCVProjectExtension,
187187
) {
188188
project.pluginManager.withPlugin("java-test-fixtures") {
189-
extension.targets.create(TEST_FIXTURE_SOURCESET_NAME) {
189+
extension.targets.register(TEST_FIXTURE_SOURCESET_NAME) {
190190
// don't enable by default - requiring an API spec for test-fixtures is pretty unusual
191-
enabled.set(false)
191+
enabled.convention(false)
192192
project
193193
.sourceSets
194194
.matching { it.name == TEST_FIXTURE_SOURCESET_NAME }

0 commit comments

Comments
 (0)