File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
gradleTest/simpleplugin/src/test/groovy/simple
main/groovy/nebula/test/dependencies Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class DependenciesSpec extends IntegrationSpec {
17
17
buildFile << """ \
18
18
apply plugin: 'war'
19
19
repositories {
20
- maven { url '${ mavenrepo.absolutePath} ' }
20
+ maven { url = '${ mavenrepo.absolutePath} ' }
21
21
}
22
22
dependencies {
23
23
compile 'testjava:a:0.1.0'
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ class GradleDependencyGenerator {
34
34
publishing {
35
35
repositories {
36
36
maven {
37
- url "../mavenrepo"
37
+ url = "../mavenrepo"
38
38
}
39
39
ivy {
40
- url "../ivyrepo"
40
+ url = "../ivyrepo"
41
41
patternLayout {
42
42
ivy '[organisation]/[module]/[revision]/[module]-[revision]-ivy.[ext]'
43
43
artifact '[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'
@@ -58,10 +58,10 @@ class GradleDependencyGenerator {
58
58
publishing {
59
59
repositories {
60
60
maven {
61
- url "../mavenrepo"
61
+ url = "../mavenrepo"
62
62
}
63
63
ivy {
64
- url "../ivyrepo"
64
+ url = "../ivyrepo"
65
65
layout('pattern') {
66
66
ivy '[organisation]/[module]/[revision]/[module]-[revision]-ivy.[ext]'
67
67
artifact '[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'
@@ -116,7 +116,7 @@ class GradleDependencyGenerator {
116
116
117
117
String getMavenRepositoryBlock () {
118
118
""" \
119
- maven { url '${ getMavenRepoUrl()} ' }
119
+ maven { url = '${ getMavenRepoUrl()} ' }
120
120
""" . stripIndent()
121
121
}
122
122
@@ -140,7 +140,7 @@ class GradleDependencyGenerator {
140
140
String layoutPattern = isGradleOlderThanGradleFive ? LEGACY_PATTERN_LAYOUT : PATTERN_LAYOUT
141
141
return """ \
142
142
ivy {
143
- url '${ getIvyRepoUrl()} '
143
+ url = '${ getIvyRepoUrl()} '
144
144
${ layoutPattern} {
145
145
ivy '[organisation]/[module]/[revision]/[module]-[revision]-ivy.[ext]'
146
146
artifact '[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class MavenRepo {
26
26
27
27
String repoString () {
28
28
""" \
29
- maven { url '${ root.absolutePath} ' }
29
+ maven { url = '${ root.absolutePath} ' }
30
30
""" . stripIndent()
31
31
}
32
32
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class IntegrationTestKitSpecSpec extends IntegrationTestKitSpec {
44
44
buildFile << """
45
45
apply plugin 'java-library'
46
46
repositories {
47
- maven { url '${ mavenrepo.absolutePath} ' }
47
+ maven { url = '${ mavenrepo.absolutePath} ' }
48
48
}
49
49
dependencies {
50
50
implementation 'testjava:a:0.1.0'
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ class GradleDependencyGeneratorSpec extends Specification {
329
329
def generator = new GradleDependencyGenerator (new DependencyGraph ([' test.ivy:foo:1.0.0' ]), ' build/test' )
330
330
String expectedBlock = """ \
331
331
ivy {
332
- url '${ generator.getIvyRepoUrl()} '
332
+ url = '${ generator.getIvyRepoUrl()} '
333
333
patternLayout {
334
334
ivy '[organisation]/[module]/[revision]/[module]-[revision]-ivy.[ext]'
335
335
artifact '[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'
@@ -378,7 +378,7 @@ class GradleDependencyGeneratorSpec extends Specification {
378
378
def ' integration spec maven repository block is available' () {
379
379
def generator = new GradleDependencyGenerator (new DependencyGraph ([' test.maven:foo:1.0.0' ]), ' build/test' )
380
380
String expectedBlock = """ \
381
- maven { url '${ generator.getMavenRepoUrl()} ' }
381
+ maven { url = '${ generator.getMavenRepoUrl()} ' }
382
382
""" . stripIndent()
383
383
384
384
when :
You can’t perform that action at this time.
0 commit comments