Skip to content

Commit 48e22a3

Browse files
committed
Add a profile to enable compilation with javac
Sometimes there is a question "does it compile with javac" and doing so by hand can become cumbersome. This now adds a new profile "javac" that can be used to enable javac as a compiler instead of ecj and disable baseline compare/replace because of javac emits different bytecode by default.
1 parent 61e4939 commit 48e22a3

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

eclipse-platform-parent/pom.xml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<buildId>${buildType}${buildTimestamp}</buildId>
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646

47-
<!-- releaseYear is used in copyright statements, etc.-->
47+
<!-- releaseYear is used in copyright statements, etc.-->
4848
<releaseYear>2025</releaseYear>
4949
<releaseMonth>06</releaseMonth>
5050
<!--
@@ -1082,6 +1082,49 @@
10821082
</plugins>
10831083
</build>
10841084
</profile>
1085+
<profile>
1086+
<id>javac</id>
1087+
<build>
1088+
<pluginManagement>
1089+
<plugins>
1090+
<plugin>
1091+
<groupId>org.eclipse.tycho</groupId>
1092+
<artifactId>tycho-compiler-plugin</artifactId>
1093+
<version>${tycho.version}</version>
1094+
<configuration>
1095+
<compilerArgs combine.self="override"></compilerArgs>
1096+
<compilerId>javac</compilerId>
1097+
</configuration>
1098+
</plugin>
1099+
<plugin>
1100+
<groupId>org.eclipse.tycho</groupId>
1101+
<artifactId>tycho-p2-plugin</artifactId>
1102+
<version>${tycho.version}</version>
1103+
<configuration>
1104+
<baselineReplace>none</baselineReplace>
1105+
<baselineMode>disable</baselineMode>
1106+
</configuration>
1107+
</plugin>
1108+
<plugin>
1109+
<groupId>org.eclipse.tycho.extras</groupId>
1110+
<artifactId>tycho-p2-extras-plugin</artifactId>
1111+
<version>${tycho.version}</version>
1112+
<executions>
1113+
<execution>
1114+
<id>compare-attached-artifacts-with-release</id>
1115+
<goals>
1116+
<goal>compare-version-with-baselines</goal>
1117+
</goals>
1118+
<configuration>
1119+
<skip>true</skip>
1120+
</configuration>
1121+
</execution>
1122+
</executions>
1123+
</plugin>
1124+
</plugins>
1125+
</pluginManagement>
1126+
</build>
1127+
</profile>
10851128
</profiles>
10861129
<scm>
10871130
<connection>scm:git:https://github.com/eclipse-platform/eclipse.platform.releng.aggregator.git</connection>

0 commit comments

Comments
 (0)