Skip to content

Commit

Permalink
Merge branch 'gwtproject:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasterover9000 authored May 24, 2024
2 parents f8e2401 + 89d06d6 commit 450df87
Show file tree
Hide file tree
Showing 188 changed files with 4,135 additions and 3,225 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
26 changes: 13 additions & 13 deletions .github/workflows/full-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Run all tests and builds all aspects of GWT using Java 8, 11, and 17. Runs
# Run all tests and builds all aspects of GWT using Java 11, 17, and 21. Runs
# nightly (plus or minus timzeones) on the main branch, and will also run right
# away on a push to a release branch. Release zips are uploaded as part of the
# build, though maven snapshots are not yet deployed.
Expand All @@ -20,20 +20,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ '8', '11', '17' ]
java-version: [ '11', '17', '21' ]
steps:
- name: Checkout GWT itself into one directory
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'gwt'
- name: Checkout GWT tools into a sibling directory
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 'gwtproject/tools'
path: 'tools'
- name: Set up JDK ${{ matrix.java-version }}
# GWT presently requires Java8 to build just the SDK and some tests, or 11 to build everything, but can run on newer Java versions
uses: actions/setup-java@v3
# GWT requires Java 11+ to build
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
Expand All @@ -57,33 +57,33 @@ jobs:
-Dtest.emma.htmlunit.disable=true
- name: Report test results
uses: mikepenz/action-junit-report@v3.1.0
uses: mikepenz/action-junit-report@v4.2.1
if: always()
with:
report_paths: 'gwt/build/out/**/test/**/reports/TEST-*.xml'
- name: Upload checkstyle xml for manual review in its own artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: checkstyle-reports-java${{ matrix.java-version }}
path: 'gwt/build/out/**/checkstyle*.xml'
- name: Upload test xml files for manual review in its own artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: junit-reports-java${{ matrix.java-version }}
path: 'gwt/build/out/**/test/**/reports/TEST-*.xml'

- name: On success, upload the release zip
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gwt-java${{ matrix.java-version }}
path: 'gwt/build/dist/gwt-*.zip'

- name: Set up sonatype credentials
# Using the same java version as above, set up a settings.xml file
uses: actions/setup-java@v3
if: ${{ github.event_name == 'schedule' && github.repository_owner == 'gwtproject' && matrix.java-version == '17' }}
uses: actions/setup-java@v4
if: ${{ github.event_name == 'schedule' && github.repository_owner == 'gwtproject' && matrix.java-version == '21' }}
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
Expand All @@ -93,7 +93,7 @@ jobs:
server-password: SONATYPE_PASSWORD

- name: Nightly builds should be deployed as snapshots to sonatype
if: ${{ github.event_name == 'schedule' && github.repository_owner == 'gwtproject' && matrix.java-version == '17' }}
if: ${{ github.event_name == 'schedule' && github.repository_owner == 'gwtproject' && matrix.java-version == '21' }}
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ['8', '11', '17']
java-version: ['11', '17', '21']
steps:
- name: Checkout GWT itself into one directory
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'gwt'
# we need depth=2 to see which style violations overlap with the current changes
fetch-depth: 2
- name: Checkout GWT tools into a sibling directory
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 'gwtproject/tools'
path: 'tools'
- name: Set up JDK ${{ matrix.java-version }}
# GWT presently requires Java8 to build just the SDK and some tests, or 11+ to build everything, and can run on newer Java versions
uses: actions/setup-java@v3
# GWT presently requires Java 11+ to build
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
Expand All @@ -44,8 +44,8 @@ jobs:
ANT_OPTS=-Xmx2g
ant clean dist doc checkstyle apicheck
- name: Create pull request comments/annotations for checkstyle from the java 17 build, even on failure
if: ${{ always() && github.event_name == 'pull_request' && matrix.java-version == '17' }}
- name: Create pull request comments/annotations for checkstyle from the java 21 build, even on failure
if: ${{ always() && github.event_name == 'pull_request' && matrix.java-version == '21' }}
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -57,8 +57,8 @@ jobs:
reviewdog -f=checkstyle -filter-mode=diff_context -reporter=github-pr-review -level=info < $f
done
- name: Upload checkstyle xml for manual review
uses: actions/upload-artifact@v2
if: ${{ matrix.java-version == '17' }}
uses: actions/upload-artifact@v4
if: ${{ matrix.java-version == '21' }}
with:
name: checkstyle-reports-java${{ matrix.java-version }}
path: 'gwt/build/out/**/checkstyle*.xml'
Expand Down
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<gwt.ant dir="samples"/>
</target>

<target name="buildtools" description="[subdir] Build (or runs ${target} if set) the build tools" unless="isJava8">
<target name="buildtools" description="[subdir] Build (or runs ${target} if set) the build tools">
<gwt.ant dir="build_tools"/>
</target>

Expand Down
2 changes: 1 addition & 1 deletion build_tools/doctool/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<gwt.javac release="11" />
</target>

<target name="build" depends="compile" description="Packages this project into a jar" unless="${isJava8}">
<target name="build" depends="compile" description="Packages this project into a jar">
<mkdir dir="${gwt.build.lib}" />
<gwt.jar>
<fileset dir="src" />
Expand Down
49 changes: 19 additions & 30 deletions common.ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
message="This build file is in an inconsistent state (${ant.file} != ${test.ant.file})."/>

