Skip to content

Commit

Permalink
build: Update to Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
sasjo committed Jul 30, 2024
1 parent f79b6cf commit 20e105b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
java-version-file: .java-version

- name: Run tests
uses: extenda/actions/maven@v0
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
java-version-file: .java-version

- name: Build
uses: extenda/actions/maven@v0
Expand Down
2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17
21
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM eclipse-temurin:17-centos7
FROM eclipse-temurin:21

RUN yum -y install graphviz
RUN apt update \
&& apt -y install graphviz \
&& apt clean

COPY target/lib /app/lib
COPY target/*.jar /app
Expand All @@ -9,4 +11,4 @@ EXPOSE 3000

WORKDIR /docs

ENTRYPOINT ["/opt/java/openjdk/bin/java", "-jar", "/app/structurizr-to-png.jar"]
CMD ["java", "-jar", "/app/structurizr-to-png.jar"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ The following view properties are supported with the `structurizr` renderer.

# Development

* The project is built with Java 17 and Maven.
* The project is built with Java 21 and Maven.
* `mvn verify` to build and run all tests
* `java -jar target/structurizr-to-png.jar` runs the client on your local machine
* Running locally requires Graphviz
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<java.version>21</java.version>
<java.source.version>${java.version}</java.source.version>
<java.target.version>${java.version}</java.target.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down

0 comments on commit 20e105b

Please sign in to comment.