Skip to content

Commit

Permalink
Merge pull request #148 from dsyer/grpc
Browse files Browse the repository at this point in the history
Add support for grpc-netty
  • Loading branch information
dnestoro authored Jan 3, 2023
2 parents c102e6c + 48e2685 commit 41adcc9
Show file tree
Hide file tree
Showing 17 changed files with 1,699 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metadata/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
"directory": "org.apache.tomcat.embed/tomcat-embed-core",
"module": "org.apache.tomcat.embed:tomcat-embed-core"
},
{
"directory": "io.grpc/grpc-netty",
"module": "io.grpc:grpc-netty"
},
{
"directory": "io.netty/netty-common",
"module": "io.netty:netty-common"
Expand Down
3 changes: 3 additions & 0 deletions metadata/io.grpc/grpc-netty/1.51.0/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"reflect-config.json"
]
22 changes: 22 additions & 0 deletions metadata/io.grpc/grpc-netty/1.51.0/reflect-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"condition": {
"typeReachable": "io.grpc.netty.NettyServer"
},
"name": "io.netty.buffer.AbstractByteBufAllocator",
"allDeclaredMethods": true
},
{
"condition": {
"typeReachable": "io.grpc.netty.NettyChannelBuilder"
},
"name": "io.netty.channel.socket.nio.NioSocketChannel",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
}

]
11 changes: 11 additions & 0 deletions metadata/io.grpc/grpc-netty/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"latest": true,
"override": true,
"metadata-version": "1.51.0",
"module": "io.grpc:grpc-netty",
"tested-versions": [
"1.51.0"
]
}
]
11 changes: 11 additions & 0 deletions tests/src/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@
}
]
},
{
"test-project-path": "io.grpc/grpc-netty/1.51.0",
"libraries": [
{
"name": "io.grpc:grpc-netty",
"versions": [
"1.51.0"
]
}
]
},
{
"test-project-path": "io.netty/netty-common/4.1.80.Final",
"libraries": [
Expand Down
4 changes: 4 additions & 0 deletions tests/src/io.grpc/grpc-netty/1.51.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
gradlew.bat
gradlew
gradle/
build/
49 changes: 49 additions & 0 deletions tests/src/io.grpc/grpc-netty/1.51.0/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright and related rights waived via CC0
*
* You should have received a copy of the CC0 legalcode along with this
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
*/

plugins {
id "org.graalvm.internal.tck"
id 'com.google.protobuf' version '0.9.1'
}

String libraryVersion = tck.testedLibraryVersion.get()

dependencies {
testImplementation "io.grpc:grpc-netty:$libraryVersion"
testImplementation "io.grpc:grpc-services:$libraryVersion"
testImplementation "io.grpc:grpc-testing:$libraryVersion"
implementation "io.grpc:grpc-protobuf:$libraryVersion"
implementation "io.grpc:grpc-stub:$libraryVersion"
implementation 'jakarta.annotation:jakarta.annotation-api:1.3.5'
testImplementation 'org.assertj:assertj-core:3.22.0'
}

protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.21.11"
}
generatedFilesBaseDir = "$projectDir/src/generated"
clean {
delete generatedFilesBaseDir
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:$libraryVersion"
}
}
generateProtoTasks {
ofSourceSet('main').configureEach {
plugins {
grpc {}
}
}
}
}

checkstyle {
sourceSets = []
}
2 changes: 2 additions & 0 deletions tests/src/io.grpc/grpc-netty/1.51.0/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
library.version = 1.51.0
metadata.dir = io.grpc/grpc-netty/1.51.0/
13 changes: 13 additions & 0 deletions tests/src/io.grpc/grpc-netty/1.51.0/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pluginManagement {
def tckPath = Objects.requireNonNullElse(
System.getenv("GVM_TCK_TCKDIR"),
"../../../../tck-build-logic"
)
includeBuild(tckPath)
}

plugins {
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT"
}

rootProject.name = 'io.grpc.grpc-netty_tests'
Loading

0 comments on commit 41adcc9

Please sign in to comment.