@@ -18,7 +18,7 @@ plugins {
18
18
19
19
}
20
20
grpcSpringBoot {
21
- grpcSpringBootStarterVersion. set((String )null )
21
+ grpcSpringBootStarterVersion. set((String ) null )
22
22
}
23
23
24
24
apply plugin : ' org.springframework.boot'
@@ -28,7 +28,7 @@ apply plugin: 'signing'
28
28
apply plugin : " de.marcphilipp.nexus-publish"
29
29
apply plugin : ' io.franzbecker.gradle-lombok'
30
30
31
- configurations {
31
+ configurations {
32
32
testImplementation {
33
33
exclude group : ' io.netty' , module : ' netty-tcnative-boringssl-static'
34
34
exclude group : ' io.grpc' , module : ' grpc-netty-shaded'
@@ -73,7 +73,7 @@ def delombokOutputDir = file("$buildDir/delombok")
73
73
task delombok (type : io.franzbecker.gradle.lombok.task.DelombokTask ) {
74
74
outputs. dir(delombokOutputDir)
75
75
for (srcDir in project. sourceSets. main. java. srcDirs) {
76
- if (srcDir. exists()) {
76
+ if (srcDir. exists()) {
77
77
inputs. dir(srcDir)
78
78
args(srcDir, " -d" , delombokOutputDir)
79
79
}
@@ -132,8 +132,8 @@ configurations.testImplementation.setCanBeResolved(true)
132
132
133
133
task testDependencyFatJar (type : org.springframework.boot.gradle.tasks.bundling.BootJar ) {
134
134
targetJavaVersion = JavaVersion . VERSION_17
135
- dependsOn testClasses,classes
136
- mainClass = ' org.lognet.grpc.demo.DemoApp'
135
+ dependsOn testClasses, classes
136
+ mainClass = ' org.lognet.grpc.demo.DemoApp'
137
137
setClasspath(configurations. testImplementation)
138
138
doFirst {
139
139
classpath sourceSets. getByName(" test" ). java. classesDirectory
@@ -191,9 +191,9 @@ jar {
191
191
.findAll { it. pattern. contains(" org/lognet/springboot/grpc" ) }
192
192
193
193
def finalJson = new groovy.json.JsonBuilder ()
194
- finalJson{
195
- resources{
196
- includes (filtered)
194
+ finalJson {
195
+ resources {
196
+ includes(filtered)
197
197
}
198
198
}
199
199
finalJson. writeTo(w)
@@ -206,7 +206,6 @@ jar {
206
206
}
207
207
208
208
209
-
210
209
bootJar {
211
210
enabled = false
212
211
archiveClassifier. convention(' boot' )
@@ -258,12 +257,7 @@ publishing {
258
257
259
258
260
259
signing {
261
- setRequired {
262
- // signing is required if this is a release version and the artifacts are to be published
263
- ! version. toString(). endsWith(' -SNAPSHOT' ) && tasks. withType(PublishToMavenRepository ). find {
264
- gradle. taskGraph. hasTask it
265
- }
266
- }
260
+ required = { ! version. toString(). endsWith(' -SNAPSHOT' ) && gradle. taskGraph. hasTask(" publishToSonatype" ) }
267
261
sign publishing. publications
268
262
}
269
263
0 commit comments