Skip to content

Commit

Permalink
Ensures generators always run on Java 17 #150
Browse files Browse the repository at this point in the history
This is required as in case of modern target platform version MWE runs
on Java 17+
  • Loading branch information
ujhelyiz committed Apr 12, 2024
1 parent da589c9 commit fbb980c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion releng/org.eclipse.viatra.generators/.classpath
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11
org.eclipse.jdt.core.compiler.source=17
9 changes: 8 additions & 1 deletion releng/org.eclipse.viatra.setup/VIATRAEMF.setup
Original file line number Diff line number Diff line change
Expand Up @@ -899,11 +899,18 @@
value="master"/>
<setupTask
xsi:type="jdt:JRETask"
version="JavaSE-1.8"
version="JavaSE-11"
location="${jre.location-11}"
name="JRE for JavaSE-11">
<description>Define the JRE needed to compile and run the Java projects of ${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="jdt:JRETask"
version="JavaSE-17"
location="${jre.location-17}"
name="JRE for JavaSE-17">
<description>Define the JRE needed to compile and run the Java projects of ${scope.project.label}</description>
</setupTask>
</stream>
<stream name="2.8-maintenance">
<setupTask
Expand Down

0 comments on commit fbb980c

Please sign in to comment.