Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
upgrade to appengine-java-sdk-1.9.38 (#17)
Browse files Browse the repository at this point in the history
* Get a working 'bazel run test:test-war'.  Use workspace_name where needed to fix deploy template.

* address comments of: #16

* fix deploy template to also use workspace_name

* upgrade to version appengine-java-sdk-1.9.38; reduce jars target to just the lib directory as obsolete jars were being pulled in.

* factor out version number
  • Loading branch information
pmbethe09 authored and damienmg committed Jun 7, 2016
1 parent 8f35721 commit 5d9fc36
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions appengine/appengine.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -234,34 +234,38 @@ def java_war(name, data=[], data_path=None, **kwargs):
data=data,
data_path=data_path)

APPENGINE_VERSION = "1.9.38"

APPENGINE_DIR = "appengine-java-sdk-" + APPENGINE_VERSION

APPENGINE_BUILD_FILE = """
# BUILD file to use the Java AppEngine SDK with a remote repository.
java_import(
name = "jars",
jars = glob(["**/*.jar"]),
jars = glob(["%s/lib/**/*.jar"]),
visibility = ["//visibility:public"],
)
java_import(
name = "api",
jars = ["appengine-java-sdk-1.9.34/lib/impl/appengine-api.jar"],
jars = ["%s/lib/impl/appengine-api.jar"],
visibility = ["//visibility:public"],
neverlink = 1,
)
filegroup(
name = "sdk",
srcs = glob(["appengine-java-sdk-1.9.34/**"]),
srcs = glob(["%s/**"]),
visibility = ["//visibility:public"],
path = "appengine-java-sdk-1.9.34",
path = "%s",
)
"""
""" % (APPENGINE_DIR, APPENGINE_DIR, APPENGINE_DIR, APPENGINE_DIR)

def appengine_repositories():
native.new_http_archive(
name = "com_google_appengine_java",
url = "http://central.maven.org/maven2/com/google/appengine/appengine-java-sdk/1.9.34/appengine-java-sdk-1.9.34.zip",
sha256 = "34e828bf64b48c7dc212b6cb82d67c32d42b75c988d793b97bae5fda849ce486",
url = "http://central.maven.org/maven2/com/google/appengine/appengine-java-sdk/%s/%s.zip" % (APPENGINE_VERSION, APPENGINE_DIR),
sha256 = "189ec08943f6d09e4a30c6f86382a9d15b61226f042ee4b7c066b2466fd980c4",
build_file_content = APPENGINE_BUILD_FILE,
)

Expand Down

0 comments on commit 5d9fc36

Please sign in to comment.