Changeset 36190 in osm for applications


Ignore:
Timestamp:
2023-10-31T18:08:05+01:00 (15 months ago)
Author:
taylor.smock
Message:

See #23218: Don't build some Java 8 plugins with Java 8

The Java 8 plugins that are failing to build under Java 8 have the same stack
trace as #21995. Since we are dropping Java 8 support in JOSM at the end of the
year, it most likely is not worth the time to figure out how to work around the
Java 8 javac bug. They are still built targeting Java 8 via the --release
javac flag (java.lang.version).

All the failing plugins use apache-commons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/build.xml

    r36177 r36190  
    3131                                            apache-commons/build.xml
    3232                                            apache-http/build.xml
    33                                             Mapillary/build.xml
    3433                                            austriaaddresshelper/build.xml"/>
    3534    <property name="javafx_plugins" value="javafx/build.xml
    3635                                           MicrosoftStreetside/build.xml"/>
     36
     37    <!-- We are dropping Java 8 support in January 2024 - these have issues compiling with Java 8, but not with Java 11+ targeting Java 8 -->
     38    <!-- Note: Mapillary was in ordered_plugins -->
     39    <property name="borked_java8_compilation" value="Mapillary/build.xml
     40                                                     Dxf-Import/build.xml
     41                                                     photo_geotagging/build.xml" />
    3742    <macrodef name="iterate">
    3843        <attribute name="target"/>
     
    4045            <subant target="@{target}" inheritall="true">
    4146                <filelist dir="." files="${ordered_plugins}"/>
     47                <filelist dir="." files="${borked_java8_compilation}" if:set="isJava11"/>
    4248                <!-- Build JavaFX plugins only with Java 11+ -->
    4349                <filelist dir="." files="${javafx_plugins}" if:set="isJava11"/>
     
    4551                <filelist dir="." files="${java17_plugins}" if:set="isJava17"/>
    4652                <filelist dir="." files="${java21_plugins}" if:set="isJava21"/>
    47                 <fileset  dir="." includes="*/build.xml" excludes="00_*/build.xml *.wip/build.xml ${javafx_plugins} ${ordered_plugins} ${java11_plugins} ${java17_plugins} ${java21_plugins} "/>
     53                <fileset  dir="." includes="*/build.xml" excludes="00_*/build.xml *.wip/build.xml ${borked_java8_compilation} ${javafx_plugins} ${ordered_plugins} ${java11_plugins} ${java17_plugins} ${java21_plugins} "/>
    4854            </subant>
    4955        </sequential>
Note: See TracChangeset for help on using the changeset viewer.