Skip to content

Commit 533dc8b

Browse files
committed
Update Ubuntu, CMake, and Gradle versions
1 parent c8bf33f commit 533dc8b

File tree

9 files changed

+101
-186
lines changed

9 files changed

+101
-186
lines changed

.github/workflows/ci.yml

Lines changed: 68 additions & 138 deletions
Large diffs are not rendered by default.

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ on: # yamllint disable-line rule:truthy
4747
jobs:
4848
analyze:
4949
name: analyze
50-
runs-on: ubuntu-22.04
50+
runs-on: ubuntu-latest
5151
steps:
5252
- name: checkout
5353
uses: actions/checkout@v4

CMakeLists.txt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@
3434
# <https://gamma.cs.unc.edu/RVO2/>
3535
#
3636

37-
cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
38-
39-
if(POLICY CMP0082)
40-
cmake_policy(SET CMP0082 NEW)
41-
endif()
37+
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
4238

4339
project(RVOJava
4440
VERSION 2.0.0
4541
DESCRIPTION "Optimal Reciprocal Collision Avoidance for Java"
42+
HOMEPAGE_URL https://gamma.cs.unc.edu/RVO2/
4643
LANGUAGES NONE)
4744

4845
list(INSERT CMAKE_MODULE_PATH 0 "${PROJECT_SOURCE_DIR}/cmake/modules")
@@ -165,17 +162,17 @@ set(CPACK_SOURCE_STRIP_FILES ON)
165162
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
166163
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE all)
167164
set(CPACK_DEBIAN_PACKAGE_DEPENDS)
168-
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE https://gamma.cs.unc.edu/RVO2/)
165+
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${PROJECT_HOMEPAGE_URL})
169166
set(CPACK_DEBIAN_PACKAGE_SECTION contrib/java)
170167

171168
set(CPACK_FREEBSD_PACKAGE_DEPS)
172169
set(CPACK_FREEBSD_PACKAGE_LICENSE APACHE20)
173-
set(CPACK_FREEBSD_PACKAGE_WWW ${CPACK_DEBIAN_PACKAGE_HOMEPAGE})
170+
set(CPACK_FREEBSD_PACKAGE_WWW ${PROJECT_HOMEPAGE_URL})
174171

