Skip to content

Commit

Permalink
Fix groovy syntax in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Dec 17, 2024
1 parent 83a07e0 commit d4bed77
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AbstractAlignAndMigrateSpec extends AbstractAlignRulesSpec {
createTestDependencies()
buildFile << """
repositories {
maven { url '${projectDir.toPath().relativize(mavenrepo.toPath()).toFile()}' }
maven { url = '${projectDir.toPath().relativize(mavenrepo.toPath()).toFile()}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ buildscript {
}
repositories {
maven {
url "https://plugins.gradle.org/m2/"
url = "https://plugins.gradle.org/m2/"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AlignAndLockWithDowngradedTransitiveDependenciesSpec extends AbstractInteg
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
url = "https://plugins.gradle.org/m2/"
}
}
dependencies {
Expand Down Expand Up @@ -376,7 +376,7 @@ class AlignAndLockWithDowngradedTransitiveDependenciesSpec extends AbstractInteg

buildFile << """
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
mavenCentral()
}
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ class AlignAndSubstituteRulesSpec extends AbstractIntegrationTestKitSpec {
id 'com.netflix.nebula.resolution-rules'$pluginToAdd
}
repositories {
maven { url '${projectDir.toPath().relativize(mavenrepo.toPath()).toFile()}' }
maven { url = '${projectDir.toPath().relativize(mavenrepo.toPath()).toFile()}' }
}
dependencies {
resolutionRules files("${projectDir.toPath().relativize(rulesJsonFile.toPath()).toFile()}")
Expand Down Expand Up @@ -1942,7 +1942,7 @@ class AlignAndSubstituteRulesSpec extends AbstractIntegrationTestKitSpec {
implementation 'test.nebula:b'
}
repositories {
maven { url '${bomRepo.root.absoluteFile.toURI()}' }
maven { url = '${bomRepo.root.absoluteFile.toURI()}' }
}
""".stripIndent()
}
Expand Down Expand Up @@ -1995,7 +1995,7 @@ class AlignAndSubstituteRulesSpec extends AbstractIntegrationTestKitSpec {
repositories {
mavenCentral()
maven {
url 'repo'
url = 'repo'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.other:c:1.0.0'
Expand Down Expand Up @@ -109,7 +109,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -161,7 +161,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -212,7 +212,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -280,7 +280,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -331,7 +331,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {
repositories {
maven {
name 'repo'
url 'build/repo'
url = 'build/repo'
}
}
}
Expand Down Expand Up @@ -442,7 +442,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -523,7 +523,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
configurations.all {
resolutionStrategy {
Expand Down Expand Up @@ -582,7 +582,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula.one:a:1.0.0'
Expand Down Expand Up @@ -628,7 +628,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -676,7 +676,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -723,7 +723,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -863,7 +863,7 @@ class AlignRulesBasicSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AlignRulesDirectDependenciesSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -119,7 +119,7 @@ class AlignRulesDirectDependenciesSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.+'
Expand Down Expand Up @@ -158,7 +158,7 @@ class AlignRulesDirectDependenciesSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:[1.0.0, 2.0.0)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AlignRulesForceSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:1.0.0'
Expand Down Expand Up @@ -99,7 +99,7 @@ class AlignRulesForceSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:2.0.0'
Expand Down Expand Up @@ -156,7 +156,7 @@ class AlignRulesForceSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:2.0.0'
Expand Down Expand Up @@ -215,7 +215,7 @@ class AlignRulesForceSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:2.0.0'
Expand Down Expand Up @@ -270,7 +270,7 @@ class AlignRulesForceSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:2.0.0'
Expand Down Expand Up @@ -327,7 +327,7 @@ class AlignRulesForceSpec extends AbstractAlignRulesSpec {

buildFile << """\
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
dependencies {
implementation 'test.nebula:a:2.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class AlignRulesForceStrictlyWithSubstitutionSpec extends AbstractAlignRulesSpec

buildFile << """
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
""".stripIndent()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class AlignRulesMultiprojectSpec extends IntegrationSpec {
repositories {
maven {
name 'repo'
url 'build/repo'
url = 'build/repo'
}
}
}
Expand Down Expand Up @@ -197,7 +197,7 @@ class AlignRulesMultiprojectSpec extends IntegrationSpec {
buildFile << """\
subprojects {
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
}
Expand Down Expand Up @@ -267,7 +267,7 @@ class AlignRulesMultiprojectSpec extends IntegrationSpec {
subprojects {
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class AlignRulesPluginInteractionSpec extends AbstractIntegrationTestKitSpec {
repositories {
mavenCentral()
maven { url '${mavenForRules.absolutePath}' }
maven { url = '${mavenForRules.absolutePath}' }
}
dependencies {
Expand Down Expand Up @@ -610,7 +610,7 @@ class AlignRulesPluginInteractionSpec extends AbstractIntegrationTestKitSpec {
repositories {
${mavenrepo.mavenRepositoryBlock}
maven { url '${mavenForRules.absolutePath}' }
maven { url = '${mavenForRules.absolutePath}' }
}
dependencies {
Expand Down Expand Up @@ -650,7 +650,7 @@ class AlignRulesPluginInteractionSpec extends AbstractIntegrationTestKitSpec {
repositories {
${mavenrepo.mavenRepositoryBlock}
maven { url '${mavenForRules.absolutePath}' }
maven { url = '${mavenForRules.absolutePath}' }
}
dependencies {
Expand Down Expand Up @@ -982,7 +982,7 @@ class AlignRulesPluginInteractionSpec extends AbstractIntegrationTestKitSpec {
subprojects {
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
}
""".stripIndent()
Expand Down Expand Up @@ -1075,7 +1075,7 @@ class AlignRulesPluginInteractionSpec extends AbstractIntegrationTestKitSpec {
subprojects {
apply plugin: 'java'
repositories {
maven { url '${mavenrepo.absolutePath}' }
maven { url = '${mavenrepo.absolutePath}' }
}
}
""".stripIndent()
Expand Down Expand Up @@ -1108,7 +1108,7 @@ class AlignRulesPluginInteractionSpec extends AbstractIntegrationTestKitSpec {
repositories {
${mavenrepo.mavenRepositoryBlock}
maven { url '${mavenForRules.absolutePath}' }
maven { url = '${mavenForRules.absolutePath}' }
}
dependencies {
Expand Down
Loading

0 comments on commit d4bed77

Please sign in to comment.