@@ -13,6 +13,7 @@ import net.linguica.gradle.maven.settings.MavenSettingsPlugin.MAVEN_SETTINGS_EXT
1313import net.linguica.gradle.maven.settings.MavenSettingsPluginExtension
1414import org.ajoberstar.grgit.Grgit
1515import org.apache.maven.settings.building.SettingsBuildingException
16+ import org.gradle.kotlin.dsl.project
1617
1718plugins {
1819 java
@@ -142,7 +143,7 @@ tasks.register("fixupReadme") {
142143 if (" true" == System .getProperty(" release" , " " ) && project == project.rootProject) {
143144 val tmp = File (System .getProperty(" java.io.tmpdir" ))
144145 val source = File (project.rootDir, " README.md" )
145- val searchString = " https://repo1.maven.org/maven2/org/jboss/gm /analyzer"
146+ val searchString = " https://repo1.maven.org/maven2/org/jboss/pnc/gradle-manipulator /analyzer"
146147
147148 if (! source.exists() || Files .readAllLines(source.toPath()).none { s -> s.contains(searchString) }) {
148149 throw GradleException (" Unable to find '$searchString ' in README.md" )
@@ -350,9 +351,9 @@ subprojects {
350351
351352 val testFixturesCompile by configurations.creating { extendsFrom(configurations[" implementation" ]) }
352353
353- configurations.create(" testFixturesRuntime " ) {
354- extendsFrom(configurations[ " runtimeOnly " ], configurations[ " testFixturesCompile " ])
355- }
354+ configurations.create(
355+ " testFixturesRuntime " ,
356+ Action { extendsFrom(configurations[ " runtimeOnly " ], configurations[ " testFixturesCompile " ]) })
356357
357358 val testFixturesUsageImplementation by
358359 configurations.creating {
@@ -367,12 +368,14 @@ subprojects {
367368 configurations[" testImplementation" ].extendsFrom(testFixturesUsageImplementation)
368369 configurations[" testRuntimeOnly" ].extendsFrom(testFixturesUsageRuntimeOnly)
369370
370- sourceSets.create(" testFixtures" ) {
371- java.srcDir(" src/testFixtures/java" )
372- resources.srcDir(" src/testFixtures/resources" )
373- compileClasspath = sourceSets[" main" ].output + configurations[" testFixturesCompile" ]
374- runtimeClasspath = output + compileClasspath + configurations[" testFixturesRuntime" ]
375- }
371+ sourceSets.create(
372+ " testFixtures" ,
373+ Action {
374+ java.srcDir(" src/testFixtures/java" )
375+ resources.srcDir(" src/testFixtures/resources" )
376+ compileClasspath = sourceSets[" main" ].output + configurations[" testFixturesCompile" ]
377+ runtimeClasspath = output + compileClasspath + configurations[" testFixturesRuntime" ]
378+ })
376379
377380 dependencies {
378381 outputDirectories(sourceSets[" testFixtures" ].output)
@@ -435,6 +438,8 @@ subprojects {
435438 exclude(dependency(" org.commonjava.atlas.maven:.*:.*" ))
436439 exclude(dependency(" org.jboss.pnc.maven-manipulator:.*:.*" ))
437440 exclude(dependency(" org.slf4j:.*:.*" ))
441+ // Prevent org.jboss.gm.common.groovy.BaseScript from being removed.
442+ exclude(project(" :common" ))
438443 }
439444 }
440445
0 commit comments