Skip to content

Commit b51038d

Browse files
authored
Add metadata for grpc-core (#593)
* Add metadata for grpc-core * Add tests for grpc-core
1 parent d6b2978 commit b51038d

File tree

17 files changed

+1700
-0
lines changed

17 files changed

+1700
-0
lines changed

metadata/index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@
8787
"allowed-packages" : [ "org.apache.commons.logging" ],
8888
"directory" : "commons-logging/commons-logging",
8989
"module" : "commons-logging:commons-logging"
90+
}, {
91+
"allowed-packages" : [ "io.grpc" ],
92+
"directory" : "io.grpc/grpc-core",
93+
"module" : "io.grpc:grpc-core"
9094
}, {
9195
"allowed-packages" : [ "io.grpc" ],
9296
"directory" : "io.grpc/grpc-netty",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
"reflect-config.json"
3+
]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"condition": {
4+
"typeReachable": "io.grpc.internal.InstantTimeProvider"
5+
},
6+
"name": "java.time.Instant",
7+
"allDeclaredMethods": true
8+
}
9+
]

metadata/io.grpc/grpc-core/index.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[
2+
{
3+
"latest": true,
4+
"override": true,
5+
"metadata-version": "1.69.0",
6+
"module": "io.grpc:grpc-core",
7+
"tested-versions": [
8+
"1.69.0"
9+
]
10+
}
11+
]

tests/src/index.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@
142142
"name" : "commons-logging:commons-logging",
143143
"versions" : [ "1.2" ]
144144
} ]
145+
}, {
146+
"test-project-path" : "io.grpc/grpc-core/1.69.0",
147+
"libraries" : [ {
148+
"name" : "io.grpc:grpc-core",
149+
"versions" : [ "1.69.0" ]
150+
} ]
145151
}, {
146152
"test-project-path" : "io.grpc/grpc-netty/1.51.0",
147153
"libraries" : [ {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gradlew.bat
2+
gradlew
3+
gradle/
4+
build/
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright and related rights waived via CC0
3+
*
4+
* You should have received a copy of the CC0 legalcode along with this
5+
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
6+
*/
7+
8+
plugins {
9+
id "org.graalvm.internal.tck"
10+
id 'com.google.protobuf' version '0.9.4'
11+
}
12+
13+
String libraryVersion = tck.testedLibraryVersion.get()
14+
15+
dependencies {
16+
testImplementation "io.grpc:grpc-netty:$libraryVersion"
17+
testImplementation "io.grpc:grpc-services:$libraryVersion"
18+
testImplementation "io.grpc:grpc-testing:$libraryVersion"
19+
implementation "io.grpc:grpc-protobuf:$libraryVersion"
20+
implementation "io.grpc:grpc-stub:$libraryVersion"
21+
implementation 'jakarta.annotation:jakarta.annotation-api:1.3.5'
22+
testImplementation 'org.assertj:assertj-core:3.22.0'
23+
}
24+
25+
protobuf {
26+
protoc {
27+
artifact = "com.google.protobuf:protoc:3.25.5"
28+
}
29+
generatedFilesBaseDir = "$projectDir/src/generated"
30+
clean {
31+
delete generatedFilesBaseDir
32+
}
33+
plugins {
34+
grpc {
35+
artifact = "io.grpc:protoc-gen-grpc-java:$libraryVersion"
36+
}
37+
}
38+
generateProtoTasks {
39+
ofSourceSet('main').configureEach {
40+
plugins {
41+
grpc {}
42+
}
43+
}
44+
}
45+
}
46+
47+
checkstyle {
48+
sourceSets = []
49+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
library.version = 1.69.0
2+
metadata.dir = io.grpc/grpc-core/1.69.0/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pluginManagement {
2+
def tckPath = Objects.requireNonNullElse(
3+
System.getenv("GVM_TCK_TCKDIR"),
4+
"../../../../tck-build-logic"
5+
)
6+
includeBuild(tckPath)
7+
}
8+
9+
plugins {
10+
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT"
11+
}
12+
13+
rootProject.name = 'io.grpc.grpc-netty_tests'

0 commit comments

Comments
 (0)