Skip to content

Commit a868cd1

Browse files
committed
remove deprecated compile configuration
1 parent 7b6ecf1 commit a868cd1

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Update gradle-github-info-plugin 1.1.0 -> 1.2.0
33
* Update io.spring.dependency-management 1.0.8 -> 1.0.9
44
* Update spock to 1.3
5+
* Remove deprecated compile configurations
56

67
### 2.7.0 (2019-11-24)
78
* Fix node compatibility: minimal required node is 8.5.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ optional 'com.github.spotbugs:spotbugs-annotations:3.1.2'
259259
```
260260

261261
In generated pom these dependencies will be defined as provided or optional, but for gradle build it's
262-
the same as declaring them in `compile` scope.
262+
the same as declaring them in `implementation` scope.
263263

264264
jsr305 provided dependency is defined by default in generated project (useful to guide firebug).
265265

app/templates/project-multi-modules/bom/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dependencyManagement {
5050
5151
// declare modules without versions
5252
dependencies {
53-
compile '<%= libGroup %>:<%= modulePrefix %>-<%= moduleName %>'
53+
implementation '<%= libGroup %>:<%= modulePrefix %>-<%= moduleName %>'
5454
}
5555
5656
```

app/templates/project-multi-modules/module/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Maven:
2626
Gradle:
2727

2828
```groovy
29-
compile '<%= libGroup %>:<%= modulePrefix %>-<%= moduleName %>:<%= libVersion %>'
29+
implementation '<%= libGroup %>:<%= modulePrefix %>-<%= moduleName %>:<%= libVersion %>'
3030
```
3131

3232
See the most recent version in the badge above.

app/templates/project-multi-modules/module/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ description = "Module description"
22

33
dependencies {
44
// module specific dependencies (version always declared in root module)
5-
// compile 'com.foo:lib1'
5+
// implementation 'com.foo:lib1'
66
}

app/templates/project-multi/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ subprojects {
8181
dependencies {
8282
<% if (animalsnifferSignature) { %>signature '<%= animalsnifferSignature %>'
8383

84-
<% } %>provided 'com.github.spotbugs:spotbugs-annotations:3.1.2'
84+
<% } %>compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.2'
8585

86-
compile 'org.slf4j:slf4j-api'
86+
implementation 'org.slf4j:slf4j-api'
8787

88-
testCompile 'ch.qos.logback:logback-classic:1.2.3'
89-
testCompile "org.slf4j:jul-to-slf4j:$slf4j"
90-
testCompile 'org.spockframework:spock-core'
88+
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
89+
testImplementation "org.slf4j:jul-to-slf4j:$slf4j"
90+
testImplementation 'org.spockframework:spock-core'
9191
}
9292

9393
group = '<%= libGroup %>'

app/templates/project-single/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Maven:
3434
Gradle:
3535

3636
```groovy
37-
compile '<%= libGroup %>:<%= libName %>:<%= libVersion %>'
37+
implementation '<%= libGroup %>:<%= libName %>:<%= libVersion %>'
3838
```
3939

4040
##### Snapshots

app/templates/project-single/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ dependencyManagement {
4848
dependencies {
4949
<% if (animalsnifferSignature) { %>signature '<%= animalsnifferSignature %>'
5050

51-
<% } %>provided 'com.github.spotbugs:spotbugs-annotations:3.1.2'
51+
<% } %>compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.2'
5252

53-
compile 'org.slf4j:slf4j-api'
53+
implementation 'org.slf4j:slf4j-api'
5454

55-
testCompile 'ch.qos.logback:logback-classic:1.2.3'
56-
testCompile "org.slf4j:jul-to-slf4j:$slf4j"
57-
testCompile 'org.spockframework:spock-core'
55+
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
56+
testImplementation "org.slf4j:jul-to-slf4j:$slf4j"
57+
testImplementation 'org.spockframework:spock-core'
5858
}
5959

6060
group = '<%= libGroup %>'

0 commit comments

Comments
 (0)