Skip to content

Commit 3d8d0e5

Browse files
committed
Upgrade Xtext Builder plugin version in preparation for Gradle upgrade. (#283)
Raises _build time_ minimum required Java version to 11; see https://github.com/xtext/xtext-gradle-plugin/releases/tag/4.0.0.
1 parent eebbe88 commit 3d8d0e5

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- name: Set up JDK 1.8
10+
- name: Set up JDK 11
1111
uses: actions/setup-java@v1
1212
with:
13-
java-version: 1.8
13+
java-version: 11
1414
- name: Grant execute permission for gradlew
1515
run: chmod +x gradlew
1616
- name: Build with Gradle

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
uses: actions/setup-node@v2
1616
- name: Set up vsce
1717
run: npm install -g vsce
18-
- name: Set up JDK 1.8
18+
- name: Set up JDK 11
1919
uses: actions/setup-java@v1
2020
with:
21-
java-version: 1.8
21+
java-version: 11
2222
- name: Build with Gradle
2323
run: |
2424
chmod +x gradlew

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-java@v1
1212
with:
13-
java-version: 1.8
13+
java-version: 11
1414
- name: Publish package
1515
run: ./gradlew publish
1616
env:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'org.ec4j.editorconfig' version '0.0.3'
3-
id 'org.xtext.builder' version '2.0.8'
3+
id 'org.xtext.builder' version '4.0.0'
44
id 'io.github.0ffz.github-packages' version '1.2.1'
55
}
66

metafix/src/test/java/org/metafacture/metafix/MetafixMethodTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ public void copyFieldToSubfieldOfArrayOfObjectsWithExplicitAppend() {
23102310

23112311
@Test
23122312
public void copyFieldToSubfieldOfArrayOfStringsWithIndexImplicitAppend() {
2313-
MetafixTestHelpers.assertProcessException(IndexOutOfBoundsException.class, "Index: 0, Size: 0", () ->
2313+
MetafixTestHelpers.assertProcessException(IndexOutOfBoundsException.class, "Index 0 out of bounds for length 0", () ->
23142314
MetafixTestHelpers.assertFix(streamReceiver, Arrays.asList(
23152315
"set_array('test[]')",
23162316
"copy_field('key', 'test[].1')"
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
^Exception in thread "main" org\.metafacture\.metafix\.FixProcessException: Error while executing Fix expression \(at .*/metafix/src/test/resources/org/metafacture/metafix/integration/record/fromJson/toJson/copy_fieldToArrayOfStringsWithIndex/test\.fix, line 2\): copy_field\("key", "test\[\]\.1"\)$
2-
^Caused by: java\.lang\.IndexOutOfBoundsException: Index: 0, Size: 0$
2+
^Caused by: java\.lang\.IndexOutOfBoundsException: Index 0 out of bounds for length 0$

0 commit comments

Comments
 (0)