<!-- Global Properties -->
<!--
Indicate if we are running in Java8, and so cannot run java9+ tests or generate Javadoc.
-->
<condition property="isJava8">
<equals arg1="${ant.java.version}" arg2="1.8" />
</condition>
<property environment="env"/>
<condition property="gwt.version" value="${env.GWT_VERSION}" else="0.0.0">
<isset property="env.GWT_VERSION"/>
Expand All @@ -47,15 +41,13 @@
<property name="gwt.build" location="${gwt.root}/build"/>
<property name="gwt.build.out" location="${gwt.build}/out"/>
<property name="gwt.build.lib" location="${gwt.build}/lib"/>
<property name="gwt.build.jni" location="${gwt.build}/jni"/>
<property name="gwt.build.staging" location="${gwt.build}/staging"/>
<property name="gwt.build.dist" location="${gwt.build}/dist"/>
<!-- gwt.threadsPerProcessor supercedes gwt.threadCount unless set to 0 -->
<property name="gwt.threadsPerProcessor" value="1"/>
<property name="gwt.threadCount" value="1"/>
<property name="project.build" location="${gwt.build.out}/${project.tail}"/>
<property name="project.lib" location="${gwt.build.lib}/gwt-${ant.project.name}.jar"/>
<property name="project.jni" location="${gwt.build}/${project.tail}"/>
<property name="javac.out" location="${project.build}/bin"/>
<property name="javac.junit.out" location="${project.build}/bin-test"/>
<property name="javac.emma.out" location="${project.build}/bin-emma"/>
Expand All @@ -66,11 +58,9 @@
<property name="javac.nowarn" value="true"/>

<!-- javac and errorprone instructions from https://errorprone.info/docs/installation#ant -->
<property name="errorprone.javac.jar" location="${gwt.tools.lib}/errorprone/javac-9+181-r4173-1.jar"/>
<path id="errorprone.processorpath.ref">
<pathelement location="${gwt.tools.lib}/errorprone/error_prone_core-2.9.0-with-dependencies.jar"/>
<pathelement location="${gwt.tools.lib}/errorprone/jFormatString-3.0.0.jar"/>
<pathelement location="${gwt.tools.lib}/errorprone/dataflow-errorprone-3.15.0.jar"/>
<pathelement location="${gwt.tools.lib}/errorprone/error_prone_core-2.23.0-with-dependencies.jar"/>
<pathelement location="${gwt.tools.lib}/errorprone/dataflow-errorprone-3.34.0-eisop1.jar"/>
</path>

<property name="junit.out" location="${project.build}/test"/>
Expand Down Expand Up @@ -170,20 +160,19 @@
</path>
<mkdir dir="@{destdir}"/>
<javac srcdir="@{srcdir}" sourcepath="@{srcdir}" destdir="@{destdir}" debug="${javac.debug}"
debuglevel="${javac.debuglevel}" source="@{release}" target="@{release}" release="@{release}"
debuglevel="${javac.debuglevel}" release="@{release}"
nowarn="${javac.nowarn}" encoding="${javac.encoding}" includeantruntime="false"
fork="true" compiler="modern" excludes="@{excludes}">
<compilerarg value="-J-Xbootclasspath/p:${errorprone.javac.jar}" if:true="${isJava8}"/>
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED" unless:true="${isJava8}"/>
<compilerarg value="-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED" unless:true="${isJava8}"/>
fork="true" excludes="@{excludes}">
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" />
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED" />
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED" />
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED" />
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED" />
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED" />
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED" />
<compilerarg value="-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED" />
<compilerarg value="-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED" />
<compilerarg value="-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED" />
<compilerarg value="-XDcompilePolicy=simple"/>
<compilerarg value="-processorpath"/>
<compilerarg pathref="mergedprocessorpath.ref"/>
Expand Down Expand Up @@ -249,7 +238,7 @@
<jvmarg value="-Demma.coverage.out.merge=true"/>
<jvmarg value="-Dcom.google.gwt.junit.reportPath=reports"/>
<jvmarg line="@{test.jvmargs}"/>
<jvmarg line="--add-opens=java.base/java.lang=ALL-UNNAMED" unless:true="${isJava8}"/>
<jvmarg line="--add-opens=java.base/java.lang=ALL-UNNAMED" />
<sysproperty key="gwt.args" value="@{test.args}"/>
<sysproperty key="java.awt.headless" value="true"/>
<classpath>
Expand Down Expand Up @@ -346,8 +335,8 @@
<attribute name="outputdirectory" default="${project.build}"/>
<element name="sourcepath" implicit="yes" optional="true"/>
<sequential>
<taskdef resource="checkstyletask.properties"
classpath="${gwt.tools.antlib}/checkstyle-6.0-all.jar"/>
<taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
classpath="${gwt.tools.antlib}/checkstyle-10.13.0-all.jar"/>
<mkdir dir="@{outputdirectory}"/>
<checkstyle config="${gwt.root}/eclipse/settings/code-style/gwt-checkstyle.xml" maxErrors="0"
failOnViolation="false" failureProperty="gwt.checkstyle.failed">
Expand All @@ -366,8 +355,8 @@
<attribute name="outputdirectory" default="${project.build}"/>
<element name="sourcepath" implicit="yes" optional="true"/>
<sequential>
<taskdef resource="checkstyletask.properties"
classpath="${gwt.tools.antlib}/checkstyle-6.0-all.jar"/>
<taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
classpath="${gwt.tools.antlib}/checkstyle-10.13.0-all.jar"/>
<mkdir dir="@{outputdirectory}"/>
<checkstyle config="${gwt.root}/eclipse/settings/code-style/gwt-checkstyle-tests.xml"
maxErrors="0" failOnViolation="false"
Expand Down
Loading

0 comments on commit 450df87

Please sign in to comment.