Skip to content

Commit

Permalink
Update for latest bazel and gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
snape committed Dec 24, 2023
1 parent d53715c commit 3f8c386
Show file tree
Hide file tree
Showing 12 changed files with 85 additions and 48 deletions.
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
latest
30 changes: 30 additions & 0 deletions .bazelversion.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.bazelversion
RVO2 Library Java

SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Please send all bug reports to <geom@cs.unc.edu>.

The authors may be contacted via:

Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha
Dept. of Computer Science
201 S. Columbia St.
Frederick P. Brooks, Jr. Computer Science Bldg.
Chapel Hill, N.C. 27599-3175
United States of America

<https://gamma.cs.unc.edu/RVO2/>
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

.bazelignore text whitespace-4
.bazelrc text whitespace-4
.bazelversion text whitespace-4
.dockerignore text whitespace-2
.editorconfig text whitespace-2
.gitattributes text export-ignore whitespace-2
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
/var/lib/pacman/sync/*
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: bazel test --enable_bzlmod=0 --flaky_test_attempts=3 ...
shell: bash
Expand All @@ -75,7 +75,7 @@ jobs:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup
run: |
rm -f \
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
DEBIAN_FRONTEND: noninteractive
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: bazel test --enable_bzlmod=0 --flaky_test_attempts=3 ...
shell: bash
Expand All @@ -166,7 +166,7 @@ jobs:
/var/lib/pacman/sync/*
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: bazel test --enable_bzlmod=1 --flaky_test_attempts=3 ...
shell: bash
Expand All @@ -176,7 +176,7 @@ jobs:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup
run: |
rm -f \
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
DEBIAN_FRONTEND: noninteractive
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: bazel test --enable_bzlmod=1 --flaky_test_attempts=3 ...
shell: bash
Expand All @@ -263,7 +263,7 @@ jobs:
openjdk11
shell: sh
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: |
mkdir _build
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
/var/lib/pacman/sync/*
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: |
mkdir _build
Expand Down Expand Up @@ -342,7 +342,7 @@ jobs:
rm -rf /var/cache/yum
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: |
mkdir _build
Expand All @@ -366,7 +366,7 @@ jobs:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup
run: |
rm -f \
Expand Down Expand Up @@ -435,7 +435,7 @@ jobs:
rm -rf /var/cache/yum
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: |
mkdir _build
Expand Down Expand Up @@ -488,7 +488,7 @@ jobs:
DEBIAN_FRONTEND: noninteractive
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: build test package
run: |
mkdir _build
Expand All @@ -512,7 +512,7 @@ jobs:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: microsoft
Expand Down Expand Up @@ -554,7 +554,7 @@ jobs:
openjdk11
shell: sh
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: cache
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -586,7 +586,7 @@ jobs:
/var/lib/pacman/sync/*
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: cache
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -618,7 +618,7 @@ jobs:
rm -rf /var/cache/yum
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: cache
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -650,7 +650,7 @@ jobs:
rm -rf /var/cache/yum
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: cache
uses: actions/cache@v3
with:
Expand All @@ -668,7 +668,7 @@ jobs:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup
run: |
rm -f \
Expand Down Expand Up @@ -732,7 +732,7 @@ jobs:
DEBIAN_FRONTEND: noninteractive
shell: bash
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: cache
uses: actions/cache@v3
with:
Expand All @@ -750,7 +750,7 @@ jobs:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: microsoft
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: initialize codeql
uses: github/codeql-action/init@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ module(
version = "2.0.0",
)

bazel_dep(name = "rules_java", version = "6.1.0")
bazel_dep(name = "rules_jvm_external", version = "5.2")
bazel_dep(name = "rules_java", version = "7.3.1")
bazel_dep(name = "rules_jvm_external", version = "5.3")

maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
Expand All @@ -52,6 +52,6 @@ use_repo(maven, "maven")
non_module_deps = use_extension("//:extensions.bzl", "non_module_deps")
use_repo(non_module_deps, "google_bazel_common")

bazel_dep(name = "rules_license", version = "0.0.4")
bazel_dep(name = "rules_license", version = "0.0.7")

bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True)
22 changes: 11 additions & 11 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_java",
sha256 = "78e3c24f05cffed529bfcafd1f7a8d1a7b97b4a411f25d8d3b4d47d9bb980394",
urls = ["https://github.com/bazelbuild/rules_java/releases/download/6.1.0/rules_java-6.1.0.tar.gz"],
sha256 = "4018e97c93f97680f1650ffd2a7530245b864ac543fd24fae8c02ba447cb2864",
urls = ["https://github.com/bazelbuild/rules_java/releases/download/7.3.1/rules_java-7.3.1.tar.gz"],
)

load(
Expand All @@ -56,9 +56,9 @@ rules_java_toolchains()

http_archive(
name = "rules_jvm_external",
sha256 = "f86fd42a809e1871ca0aabe89db0d440451219c3ce46c58da240c7dcdc00125f",
strip_prefix = "rules_jvm_external-5.2",
urls = ["https://github.com/bazelbuild/rules_jvm_external/releases/download/5.2/rules_jvm_external-5.2.tar.gz"],
sha256 = "d31e369b854322ca5098ea12c69d7175ded971435e55c18dd9dd5f29cc5249ac",
strip_prefix = "rules_jvm_external-5.3",
urls = ["https://github.com/bazelbuild/rules_jvm_external/releases/download/5.3/rules_jvm_external-5.3.tar.gz"],
)

load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
Expand All @@ -83,9 +83,9 @@ pinned_maven_install()

http_archive(
name = "google_bazel_common",
sha256 = "17ea98149586dff60aa741c67fbd9a010fbb1507df90e741c50403bf5228bea3",
strip_prefix = "bazel-common-a9e1d8efd54cbf27249695b23775b75ca65bb59d",
urls = ["https://github.com/google/bazel-common/archive/a9e1d8efd54cbf27249695b23775b75ca65bb59d.tar.gz"],
sha256 = "de1441c02b35f5768b872d15d7e5813c4826b66630703e253fc95da39988a6d8",
strip_prefix = "bazel-common-d4ada735afa0ab044957cfa21849be577756a6cd",
urls = ["https://github.com/google/bazel-common/archive/d4ada735afa0ab044957cfa21849be577756a6cd.tar.gz"],
)

load("@google_bazel_common//:workspace_defs.bzl", "google_common_workspace_rules")
Expand All @@ -94,10 +94,10 @@ google_common_workspace_rules()

http_archive(
name = "rules_license",
sha256 = "6157e1e68378532d0241ecd15d3c45f6e5cfd98fc10846045509fb2a7cc9e381",
sha256 = "4531deccb913639c30e5c7512a054d5d875698daeb75d8cf90f284375fe7c360",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
"https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
"https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
],
)

Expand Down
6 changes: 3 additions & 3 deletions extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def _non_module_deps_implementation(ctx):
http_archive(
name = "google_bazel_common",
sha256 = "17ea98149586dff60aa741c67fbd9a010fbb1507df90e741c50403bf5228bea3",
strip_prefix = "bazel-common-a9e1d8efd54cbf27249695b23775b75ca65bb59d",
urls = ["https://github.com/google/bazel-common/archive/a9e1d8efd54cbf27249695b23775b75ca65bb59d.tar.gz"],
sha256 = "de1441c02b35f5768b872d15d7e5813c4826b66630703e253fc95da39988a6d8",
strip_prefix = "bazel-common-d4ada735afa0ab044957cfa21849be577756a6cd",
urls = ["https://github.com/google/bazel-common/archive/d4ada735afa0ab044957cfa21849be577756a6cd.tar.gz"],
)

non_module_deps = module_extension(
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
22 changes: 13 additions & 9 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down Expand Up @@ -131,26 +132,29 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi

# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -199,11 +203,11 @@ fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
Expand Down
Empty file modified maven_install.json
100755 → 100644
Empty file.

0 comments on commit 3f8c386

Please sign in to comment.