Skip to content

Commit

Permalink
use protobuf-java from grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Jan 9, 2025
1 parent f33ad94 commit 598b216
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ managed-handlebars = "4.3.1"
managed-jstachio = "1.3.6"
managed-jte = "3.1.15"
managed-rocker = "1.4.0"
managed-soy = "2024-12-13"
managed-soy = "2023-09-13"
org-json = "20240303"
managed-thymeleaf = "3.1.3.RELEASE"
managed-velocity = "2.4.1"
Expand All @@ -26,9 +26,10 @@ kotlin = "1.9.25"
kotlinx-coroutines = "1.9.0"
sonatype-scan = "3.0.0"
micronaut-logging = "1.5.1"

micronaut-grpc = "4.8.0"
[libraries]
# Core
micronaut-grpc = { module = "io.micronaut.grpc:micronaut-grpc-bom", version.ref = "micronaut-grpc" }
micronaut-core = { module = 'io.micronaut:micronaut-core-bom', version.ref = 'micronaut' }
micronaut-sql = { module = "io.micronaut.sql:micronaut-sql-bom", version.ref = "micronaut-sql" }
micronaut-logging = { module = "io.micronaut.logging:micronaut-logging-bom", version.ref = "micronaut-logging" }
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ micronautBuild {
importMicronautCatalog()
importMicronautCatalog("micronaut-data")
importMicronautCatalog("micronaut-sql")
importMicronautCatalog("micronaut-grpc")
importMicronautCatalog("micronaut-security")
importMicronautCatalog("micronaut-serde")
importMicronautCatalog("micronaut-validation")
Expand Down
5 changes: 3 additions & 2 deletions views-soy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ dependencies {
api(libs.managed.soy) {
exclude(group = "org.json", module = "json")
}
implementation(mnGrpc.protobuf.java) // apply com.google.protobuf:protobuf-java directly because the version brought transitively contains a vulnerable version.
implementation(libs.org.json)

compileOnly(mn.micronaut.management)
compileOnly(mnValidation.micronaut.validation)
compileOnly(mn.micronaut.http)
Expand All @@ -25,4 +25,5 @@ dependencies {
testImplementation(mn.micronaut.management)
testImplementation(mnValidation.micronaut.validation)
testImplementation(mn.snakeyaml)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public String getTemplateName() {
public Map<String, SoyValueProvider> getParamsAsMap() {
return null;
}

});
renderer.setData(context);
if (injectNonce) {
Expand Down

0 comments on commit 598b216

Please sign in to comment.