]> gerrit.simantics Code Review - simantics/fmil.git/commitdiff
Fix build to produce 1.8 compatible classes. release/1.43.1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 17 Sep 2020 06:34:06 +0000 (09:34 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 17 Sep 2020 06:34:06 +0000 (09:34 +0300)
Strangely, if there is a <configuration> defined for tycho-compiler-plugin the tycho
compiler plug-in will just override the <maven.compiler.source/target> property
values with the running JVMs versions or something similar.

gitlab #19

org.simantics.fmil.parent/pom.xml

index a09a75135e28895b71d354de78627411c853a3c8..6cb30ae309d9cbeb8509426555f8f49b530037d1 100644 (file)
@@ -8,10 +8,12 @@
 
        <!-- common settings for all modules -->
        <properties>
+               <maven.compiler.source>1.8</maven.compiler.source>
+               <maven.compiler.target>1.8</maven.compiler.target>
                <branch-spec>release/1.43.1</branch-spec>
                <simantics-download-site>http://www.simantics.org/download</simantics-download-site>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <tycho-version>1.0.0</tycho-version>
+               <tycho-version>1.7.0</tycho-version>
        </properties>
 
        <repositories>
@@ -29,9 +31,6 @@
                                <groupId>org.eclipse.tycho</groupId>
                                <artifactId>tycho-compiler-plugin</artifactId>
                                <version>${tycho-version}</version>
-                               <configuration>
-                                       <compilerArgument>-err:-forbidden</compilerArgument>
-                               </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.eclipse.tycho</groupId>