Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Eclipse Version Compatibility

on:
pull_request:
branches: [ master ]
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '.gitignore'
- '.gitattributes'
- '.github/**'
workflow_dispatch:

permissions:
contents: read

jobs:
compatibility:
strategy:
fail-fast: false
matrix:
target:
- 2024-06
- 2024-09
- 2024-12
- 2025-03
- 2025-06
- 2025-09
- 2025-12
- 2026-03
runs-on: windows-latest
name: Eclipse ${{ matrix.target }}

steps:
- uses: actions/checkout@v6
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.9'
- name: Build with Maven against Eclipse ${{ matrix.target }}
# Plugin is currently JavaSE-17, so 2025-03+ targets (with JavaSE-21 IUs) disable EE constraints here.
# If the plugin baseline is upgraded to JavaSE-21, this split can be removed and EE constraints can stay enabled.
run: mvn -B clean verify -ntp "-Dtarget.platform.file=targets/${{ matrix.target }}.target" "-Dtarget.resolve.with.ee.constraints=${{ startsWith(matrix.target, '2024-') && 'true' || 'false' }}"
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<target.platform.file>target-platform.target</target.platform.file>
<target.resolve.with.ee.constraints>true</target.resolve.with.ee.constraints>
</properties>

<modules>
Expand Down Expand Up @@ -41,8 +43,9 @@
<version>${tycho.version}</version>
<configuration>
<target>
<file>../../target-platform.target</file>
<file>../../${target.platform.file}</file>
</target>
<resolveWithExecutionEnvironmentConstraints>${target.resolve.with.ee.constraints}</resolveWithExecutionEnvironmentConstraints>
</configuration>
</plugin>
<plugin>
Expand Down
7 changes: 2 additions & 5 deletions target-platform.target
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2024-06/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
<location type="Target" uri="file:${project_loc:/com.tlcsdm.eclipse.generateallsetter}/../../targets/2024-06.target">
</location>
</locations>
</target>
</target>
11 changes: 11 additions & 0 deletions targets/2024-06.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2024-06/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
11 changes: 11 additions & 0 deletions targets/2024-09.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2024-09/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
11 changes: 11 additions & 0 deletions targets/2024-12.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2024-12/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
11 changes: 11 additions & 0 deletions targets/2025-03.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2025-03/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
11 changes: 11 additions & 0 deletions targets/2025-06.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2025-06/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
11 changes: 11 additions & 0 deletions targets/2025-09.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2025-09/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
11 changes: 11 additions & 0 deletions targets/2025-12.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2025-12/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
11 changes: 11 additions & 0 deletions targets/2026-03.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="feature" name="target-platform">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://mirrors.aliyun.com/eclipse/releases/2026-03/"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
Loading