Skip to content

Commit e13221b

Browse files
committed
Apply japicmp plugin explicitly when needed
1 parent 3b29f74 commit e13221b

File tree

11 files changed

+17
-23
lines changed

11 files changed

+17
-23
lines changed

auth/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins {
22
id "maven-publish"
3+
4+
id "me.champeau.gradle.japicmp"
35
}
46

57
description = "gRPC: Auth"

build.gradle

+3-23
Original file line numberDiff line numberDiff line change
@@ -413,30 +413,10 @@ subprojects {
413413
}
414414
maxHeapSize = '1500m'
415415
}
416-
}
417416

418-
// Run with: ./gradlew japicmp --continue
419-
def baselineGrpcVersion = '1.6.1'
420-
def publicApiSubprojects = [
421-
// TODO: uncomment after grpc-alts, grpc-bom artifact is published.
422-
// ':grpc-alts',
423-
//':grpc-api',
424-
':grpc-auth',
425-
//':grpc-bom',
426-
':grpc-context',
427-
':grpc-core',
428-
':grpc-grpclb',
429-
':grpc-netty',
430-
':grpc-okhttp',
431-
':grpc-protobuf',
432-
':grpc-protobuf-lite',
433-
':grpc-stub',
434-
':grpc-testing',
435-
]
436-
437-
publicApiSubprojects.each { name ->
438-
project(":$name") {
439-
apply plugin: 'me.champeau.gradle.japicmp'
417+
// Run with: ./gradlew japicmp --continue
418+
plugins.withId("me.champeau.gradle.japicmp") {
419+
def baselineGrpcVersion = '1.6.1'
440420

441421
// Get the baseline version's jar for this subproject
442422
File baselineArtifact = null

context/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id "maven-publish"
33

4+
id "me.champeau.gradle.japicmp"
45
id "me.champeau.gradle.jmh"
56
}
67

core/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id "maven-publish"
33

4+
id "me.champeau.gradle.japicmp"
45
id "me.champeau.gradle.jmh"
56
}
67

grpclb/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id "maven-publish"
33

44
id "com.google.protobuf"
5+
id "me.champeau.gradle.japicmp"
56
}
67

78
description = "gRPC: GRPCLB LoadBalancer plugin"

netty/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id "maven-publish"
33

4+
id "me.champeau.gradle.japicmp"
45
id "me.champeau.gradle.jmh"
56
}
67

okhttp/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins {
22
id "maven-publish"
3+
4+
id "me.champeau.gradle.japicmp"
35
}
46

57
description = "gRPC: OkHttp"

protobuf-lite/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id "maven-publish"
33

44
id "com.google.protobuf"
5+
id "me.champeau.gradle.japicmp"
56
}
67

78
description = 'gRPC: Protobuf Lite'

protobuf/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id "maven-publish"
33

44
id "com.google.protobuf"
5+
id "me.champeau.gradle.japicmp"
56
}
67

78
description = 'gRPC: Protobuf'

stub/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins {
22
id "maven-publish"
3+
4+
id "me.champeau.gradle.japicmp"
35
}
46

57
description = "gRPC: Stub"

testing/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins {
22
id "maven-publish"
3+
4+
id "me.champeau.gradle.japicmp"
35
}
46

57
description = "gRPC: Testing"

0 commit comments

Comments
 (0)