Skip to content

Commit

Permalink
Register annotation for reflection. Fixes #70
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed May 20, 2020
1 parent 2d96a01 commit 4545507
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
21 changes: 17 additions & 4 deletions examples/hello-world-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,24 @@ repositories {

ext {
micronautVersion = "2.0.0.M3"
micronautGrpcVersion = "2.0.0.M3"
}

configurations {
all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
String group = details.requested.group
if(group == 'io.micronaut.grpc') {
details.useVersion(micronautGrpcVersion)
}
}
}
}

dependencies {
annotationProcessor(enforcedPlatform("io.micronaut:micronaut-bom:$micronautVersion"))
testAnnotationProcessor(enforcedPlatform("io.micronaut:micronaut-bom:$micronautVersion"))
implementation(enforcedPlatform("io.micronaut:micronaut-bom:$micronautVersion"))
annotationProcessor(platform("io.micronaut:micronaut-bom:$micronautVersion"))
testAnnotationProcessor(platform("io.micronaut:micronaut-bom:$micronautVersion"))
implementation(platform("io.micronaut:micronaut-bom:$micronautVersion"))

annotationProcessor("io.micronaut:micronaut-inject-java")
annotationProcessor("io.micronaut:micronaut-validation")
Expand All @@ -35,7 +47,8 @@ dependencies {
implementation "io.micronaut:micronaut-inject"
implementation "io.micronaut:micronaut-validation"
implementation "io.micronaut:micronaut-runtime"
implementation "io.micronaut.grpc:micronaut-grpc-runtime:2.0.0.M2"

implementation "io.micronaut.grpc:micronaut-grpc-runtime"

implementation "io.micronaut:micronaut-discovery-client"
runtimeOnly "ch.qos.logback:logback-classic:1.2.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ {
"name" : "io.micronaut.grpc.annotation.GrpcChannel",
"allDeclaredConstructors" : true
} ]

0 comments on commit 4545507

Please sign in to comment.