Skip to content

Commit cdbb4aa

Browse files
authored
Merge pull request #9 from MontiCore/java21
Update to Java 21 and Gradle 8.5
2 parents c04a488 + 4362708 commit cdbb4aa

6 files changed

Lines changed: 30 additions & 9 deletions

File tree

.github/workflows/deploy_snapshot.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ on:
1515
types: [ trigger_after_upstream_deploy ]
1616

1717
env:
18-
GRADLE_VERSION: 7.6 # Gradle version used
18+
GRADLE_VERSION: 8.5 # Gradle version used
19+
JAVA_VERSION: 21 # Java version used
1920
GRADLE_CLI_OPTS: "-Pci --build-cache --refresh-dependencies" # CLI options passed to Gradle
2021
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: "test-cache-${{ github.head_ref }}.${{ github.sha }}"
2122

@@ -29,6 +30,11 @@ jobs:
2930
steps:
3031
- name: Checkout project sources
3132
uses: actions/checkout@v4
33+
- name: Setup Java
34+
uses: actions/setup-java@v4
35+
with:
36+
distribution: 'temurin'
37+
java-version: ${{ env.JAVA_VERSION }}
3238
- name: Setup Gradle
3339
uses: gradle/actions/setup-gradle@v4
3440
with:
@@ -45,6 +51,11 @@ jobs:
4551
steps:
4652
- name: Checkout project sources
4753
uses: actions/checkout@v4
54+
- name: Setup Java
55+
uses: actions/setup-java@v4
56+
with:
57+
distribution: 'temurin'
58+
java-version: ${{ env.JAVA_VERSION }}
4859
- name: Setup Gradle
4960
uses: gradle/actions/setup-gradle@v4
5061
with:

.github/workflows/test_branch.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ on:
1212
branches-ignore: [ "dev" ] # Do not run this on the default branch
1313

1414
env:
15-
GRADLE_VERSION: 7.6 # Gradle version used
15+
GRADLE_VERSION: 8.5 # Gradle version used
16+
JAVA_VERSION: 21 # Java version used
1617
GRADLE_CLI_OPTS: "-Pci --build-cache --refresh-dependencies" # CLI options passed to Gradle
1718
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: "test-cache-${{ github.head_ref }}.${{ github.sha }}"
1819

@@ -26,6 +27,11 @@ jobs:
2627
steps:
2728
- name: Checkout project sources
2829
uses: actions/checkout@v4
30+
- name: Setup Java
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: 'temurin'
34+
java-version: ${{ env.JAVA_VERSION }}
2935
- name: Setup Gradle
3036
uses: gradle/actions/setup-gradle@v4
3137
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ used when processing models. To this effect, it provides funcionality for
5454
* storing symbols in symbol files,
5555
* ,and loading symbols from symbol files.
5656

57-
The requirements for building and using the OD tool are that Java 11, Git, and Gradle are
57+
The requirements for building and using the OD tool are that Java 21, Git, and Gradle 8.5 are
5858
installed and available for use in Bash.
5959

6060
The following subsection describes how to download the tool. Then, this document describes how
@@ -76,7 +76,7 @@ Alternatively, the tools can be built from source code.
7676

7777
### Prerequisites
7878

79-
To build the project, it is required to install a Java 11 JDK and git.
79+
To build the project, it is required to install a Java 21 JDK and git.
8080

8181
#### Step 1: Clone Project with git
8282

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ plugins {
55
id 'java-library'
66
id 'maven-publish'
77
id "de.monticore.generator" version "$mc_version" // MontiCore Plugin
8-
id "com.github.johnrengelman.shadow" version "$shadow_plugin_version"
8+
id "com.gradleup.shadow" version "$shadow_plugin_version"
99
id 'jacoco'
1010
id "io.github.themrmilchmann.ecj" version "0.2.0"
1111
}
1212

13+
ecj {
14+
compilerVersion = "3.43.0"
15+
}
16+
1317
def grammarDir = "src/main/grammars"
1418

1519
group = "de.monticore.lang"
@@ -31,7 +35,7 @@ sourceSets {
3135

3236
java {
3337
toolchain {
34-
languageVersion = JavaLanguageVersion.of(11)
38+
languageVersion = JavaLanguageVersion.of(21)
3539
}
3640
// Deprecated feature, published for compatibility reasons
3741
registerFeature('grammars') {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mc_version=7.9.0-SNAPSHOT
55
mlc_version=7.8.0-SNAPSHOT
66
version=7.9.0-SNAPSHOT
77
useLocalRepo=false
8-
shadow_plugin_version=7.1.2
8+
shadow_plugin_version=8.3.9
99
guava_version=33.5.0-jre
1010
commons_lang3_version=3.20.0
1111
commons_cli_version=1.11.0

src/main/java/de/monticore/od2plantuml/REPORT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ foo--> "blub" bar
8282
## Usage of ODPlantUMLTool
8383

8484
### Dependencies
85-
* Java 11 (or higher)
86-
* Gradle 7.5 (or higher)
85+
* Java 21 (or higher)
86+
* Gradle 8.5 (or higher)
8787

8888
### Installation of the project
8989
* Clone the project from Gitlab

0 commit comments

Comments
 (0)