diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 9645b5676..cbd643649 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '21' distribution: 'adopt' - name: Build with Ant uses: GabrielBB/xvfb-action@v1 @@ -33,10 +33,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '21' distribution: 'adopt' - name: Build with Ant uses: GabrielBB/xvfb-action@v1 diff --git a/Readme.md b/Readme.md index 0caf4e685..c2a8d1d6d 100644 --- a/Readme.md +++ b/Readme.md @@ -14,8 +14,8 @@ This is the main repository for [MDEOptimiser](http://mde-optimiser.github.io). Requirements: - Eclipse Version 2019-03 - Java 11 + Eclipse Version 2025-03 + Java 21 Install the version of MDEOptimiser you would like to use from one of the Eclipse Update sites below. diff --git a/build/maven/build.xml b/build/maven/build.xml index 3a7947f44..59bea6303 100644 --- a/build/maven/build.xml +++ b/build/maven/build.xml @@ -1,29 +1,58 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - - + + diff --git a/build/maven/template/pom.xml.template b/build/maven/template/pom.xml.template index 5438dc594..af3323fd0 100644 --- a/build/maven/template/pom.xml.template +++ b/build/maven/template/pom.xml.template @@ -31,10 +31,11 @@ ${repositories.output.root}/m2/m2.mdeoptimiser.repository ${repositories.output.root}/p2/p2.mdeoptimiser.repository ${repositories.output.root}/p2/p2.eclipse.repository - 2.17.0 - 2.17.0 - 11 - 11 + 2.38.0 + 2.38.0 + 21 + 21 + 21 UTF-8 5.4.1 @@ -47,13 +48,20 @@ - - p2.eclipse.repository - https://mde-optimiser.github.io/mdeo_repo/repository/m2/eclipse/2019-03/final/ - - - m2.moeaframework - https://mde-optimiser.github.io/mdeo_repo/repository/m2/moeaframework/ + + p2.henshin.repository + https://download.eclipse.org/modeling/emft/henshin/updates/release + + + p2.eclipse.repository + https://mde-optimiser.github.io/mdeo_repo/repository/m2/eclipse/2025-03/final/ + + always + + + + m2.moeaframework + https://mde-optimiser.github.io/mdeo_repo/repository/m2/moeaframework/ diff --git a/dependencies.xml b/dependencies.xml index 048ecc067..59605f658 100644 --- a/dependencies.xml +++ b/dependencies.xml @@ -1,35 +1,33 @@ - - - - - - - - - - - - - - - - + + + - - - + + + + + + + - - - - - + + + - - - - + + + + + + + + + + + + + diff --git a/examples/problems/argumentation/pom.xml b/examples/problems/argumentation/pom.xml index 847ce3363..fd62cc038 100644 --- a/examples/problems/argumentation/pom.xml +++ b/examples/problems/argumentation/pom.xml @@ -49,8 +49,8 @@ maven-compiler-plugin 3.0 - 11 - 11 + 21 + 21 diff --git a/examples/problems/cra/META-INF/MANIFEST.MF b/examples/problems/cra/META-INF/MANIFEST.MF index ccf40aa81..8695a76ed 100644 --- a/examples/problems/cra/META-INF/MANIFEST.MF +++ b/examples/problems/cra/META-INF/MANIFEST.MF @@ -7,7 +7,7 @@ Bundle-Version: 1.0.0.qualifier Bundle-ClassPath: . Bundle-Vendor: %providerName Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-11 +Bundle-RequiredExecutionEnvironment: JavaSE-21 Export-Package: models.cra.fitness.architectureCRA, models.cra.fitness.architectureCRA.impl, diff --git a/examples/problems/pom.xml b/examples/problems/pom.xml index 862b0f0b8..93ecb3a11 100644 --- a/examples/problems/pom.xml +++ b/examples/problems/pom.xml @@ -35,8 +35,8 @@ maven-compiler-plugin 3.0 - 11 - 11 + 21 + 21 diff --git a/examples/problems/tsp/META-INF/MANIFEST.MF b/examples/problems/tsp/META-INF/MANIFEST.MF index 14a492b2d..e3a21395b 100644 --- a/examples/problems/tsp/META-INF/MANIFEST.MF +++ b/examples/problems/tsp/META-INF/MANIFEST.MF @@ -7,7 +7,7 @@ Bundle-Version: 1.0.0.qualifier Bundle-ClassPath: . Bundle-Vendor: %providerName Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-RequiredExecutionEnvironment: J2SE-21 Export-Package: models.tsp.fitness.TSP, models.tsp.fitness.TSP.impl, models.tsp.fitness.TSP.util diff --git a/examples/problems/tsp/pom.xml b/examples/problems/tsp/pom.xml index f2ea02717..62c72c0ee 100644 --- a/examples/problems/tsp/pom.xml +++ b/examples/problems/tsp/pom.xml @@ -45,7 +45,7 @@ org.eclipse.xtext org.eclipse.xtext.testing - 2.18.0 + ${xtextVersion} test diff --git a/examples/problems/ttc-18/pom.xml b/examples/problems/ttc-18/pom.xml index 490d09d4f..fabe115ac 100644 --- a/examples/problems/ttc-18/pom.xml +++ b/examples/problems/ttc-18/pom.xml @@ -8,7 +8,7 @@ 1.0.0 - 2.12.0 + 2.38.0 UTF-8 1.8 1.8 diff --git a/examples/problems/ttc-18/resource-allocation/pom.xml b/examples/problems/ttc-18/resource-allocation/pom.xml index 00b94e2dd..9004cdf7c 100644 --- a/examples/problems/ttc-18/resource-allocation/pom.xml +++ b/examples/problems/ttc-18/resource-allocation/pom.xml @@ -35,8 +35,8 @@ maven-compiler-plugin 3.0 - 1.5 - 1.5 + 21 + 21 diff --git a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ide/META-INF/MANIFEST.MF b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ide/META-INF/MANIFEST.MF index d2fcddf91..d884a05a0 100644 --- a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ide/META-INF/MANIFEST.MF +++ b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ide/META-INF/MANIFEST.MF @@ -9,7 +9,7 @@ Require-Bundle: uk.ac.kcl.mdeo.ttc18.hsqos, org.eclipse.xtext.ide, org.eclipse.xtext.xbase.ide, org.antlr.runtime -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-RequiredExecutionEnvironment: JavaSE-21 Export-Package: org.xtext.example.mydsl.ide.contentassist.antlr.internal, org.xtext.example.mydsl.ide.contentassist.antlr diff --git a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.tests/META-INF/MANIFEST.MF b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.tests/META-INF/MANIFEST.MF index cb5190728..2f874c2b5 100644 --- a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.tests/META-INF/MANIFEST.MF +++ b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.tests/META-INF/MANIFEST.MF @@ -11,7 +11,7 @@ Require-Bundle: uk.ac.kcl.mdeo.ttc18.hsqos, org.eclipse.xtext.xbase.testing, org.eclipse.xtext.xbase.lib, org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-RequiredExecutionEnvironment: JavaSE-21 Export-Package: org.xtext.example.mydsl.tests;x-internal=true Import-Package: org.hamcrest.core, org.junit;version="4.5.0", diff --git a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ui.tests/META-INF/MANIFEST.MF b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ui.tests/META-INF/MANIFEST.MF index 2b2643eeb..30a48143f 100644 --- a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ui.tests/META-INF/MANIFEST.MF +++ b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ui.tests/META-INF/MANIFEST.MF @@ -13,7 +13,7 @@ Require-Bundle: uk.ac.kcl.mdeo.ttc18.hsqos.ui, org.eclipse.xtext.xbase.junit, org.eclipse.core.runtime, org.eclipse.ui.workbench;resolution:=optional -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-RequiredExecutionEnvironment: JavaSE-21 Import-Package: org.hamcrest.core, org.junit;version="4.5.0", org.junit.runners.model;version="4.5.0", diff --git a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ui/META-INF/MANIFEST.MF b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ui/META-INF/MANIFEST.MF index f35037290..1f8a23922 100644 --- a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ui/META-INF/MANIFEST.MF +++ b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos.ui/META-INF/MANIFEST.MF @@ -21,7 +21,7 @@ Require-Bundle: uk.ac.kcl.mdeo.ttc18.hsqos, org.eclipse.xtext.xbase.ui, org.eclipse.jdt.debug.ui Import-Package: org.apache.log4j -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-RequiredExecutionEnvironment: JavaSE-21 Export-Package: org.xtext.example.mydsl.ui.contentassist, org.xtext.example.mydsl.ui.quickfix, uk.ac.kcl.mdeo.ttc18.hsqos.ui.internal diff --git a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos/META-INF/MANIFEST.MF b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos/META-INF/MANIFEST.MF index 1465d51b5..8e4a70da8 100644 --- a/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos/META-INF/MANIFEST.MF +++ b/examples/problems/ttc-18/uk.ac.kcl.mdeo.ttc18.hsqos/META-INF/MANIFEST.MF @@ -16,7 +16,7 @@ Require-Bundle: org.eclipse.xtext, org.eclipse.emf.common, org.eclipse.xtext.common.types, org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-RequiredExecutionEnvironment: JavaSE-21 Export-Package: org.xtext.example.mydsl.myDsl.util, org.xtext.example.mydsl.parser.antlr.internal, org.xtext.example.mydsl.scoping, diff --git a/interfaces/cli/pom.xml b/interfaces/cli/pom.xml index 8f1c6b733..4bf4c51d2 100644 --- a/interfaces/cli/pom.xml +++ b/interfaces/cli/pom.xml @@ -20,8 +20,8 @@ maven-compiler-plugin 3.0 - 11 - 11 + ${maven.compiler.source} + ${maven.compiler.source} @@ -67,17 +67,17 @@ info.picocli picocli - 3.9.2 + 4.7.6 com.google.inject guice - 3.0 + [6.0.0,) commons-cli commons-cli - 1.2 + 1.9.0 @@ -100,7 +100,7 @@ org.eclipse.platform org.eclipse.core.runtime - [3.13.0,4.0.0) + [3.33.0,4.0.0) diff --git a/interfaces/eclipse/build.xml b/interfaces/eclipse/build.xml index ff4d6e5f2..ac96ed972 100644 --- a/interfaces/eclipse/build.xml +++ b/interfaces/eclipse/build.xml @@ -40,7 +40,7 @@ - + diff --git a/interfaces/eclipse/src/pom.xml b/interfaces/eclipse/src/pom.xml index 999dc3172..92c2b6255 100644 --- a/interfaces/eclipse/src/pom.xml +++ b/interfaces/eclipse/src/pom.xml @@ -8,12 +8,13 @@ pom - 2.17.0 + 2.38.0 UTF-8 - 11 - 11 + 21 + 21 + 21 - 1.4.0 + 4.0.11 @@ -60,15 +61,15 @@ - org.eclipse.tycho.extras - tycho-source-feature-plugin + org.eclipse.tycho + tycho-source-plugin ${tycho-version} - source-feature + feature-source package - source-feature + feature-source @@ -92,6 +93,7 @@ target-platform-configuration ${tycho-version} + uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse @@ -260,6 +262,11 @@ -err:-forbidden false + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/.classpath b/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/.classpath index 574a48682..254958ae3 100644 --- a/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/.classpath +++ b/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/.classpath @@ -1,6 +1,6 @@ - + diff --git a/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/META-INF/MANIFEST.MF b/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/META-INF/MANIFEST.MF index 15a75c897..4d814c05a 100644 --- a/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/META-INF/MANIFEST.MF +++ b/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/META-INF/MANIFEST.MF @@ -7,12 +7,11 @@ Bundle-Version: 1.0.0.qualifier Bundle-SymbolicName: uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests; singleton:=true Bundle-ActivationPolicy: lazy Require-Bundle: uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui, - org.junit.jupiter.api;bundle-version="[5.0.0,6.0.0)", + junit-jupiter-api;bundle-version="[5.0.0,6.0.0)", org.eclipse.xtext.testing, org.eclipse.xtext.xbase.testing, - org.eclipse.xtext.junit4, - org.eclipse.xtext.xbase.junit, + org.eclipse.xtext.ui.testing, org.eclipse.core.runtime, org.eclipse.ui.workbench;resolution:=optional -Bundle-RequiredExecutionEnvironment: JavaSE-11 +Bundle-RequiredExecutionEnvironment: JavaSE-21 Export-Package: uk.ac.kcl.inf.mdeoptimiser.languages.ui.tests;x-internal=true diff --git a/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/pom.xml b/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/pom.xml index 773a9b724..74fc3eb35 100644 --- a/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/pom.xml +++ b/interfaces/eclipse/src/uk.ac.kcl.inf.mdeoptimiser.interfaces.eclipse.ui.tests/pom.xml @@ -29,6 +29,7 @@ org.eclipse.tycho target-platform-configuration + org.eclipse.emf org.eclipse.emf.henshin.multicda.cpa - 1.7.0 + 1.8.0 org.eclipse.ocl org.eclipse.ocl - 3.10.200 + 3.22.0 org.eclipse.ocl org.eclipse.ocl.ecore - 3.10.200 + 3.22.0 com.github.mifmif @@ -138,13 +138,13 @@ org.eclipse.emf org.eclipse.emf.ecore - 2.15.0 + 2.38.0 org.eclipse.emf org.eclipse.emf.henshin.trace - 1.7.0 + 1.8.0 diff --git a/libraries/core/src/main/java/uk/ac/kcl/inf/mdeoptimiser/libraries/core/optimisation/interpreter/guidance/ocl/OclGuidanceFunctionsFactory.java b/libraries/core/src/main/java/uk/ac/kcl/inf/mdeoptimiser/libraries/core/optimisation/interpreter/guidance/ocl/OclGuidanceFunctionsFactory.java index f586fe3b2..901dc6287 100644 --- a/libraries/core/src/main/java/uk/ac/kcl/inf/mdeoptimiser/libraries/core/optimisation/interpreter/guidance/ocl/OclGuidanceFunctionsFactory.java +++ b/libraries/core/src/main/java/uk/ac/kcl/inf/mdeoptimiser/libraries/core/optimisation/interpreter/guidance/ocl/OclGuidanceFunctionsFactory.java @@ -14,7 +14,7 @@ public class OclGuidanceFunctionsFactory implements IGuidanceFunctionsFactory { static final OCL - oclInterpreter = OCL.newInstance(EcoreEnvironmentFactory.INSTANCE); + oclInterpreter = OCL.newInstanceAbstract(EcoreEnvironmentFactory.INSTANCE); static final OCLHelper oclHelper = oclInterpreter.createOCLHelper(); diff --git a/libraries/rulegen/pom.xml b/libraries/rulegen/pom.xml index 0b95b5f12..cc3ff68b8 100644 --- a/libraries/rulegen/pom.xml +++ b/libraries/rulegen/pom.xml @@ -20,8 +20,8 @@ maven-compiler-plugin 3.0 - 11 - 11 + ${maven.compiler.source} + ${maven.compiler.source} @@ -85,7 +85,7 @@ org.eclipse.emf org.eclipse.emf.henshin.model - 1.7.0 + 1.8.0 org.sidiff.serge @@ -110,14 +110,20 @@ org.eclipse.xtext org.eclipse.xtext.testing - ${xtend.version} + ${xtextVersion} - + + + org.hamcrest + hamcrest + 3.0 + test