Skip to content

Commit

Permalink
Update Soy dependency to the latest version. (#500)
Browse files Browse the repository at this point in the history
Updates Soy dependency to the latest version which supports proto imports and updates sample Soy template to use the new syntax.
  • Loading branch information
Jesse-Good authored Aug 26, 2020
1 parent 62746bd commit c5a2d60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions closure/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion closure/templates/test/greeter_proto.soy
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit c5a2d60

Please sign in to comment.