From c5a2d603d1b020c6fd3d7463e8e443c896d79f45 Mon Sep 17 00:00:00 2001 From: Jesse-Good <51425064+Jesse-Good@users.noreply.github.com> Date: Wed, 26 Aug 2020 16:55:11 -0700 Subject: [PATCH] Update Soy dependency to the latest version. (#500) Updates Soy dependency to the latest version which supports proto imports and updates sample Soy template to use the new syntax. --- closure/repositories.bzl | 6 +++--- closure/templates/test/greeter_proto.soy | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/closure/repositories.bzl b/closure/repositories.bzl index 26adbd52fd..d3c37dedfe 100644 --- a/closure/repositories.bzl +++ b/closure/repositories.bzl @@ -745,10 +745,10 @@ def com_google_template_soy(): name = "com_google_template_soy", licenses = ["notice"], # Apache 2.0 jar_urls = [ - "https://mirror.bazel.build/repo1.maven.org/maven2/com/google/template/soy/2019-07-14/soy-2019-07-14.jar", - "https://repo1.maven.org/maven2/com/google/template/soy/2019-07-14/soy-2019-07-14.jar", + "https://mirror.bazel.build/repo1.maven.org/maven2/com/google/template/soy/2020-08-24/soy-2020-08-24.jar", + "https://repo1.maven.org/maven2/com/google/template/soy/2020-08-24/soy-2020-08-24.jar", ], - jar_sha256 = "981d9f6180b40eb340f53d20aa1af630139ea079f95a3441265e87d8c850a527", + jar_sha256 = "60c59b9f5d3074b5b72b18f00efd4c96d10deb0693a16f40ce538657c51f63a4", deps = [ "@args4j", "@com_google_code_findbugs_jsr305", diff --git a/closure/templates/test/greeter_proto.soy b/closure/templates/test/greeter_proto.soy index 81ddca482c..1e11d7603c 100644 --- a/closure/templates/test/greeter_proto.soy +++ b/closure/templates/test/greeter_proto.soy @@ -14,12 +14,13 @@ {namespace io.bazel.rules.closure.soy.protoGreeter} +import {Person} from 'closure/templates/test/person.proto'; /** * Greets a person. */ {template .greet} - {@param person: io.bazel.rules.closure.soy.Person} + {@param person: Person} {call io.bazel.rules.closure.soy.greeter.greet} {param name kind="text"}