Skip to content

Commit 41adcc9

Browse files
authored
Merge pull request #148 from dsyer/grpc
Add support for grpc-netty
2 parents c102e6c + 48e2685 commit 41adcc9

File tree

17 files changed

+1699
-0
lines changed

17 files changed

+1699
-0
lines changed

metadata/index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
"directory": "org.apache.tomcat.embed/tomcat-embed-core",
4747
"module": "org.apache.tomcat.embed:tomcat-embed-core"
4848
},
49+
{
50+
"directory": "io.grpc/grpc-netty",
51+
"module": "io.grpc:grpc-netty"
52+
},
4953
{
5054
"directory": "io.netty/netty-common",
5155
"module": "io.netty:netty-common"
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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"condition": {
4+
"typeReachable": "io.grpc.netty.NettyServer"
5+
},
6+
"name": "io.netty.buffer.AbstractByteBufAllocator",
7+
"allDeclaredMethods": true
8+
},
9+
{
10+
"condition": {
11+
"typeReachable": "io.grpc.netty.NettyChannelBuilder"
12+
},
13+
"name": "io.netty.channel.socket.nio.NioSocketChannel",
14+
"methods": [
15+
{
16+
"name": "<init>",
17+
"parameterTypes": []
18+
}
19+
]
20+
}
21+
22+
]
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.51.0",
6+
"module": "io.grpc:grpc-netty",
7+
"tested-versions": [
8+
"1.51.0"
9+
]
10+
}
11+
]

tests/src/index.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@
8787
}
8888
]
8989
},
90+
{
91+
"test-project-path": "io.grpc/grpc-netty/1.51.0",
92+
"libraries": [
93+
{
94+
"name": "io.grpc:grpc-netty",
95+
"versions": [
96+
"1.51.0"
97+
]
98+
}
99+
]
100+
},
90101
{
91102
"test-project-path": "io.netty/netty-common/4.1.80.Final",
92103
"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.1'
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.21.11"
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.51.0
2+
metadata.dir = io.grpc/grpc-netty/1.51.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)