175172
set(CPACK_RPM_FILE_NAME RPM-DEFAULT)
176173
set(CPACK_RPM_PACKAGE_ARCHITECTURE noarch)
177174
set(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0")
178175
set(CPACK_RPM_PACKAGE_REQUIRES "java-headless >= 1:1.8")
179-
set(CPACK_RPM_PACKAGE_URL ${CPACK_DEBIAN_PACKAGE_HOMEPAGE})
176+
set(CPACK_RPM_PACKAGE_URL ${PROJECT_HOMEPAGE_URL})
180177

181178
include(CPack)

Dockerfile

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker.io/docker/dockerfile:1
2+
13
#
24
# Dockerfile
35
# RVO2 Library Java
@@ -31,9 +33,9 @@
3133
# <https://gamma.cs.unc.edu/RVO2/>
3234
#
3335

34-
FROM ubuntu:22.04
36+
FROM ubuntu:latest
3537
LABEL org.opencontainers.image.authors="Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha"
36-
LABEL org.opencontainers.image.base.name="docker.io/library/ubuntu:22.04"
38+
LABEL org.opencontainers.image.base.name="docker.io/library/ubuntu:latest"
3739
LABEL org.opencontainers.image.description="Optimal Reciprocal Collision Avoidance for Java"
3840
LABEL org.opencontainers.image.licenses="Apache-2.0"
3941
LABEL org.opencontainers.image.source="https://github.com/snape/RVO2/"
@@ -48,39 +50,25 @@ RUN export DEBIAN_FRONTEND=noninteractive \
4850
&& apt-get update -qq \
4951
&& apt-get install --no-install-recommends -o Dpkg::Use-Pty=0 -qy \
5052
ca-certificates \
53+
cmake \
5154
cmake-format \
5255
dirmngr \
53-
dpkg \
5456
dpkg-dev \
5557
file \
5658
git \
57-
gnupg \
59+
jsonlint \
5860
make \
61+
markdownlint \
5962
nano \
6063
netbase \
6164
ninja-build \
6265
npm \
63-
openjdk-11-jdk-headless
66+
openjdk-21-jdk-headless \
6467
python3 \
6568
reuse \
66-
unzip \
6769
wget \
6870
yamllint \
69-
zlib1g-dev \
70-
&& wget -qO - https://bazel.build/bazel-release.pub.gpg | gpg --dearmor - \
71-
> /usr/share/keyrings/bazel-archive-keyring.gpg \
72-
&& echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
73-
> /etc/apt/sources.list.d/bazel.list \
74-
&& wget -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc \
75-
| gpg --dearmor - > /usr/share/keyrings/kitware-archive-keyring.gpg \
76-
&& echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu jammy main' \
77-
> /etc/apt/sources.list.d/kitware.list \
78-
&& apt-get update -qq \
79-
&& apt-get install --no-install-recommends -o Dpkg::Use-Pty=0 -qy \
80-
bazel \
81-
cmake \
8271
&& rm -rf /var/lib/apt/lists/* \
8372
&& npm install -g \
84-
@bazel/buildifier \
85-
jsonlint \
86-
markdownlint-cli
73+
@bazel/bazelisk \
74+
@bazel/buildifier

WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ pinned_maven_install()
8383

8484
http_archive(
8585
name = "google_bazel_common",
86-
sha256 = "de1441c02b35f5768b872d15d7e5813c4826b66630703e253fc95da39988a6d8",
87-
strip_prefix = "bazel-common-d4ada735afa0ab044957cfa21849be577756a6cd",
88-
urls = ["https://github.com/google/bazel-common/archive/d4ada735afa0ab044957cfa21849be577756a6cd.tar.gz"],
86+
sha256 = "fdcd5b4ed39efd8150ba584b56b08f9c03406183385121e8a11ddf8ae19f1db5",
87+
strip_prefix = "bazel-common-d59d067c04e973f3c4aa34f6628bed97d6664c3c",
88+
urls = ["https://github.com/google/bazel-common/archive/d59d067c04e973f3c4aa34f6628bed97d6664c3c.tar.gz"],
8989
)
9090

9191
load("@google_bazel_common//:workspace_defs.bzl", "google_common_workspace_rules")

extensions.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
3939
def _non_module_deps_implementation(ctx):
4040
http_archive(
4141
name = "google_bazel_common",
42-
sha256 = "de1441c02b35f5768b872d15d7e5813c4826b66630703e253fc95da39988a6d8",
43-
strip_prefix = "bazel-common-d4ada735afa0ab044957cfa21849be577756a6cd",
44-
urls = ["https://github.com/google/bazel-common/archive/d4ada735afa0ab044957cfa21849be577756a6cd.tar.gz"],
42+
sha256 = "fdcd5b4ed39efd8150ba584b56b08f9c03406183385121e8a11ddf8ae19f1db5",
43+
strip_prefix = "bazel-common-d59d067c04e973f3c4aa34f6628bed97d6664c3c",
44+
urls = ["https://github.com/google/bazel-common/archive/d59d067c04e973f3c4aa34f6628bed97d6664c3c.tar.gz"],
4545
)
4646

4747
non_module_deps = module_extension(

gradle/wrapper/gradle-wrapper.jar

-9 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
distributionBase=GRADLE_USER_HOME
55
distributionPath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
77
networkTimeout=10000
88
validateDistributionUrl=true
99
zipStoreBase=GRADLE_USER_HOME

gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ set JAVA_EXE=java.exe
4444
%JAVA_EXE% -version >NUL 2>&1
4545
if %ERRORLEVEL% equ 0 goto execute
4646

47-
echo.
48-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
49-
echo.
50-
echo Please set the JAVA_HOME variable in your environment to match the
51-
echo location of your Java installation.
47+
echo. 1>&2
48+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
49+
echo. 1>&2
50+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
51+
echo location of your Java installation. 1>&2
5252

5353
goto fail
5454

@@ -58,11 +58,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5858

5959
if exist "%JAVA_EXE%" goto execute
6060

61-
echo.
62-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
63-
echo.
64-
echo Please set the JAVA_HOME variable in your environment to match the
65-
echo location of your Java installation.
61+
echo. 1>&2
62+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
63+
echo. 1>&2
64+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
65+
echo location of your Java installation. 1>&2
6666

6767
goto fail
6868

0 commit comments

Comments
 (0)