Skip to content

Commit 098114e

Browse files
authored
Merge pull request #78 from slonopotamus/deprecated-compile-implementation
Replace deprecated 'compile' dependency scope with 'implementation'
2 parents 912bc0c + 119ddb4 commit 098114e

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ idea {
4040
}
4141

4242
subprojects {
43-
apply(plugin = "java")
43+
apply(plugin = "java-library")
4444
apply(plugin = "maven-publish")
4545
apply(plugin = "signing")
4646
apply(plugin = "de.marcphilipp.nexus-publish")
@@ -50,14 +50,14 @@ subprojects {
5050
targetCompatibility = javaVersion
5151
}
5252

53-
val compile by configurations
54-
val testCompile by configurations
53+
val implementation by configurations
54+
val testImplementation by configurations
5555

5656
dependencies {
57-
compile("org.jetbrains:annotations:17.0.0")
57+
implementation("org.jetbrains:annotations:17.0.0")
5858

59-
testCompile("com.google.guava:guava:28.1-jre")
60-
testCompile("org.testng:testng:7.0.0")
59+
testImplementation("com.google.guava:guava:28.1-jre")
60+
testImplementation("org.testng:testng:7.0.0")
6161
}
6262

6363
idea {

gitlfs-client/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
description = "Java Git-LFS client library"
22

33
dependencies {
4-
compile(project(":gitlfs-common"))
5-
compile("org.apache.httpcomponents:httpclient:4.5.10")
6-
compile("org.slf4j:slf4j-api:1.7.28")
4+
api(project(":gitlfs-common"))
5+
api("org.apache.httpcomponents:httpclient:4.5.10")
6+
implementation("org.slf4j:slf4j-api:1.7.28")
77

8-
testCompile("org.yaml:snakeyaml:1.25")
8+
testImplementation("org.yaml:snakeyaml:1.25")
99
testRuntimeOnly("org.slf4j:slf4j-simple:1.7.28")
1010
}

gitlfs-common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description = "Java Git-LFS common structures"
22

33
dependencies {
4-
compile("com.fasterxml.jackson.core:jackson-databind:2.9.9.3")
4+
api("com.fasterxml.jackson.core:jackson-databind:2.9.9.3")
55
}

gitlfs-server/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
description = "Java Git-LFS server implementation-free library"
22

33
dependencies {
4-
compile(project(":gitlfs-common"))
5-
compile("javax.servlet:javax.servlet-api:4.0.1")
4+
api(project(":gitlfs-common"))
5+
api("javax.servlet:javax.servlet-api:4.0.1")
66

7-
testCompile(project(":gitlfs-client"))
8-
testCompile("org.eclipse.jetty:jetty-servlet:9.4.20.v20190813")
7+
testImplementation(project(":gitlfs-client"))
8+
testImplementation("org.eclipse.jetty:jetty-servlet:9.4.20.v20190813")
99
testRuntimeOnly("org.slf4j:slf4j-simple:1.7.28")
1010
}

0 commit comments

Comments
 (0)