Skip to content

Commit b25166d

Browse files
committed
closes #328
1 parent 10d5af2 commit b25166d

File tree

7 files changed

+40
-36
lines changed

7 files changed

+40
-36
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
buildscript {
22
repositories {
33
mavenCentral()
4-
maven { url 'http://repo.spring.io/plugins-release' }
4+
maven { url 'https://repo.spring.io/plugins-release' }
55
maven { url "https://plugins.gradle.org/m2/" }
66

77
maven { url 'https://repo.spring.io/snapshot' }

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ springBootVersion=2.7.6
33
springCloudVersion=2021.0.3
44
gradleErrorPronePluginVersion=2.0.2
55
errorProneVersion=2.7.1
6-
lombokVersion=1.18.20
6+
lombokVersion=1.18.24
77

88
version=4.9.1
99
group=io.github.lognet
@@ -16,3 +16,4 @@ nexusUsername=secured
1616
signing.keyId=secured
1717
signing.password=secured
1818
signing.secretKeyRingFile=secured
19+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

grpc-client-spring-boot-starter/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ buildscript {
88
classpath "io.franzbecker:gradle-lombok:4.0.0"
99
}
1010
}
11-
12-
apply plugin: 'java'
11+
plugins {
12+
id 'java-library'
13+
}
1314
apply plugin: 'maven-publish'
1415
apply plugin: 'signing'
1516
apply plugin: "de.marcphilipp.nexus-publish"
@@ -112,7 +113,7 @@ signing {
112113

113114

114115
dependencies {
115-
compile "io.grpc:grpc-api:${grpcVersion}"
116+
api "io.grpc:grpc-api:${grpcVersion}"
116117
}
117118
compileJava.dependsOn(processResources)
118119

grpc-spring-boot-starter-demo/build.gradle

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
}
55
dependencies {
66
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
7-
classpath "com.netflix.nebula:nebula-project-plugin:7.0.7"
7+
classpath "com.netflix.nebula:nebula-project-plugin:9.4.0"
88
}
99
}
1010
plugins {
@@ -56,10 +56,10 @@ configurations.findAll{ cfg ->
5656

5757
extensions.facets.each{
5858
if(it.name.endsWith("Test")) {
59-
configurations.getByName("${it.name}Compile").extendsFrom(configurations.testCompile)
60-
configurations.getByName("${it.name}Runtime").extendsFrom(configurations.testRuntime)
59+
configurations.getByName("${it.name}Implementation").extendsFrom(configurations.testImplementation)
60+
configurations.getByName("${it.name}RuntimeOnly").extendsFrom(configurations.testRuntimeOnly)
6161

62-
dependencies.add("${it.name}Compile", sourceSets.test.output)
62+
dependencies.add("${it.name}Implementation", sourceSets.test.output)
6363
}
6464
}
6565

@@ -79,29 +79,29 @@ dependencies {
7979
implementation project(':grpc-spring-boot-starter')
8080
implementation project(':grpc-client-spring-boot-starter')
8181

82-
testCompile 'org.springframework.boot:spring-boot-starter-aop'
83-
testCompile 'org.springframework.boot:spring-boot-starter-test'
84-
testCompile 'com.github.stefanbirkner:system-rules:1.18.0'
85-
testCompile('org.springframework.cloud:spring-cloud-starter-consul-discovery')
86-
testCompile 'org.awaitility:awaitility:4.0.3'
87-
testCompile "org.springframework.cloud:spring-cloud-config-server"
88-
testCompile "org.springframework.cloud:spring-cloud-config-client"
89-
testCompile "org.springframework.cloud:spring-cloud-starter-bootstrap"
82+
testImplementation 'org.springframework.boot:spring-boot-starter-aop'
83+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
84+
testImplementation 'com.github.stefanbirkner:system-rules:1.18.0'
85+
testImplementation('org.springframework.cloud:spring-cloud-starter-consul-discovery')
86+
testImplementation 'org.awaitility:awaitility:4.0.3'
87+
testImplementation "org.springframework.cloud:spring-cloud-config-server"
88+
testImplementation "org.springframework.cloud:spring-cloud-config-client"
89+
testImplementation "org.springframework.cloud:spring-cloud-starter-bootstrap"
9090

91-
testCompile "com.playtika.testcontainers:embedded-keycloak:2.2.2"
92-
testCompile "com.playtika.testcontainers:embedded-consul:2.2.2"
91+
testImplementation "com.playtika.testcontainers:embedded-keycloak:2.2.2"
92+
testImplementation "com.playtika.testcontainers:embedded-consul:2.2.2"
9393

9494
testImplementation 'org.hamcrest:hamcrest:2.2'
9595
testImplementation 'org.mockito:mockito-core:2.23.0'
9696

9797

98-
pureNettyTestCompile "io.grpc:grpc-netty"
98+
pureNettyTestImplementation "io.grpc:grpc-netty"
9999

100100

101-
bothPureAndShadedNettyTestCompile "io.grpc:grpc-netty"
101+
bothPureAndShadedNettyTestImplementation "io.grpc:grpc-netty"
102102

103-
kafkaStreamTestCompile "com.playtika.testcontainers:embedded-kafka:2.2.2"
104-
kafkaStreamTestCompile "org.springframework.cloud:spring-cloud-starter-stream-kafka"
103+
kafkaStreamTestImplementation "com.playtika.testcontainers:embedded-kafka:2.2.2"
104+
kafkaStreamTestImplementation "org.springframework.cloud:spring-cloud-starter-stream-kafka"
105105

106106

107107
}

grpc-spring-boot-starter-gradle-plugin/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pluginBundle {
5555
tags = ['grpc', 'protobuf', 'spring-boot', 'grpc-spring-boot-starter']
5656
}
5757
dependencies {
58-
runtime "com.google.protobuf:protobuf-gradle-plugin:0.9.1"
58+
runtimeOnly "com.google.protobuf:protobuf-gradle-plugin:0.9.1"
5959
}
6060

6161

grpc-spring-boot-starter/build.gradle

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ buildscript {
1111
}
1212
}
1313
plugins {
14+
id 'java-library'
1415
id "de.undercouch.download" version "4.1.1"
1516
id "com.github.sherter.google-java-format" version "0.9"
1617
id "io.github.lognet.grpc-spring-boot"
@@ -19,7 +20,7 @@ plugins {
1920
grpcSpringBoot {
2021
grpcSpringBootStarterVersion.set((String)null)
2122
}
22-
apply plugin: 'java'
23+
2324
apply plugin: 'org.springframework.boot'
2425
apply plugin: 'io.spring.dependency-management'
2526
apply plugin: 'maven-publish'
@@ -28,7 +29,7 @@ apply plugin: "de.marcphilipp.nexus-publish"
2829
apply plugin: 'io.franzbecker.gradle-lombok'
2930

3031
configurations{
31-
testCompile {
32+
testImplementation {
3233
exclude group: 'io.netty', module: 'netty-tcnative-boringssl-static'
3334
exclude group: 'io.grpc', module: 'grpc-netty-shaded'
3435
}
@@ -83,7 +84,7 @@ task delombok(type: io.franzbecker.gradle.lombok.task.DelombokTask) {
8384
}
8485

8586
googleJavaFormat {
86-
toolVersion = '1.9'
87+
toolVersion = '1.15.0'
8788
source = delombokOutputDir
8889
include '**/*.java'
8990
}
@@ -129,11 +130,12 @@ nexusPublishing {
129130
}
130131

131132
}
133+
configurations.testImplementation.setCanBeResolved(true)
134+
132135
task testDependencyFatJar(type: org.springframework.boot.gradle.tasks.bundling.BootJar) {
133136
dependsOn testClasses,classes
134-
135137
mainClass = 'org.lognet.grpc.demo.DemoApp'
136-
setClasspath(configurations.testCompile)
138+
setClasspath(configurations.testImplementation)
137139
doFirst {
138140
classpath sourceSets.getByName("test").java.outputDir
139141
classpath sourceSets.getByName("main").output
@@ -268,10 +270,10 @@ signing {
268270

269271
dependencies {
270272
compileOnly "io.grpc:grpc-netty:${grpcVersion}"
271-
compile "io.grpc:grpc-netty-shaded:${grpcVersion}"
272-
compile "io.grpc:grpc-services:${grpcVersion}"
273-
compile "org.springframework.boot:spring-boot-starter"
274-
compile 'io.netty:netty-tcnative-boringssl-static:2.0.47.Final'
273+
api "io.grpc:grpc-netty-shaded:${grpcVersion}"
274+
api "io.grpc:grpc-services:${grpcVersion}"
275+
api "org.springframework.boot:spring-boot-starter"
276+
api 'io.netty:netty-tcnative-boringssl-static:2.0.47.Final'
275277

276278
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
277279

@@ -283,8 +285,8 @@ dependencies {
283285
compileOnly 'org.springframework.cloud:spring-cloud-starter-consul-discovery'
284286

285287

286-
testCompile "io.grpc:grpc-netty"
287-
testCompile 'org.springframework.boot:spring-boot-starter-test'
288+
testImplementation "io.grpc:grpc-netty"
289+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
288290

289291
}
290292

0 commit comments

Comments
 (0)