You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/06/24 20:59:41 UTC

[groovy] branch danielsun/jdk19 updated (1a70f869e4 -> cce621fe78)

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a change to branch danielsun/jdk19
in repository https://gitbox.apache.org/repos/asf/groovy.git


 discard 1a70f869e4 Try jdk19
     new cce621fe78 Try jdk19

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (1a70f869e4)
            \
             N -- N -- N   refs/heads/danielsun/jdk19 (cce621fe78)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/groovy-build-test-ea.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


[groovy] 01/01: Try jdk19

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch danielsun/jdk19
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit cce621fe78b597701796023e6e27cdc501182422
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Jun 25 04:00:28 2022 +0800

    Try jdk19
---
 .github/workflows/groovy-build-test-ea.yml         | 45 ++++++++++++++++++++++
 .../test/groovy/groovy/json/JsonOutputTest.groovy  |  2 +
 2 files changed, 47 insertions(+)

diff --git a/.github/workflows/groovy-build-test-ea.yml b/.github/workflows/groovy-build-test-ea.yml
new file mode 100644
index 0000000000..faa16c5a35
--- /dev/null
+++ b/.github/workflows/groovy-build-test-ea.yml
@@ -0,0 +1,45 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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
+#
+#     http://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.
+
+name: Build and test ea
+
+on: [push, pull_request]
+
+jobs:
+  test:
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ubuntu-18.04]
+        java: [17]
+        jdk: ["https://download.java.net/java/early_access/jdk19/28/GPL/openjdk-19-ea+28_linux-x64_bin.tar.gz"]
+    runs-on: ${{ matrix.os }}
+    steps:
+      - name: Download JDK ${{ matrix.jdk }}
+        run: wget -c ${{ matrix.jdk }} -O /tmp/openjdk.tar.gz
+      - name: Set up JDK ${{ matrix.jdk }}
+        run: mkdir -p /home/runner/openjdk && tar -xvf /tmp/openjdk.tar.gz -C /home/runner/openjdk && chmod -R 755 /home/runner/openjdk && mv /home/runner/openjdk/jdk*/* /home/runner/openjdk/
+      - uses: actions/checkout@v2
+      - name: Set up JDK
+        uses: actions/setup-java@v2
+        with:
+          distribution: 'zulu'
+          java-version: ${{ matrix.java }}
+          check-latest: true
+      - name: Test with Gradle
+        run: ./gradlew test -Ptarget.java.home=/home/runner/openjdk
+        timeout-minutes: 60
+        env:
+          GRADLE_SCANS_ACCEPT: yes
diff --git a/subprojects/groovy-json/src/test/groovy/groovy/json/JsonOutputTest.groovy b/subprojects/groovy-json/src/test/groovy/groovy/json/JsonOutputTest.groovy
index b7cabeef04..4aca996a61 100644
--- a/subprojects/groovy-json/src/test/groovy/groovy/json/JsonOutputTest.groovy
+++ b/subprojects/groovy-json/src/test/groovy/groovy/json/JsonOutputTest.groovy
@@ -23,6 +23,7 @@ import org.junit.Test
 
 import static groovy.json.JsonOutput.toJson
 import static groovy.test.GroovyAssert.assertScript
+import static groovy.test.GroovyAssert.isAtLeastJdk
 import static groovy.test.GroovyAssert.shouldFail
 
 final class JsonOutputTest {
@@ -529,6 +530,7 @@ final class JsonOutputTest {
                 "chronology":{
                     "calendarType":"iso8601",
                     "id":"ISO"
+                    ''' + ((isAtLeastJdk("19.0")) ? ',"isoBased":true' : '' ) + '''
                 },
                 "dayOfMonth":1,
                 "dayOfWeek":"THURSDAY",