Skip to content

Commit d099988

Browse files
committed
Gradle compile/ testCompile no longer works with latest Gradle release - replace with implementation
1 parent ff01f00 commit d099988

File tree

13 files changed

+37
-37
lines changed

13 files changed

+37
-37
lines changed

aws-serverless-jersey-archetype/src/main/resources/archetype-resources/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ repositories {
66
}
77

88
dependencies {
9-
compile (
9+
implementation (
1010
'com.amazonaws:aws-lambda-java-core:1.2.0',
1111
'com.amazonaws.serverless:aws-serverless-java-container-jersey:[1.0,)',
1212
'com.fasterxml.jackson.core:jackson-databind:2.9.10',
1313
'io.symphonia:lambda-logging:1.0.1'
1414
)
1515

16-
compile("org.glassfish.jersey.media:jersey-media-json-jackson:2.29.1") {
16+
implementation("org.glassfish.jersey.media:jersey-media-json-jackson:2.29.1") {
1717
exclude group: 'com.fasterxml.jackson.core', module: "jackson-annotations"
1818
exclude group: 'com.fasterxml.jackson.core', module: "jackson-databind"
1919
exclude group: 'com.fasterxml.jackson.core', module: "jackson-core"
2020
}
2121

22-
compile("org.glassfish.jersey.inject:jersey-hk2:2.29.1") {
22+
implementation("org.glassfish.jersey.inject:jersey-hk2:2.29.1") {
2323
exclude group: 'javax.inject', module: "javax.inject"
2424
}
2525

26-
testCompile("junit:junit:4.12")
26+
testImplementation("junit:junit:4.12")
2727
}
2828

2929
task buildZip(type: Zip) {

aws-serverless-spark-archetype/src/main/resources/archetype-resources/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ repositories {
66
}
77

88
dependencies {
9-
compile (
9+
implementation (
1010
'com.sparkjava:spark-core:2.9.1',
1111
'com.amazonaws.serverless:aws-serverless-java-container-spark:[1.0,)',
1212
'com.fasterxml.jackson.core:jackson-databind:2.12.0',
1313
'io.symphonia:lambda-logging:1.0.1'
1414
)
1515

16-
testCompile("junit:junit:4.12")
16+
testImplementation("junit:junit:4.12")
1717
}
1818

1919
task buildZip(type: Zip) {

aws-serverless-spring-archetype/src/main/resources/archetype-resources/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repositories {
66
}
77

88
dependencies {
9-
compile (
9+
implementation (
1010
'org.springframework:spring-webmvc:5.2.16.RELEASE',
1111
'org.springframework:spring-context:5.2.16.RELEASE',
1212
'com.amazonaws.serverless:aws-serverless-java-container-spring:[1.0,)',
@@ -17,7 +17,7 @@ dependencies {
1717
'com.amazonaws:aws-lambda-java-log4j2:1.1.0',
1818
)
1919

20-
testCompile("junit:junit:4.12")
20+
testImplementation("junit:junit:4.12")
2121
}
2222

2323
task buildZip(type: Zip) {

aws-serverless-springboot-archetype/src/main/resources/archetype-resources/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ repositories {
77
}
88

99
dependencies {
10-
compile (
10+
implementation (
1111
'org.springframework.boot:spring-boot-starter-web:1.5.22.RELEASE',
1212
'com.amazonaws.serverless:aws-serverless-java-container-spring:[1.0,)',
1313
'io.symphonia:lambda-logging:1.0.1'
1414
)
1515

16-
testCompile("junit:junit:4.12")
16+
testImplementation("junit:junit:4.12")
1717
}
1818

1919
task buildZip(type: Zip) {

aws-serverless-springboot2-archetype/src/main/resources/archetype-resources/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ repositories {
77
}
88

99
dependencies {
10-
compile (
10+
implementation (
1111
'org.springframework.boot:spring-boot-starter-web:2.2.6.RELEASE',
1212
'com.amazonaws.serverless:aws-serverless-java-container-springboot2:[1.0,)',
1313
'io.symphonia:lambda-logging:1.0.1'
1414
)
1515

16-
testCompile("junit:junit:4.12")
16+
testImplementation("junit:junit:4.12")
1717
}
1818

1919
task buildZip(type: Zip) {

aws-serverless-struts2-archetype/src/main/resources/archetype-resources/build.gradle

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,34 @@ repositories {
77

88
dependencies {
99

10-
compile ('com.amazonaws.serverless:aws-serverless-java-container-struts2:[1.0,)') {
10+
implementation ('com.amazonaws.serverless:aws-serverless-java-container-struts2:[1.0,)') {
1111
exclude group: 'org.apache.struts', module: 'struts2-core'
1212
exclude group: 'org.apache.logging.log4j', module: 'log4j-api'
1313
}
14-
compile ('org.apache.struts:struts2-convention-plugin:2.5.22') {
14+
implementation ('org.apache.struts:struts2-convention-plugin:2.5.22') {
1515
exclude group: 'org.apache.struts', module: 'struts2-core'
1616
}
17-
compile ('org.apache.struts:struts2-rest-plugin:2.5.22') {
17+
implementation ('org.apache.struts:struts2-rest-plugin:2.5.22') {
1818
exclude group: 'org.apache.struts', module: 'struts2-core'
1919
}
20-
compile ('org.apache.struts:struts2-bean-validation-plugin:2.5.22') {
20+
implementation ('org.apache.struts:struts2-bean-validation-plugin:2.5.22') {
2121
exclude group: 'org.apache.struts', module: 'struts2-core'
2222
}
23-
compile ('com.jgeppert.struts2:struts2-aws-lambda-support-plugin:1.0.0') {
23+
implementation ('com.jgeppert.struts2:struts2-aws-lambda-support-plugin:1.0.0') {
2424
exclude group: 'org.apache.struts', module: 'struts2-core'
2525
}
26-
compile ('org.apache.struts:struts2-core:2.5.22') {
26+
implementation ('org.apache.struts:struts2-core:2.5.22') {
2727
exclude group: 'org.apache.logging.log4j', module: 'log4j-api'
2828
}
29-
compile ('org.hibernate:hibernate-validator:4.3.2.Final')
30-
compile ('com.fasterxml.jackson.core:jackson-databind:2.12.0')
31-
compile ('org.apache.logging.log4j:log4j-core:2.8.2')
32-
compile ('org.apache.logging.log4j:log4j-api:2.8.2')
33-
compile ('org.apache.logging.log4j:log4j-slf4j-impl:2.8.2')
34-
compile ('com.amazonaws:aws-lambda-java-log4j2:1.1.0')
29+
implementation ('org.hibernate:hibernate-validator:4.3.2.Final')
30+
implementation ('com.fasterxml.jackson.core:jackson-databind:2.12.0')
31+
implementation ('org.apache.logging.log4j:log4j-core:2.8.2')
32+
implementation ('org.apache.logging.log4j:log4j-api:2.8.2')
33+
implementation ('org.apache.logging.log4j:log4j-slf4j-impl:2.8.2')
34+
implementation ('com.amazonaws:aws-lambda-java-log4j2:1.1.0')
3535

36-
testCompile('junit:junit:4.12')
37-
testCompile('org.apache.struts:struts2-junit-plugin:2.5.22') {
36+
testImplementation('junit:junit:4.12')
37+
testImplementation('org.apache.struts:struts2-junit-plugin:2.5.22') {
3838
exclude group: 'org.apache.struts', module: 'struts2-core'
3939
}
4040
}

samples/jersey/pet-store/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ repositories {
66
}
77

88
dependencies {
9-
compile (
9+
implementation (
1010
'com.amazonaws:aws-lambda-java-core:1.2.0',
1111
'com.amazonaws.serverless:aws-serverless-java-container-jersey:[1.0,)',
1212
'com.fasterxml.jackson.core:jackson-databind:2.12.0',
1313
'io.symphonia:lambda-logging:1.0.1'
1414
)
1515

16-
compile("org.glassfish.jersey.media:jersey-media-json-jackson:2.30.1") {
16+
implementation("org.glassfish.jersey.media:jersey-media-json-jackson:2.30.1") {
1717
exclude group: 'com.fasterxml.jackson.core', module: "jackson-annotations"
1818
exclude group: 'com.fasterxml.jackson.core', module: "jackson-databind"
1919
exclude group: 'com.fasterxml.jackson.core', module: "jackson-core"
2020
}
2121

22-
compile("org.glassfish.jersey.inject:jersey-hk2:2.30.1") {
22+
implementation("org.glassfish.jersey.inject:jersey-hk2:2.30.1") {
2323
exclude group: 'javax.inject', module: "javax.inject"
2424
}
2525
}

samples/micronaut/pet-store/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies {
5252
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
5353

5454
// spring support
55-
compile("org.springframework.boot:spring-boot-starter-web")
55+
implementation("org.springframework.boot:spring-boot-starter-web")
5656
runtime("io.micronaut.spring:micronaut-spring-boot:1.0.1")
5757
runtime("io.micronaut.spring:micronaut-spring-web:1.0.1")
5858
}

samples/spark/pet-store/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repositories {
66
}
77

88
dependencies {
9-
compile (
9+
implementation (
1010
'com.sparkjava:spark-core:2.9.1',
1111
'com.amazonaws.serverless:aws-serverless-java-container-spark:[1.0,)',
1212
'com.fasterxml.jackson.core:jackson-databind:2.12.0',

samples/spring/pet-store/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repositories {
66
}
77

88
dependencies {
9-
compile (
9+
implementation (
1010
'org.springframework:spring-webmvc:5.2.9.RELEASE',
1111
'org.springframework:spring-context:5.2.9.RELEASE',
1212
'com.amazonaws.serverless:aws-serverless-java-container-spring:[1.0,)',

0 commit comments

Comments
 (0)