georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

#608 Insert maven compiler version #609

Closed Gaetanbrl closed 1 year ago

Gaetanbrl commented 1 year ago

ref #608

This PR will fix the build process if we just follow the README (thanks @pierrejego).

Gaetanbrl commented 1 year ago

Don't know wy build fail in CI and works fine in local space.

landryb commented 1 year ago

Don't know wy build fail in CI and works fine in local space.

maybe because github action installs only java 8 ? cf https://github.com/georchestra/mapstore2-georchestra/blob/master/.github/workflows/mapstore.yml#L18

Gaetanbrl commented 1 year ago

Just a questiion, is it possible to set the version in the POM or is it not possible (or just bad - or not recomended to ignore java env) ?

E.g with java 11 :

<properties>
    <java.version>11</java.version>
</properties>
pierrejego commented 1 year ago

I think update CI to Java 11 is better than using java 8 to compile.

Can we propose update CI to java 11 ? Or do the communauty prefers to stay on java 1.8 ?

Gaetanbrl commented 1 year ago

Also, Java 8 seems not required / not listed in the README :

image

Gaetanbrl commented 1 year ago

Java 8 seems not required / not listed in the README :

8 == 1.8... arf ^^

pmauduit commented 1 year ago

Or do the communauty prefers to stay on java 1.8 ?

As the other geOrchestra modules have already migrated to Java 11 since 22.0.x releases, i am :+1: for such a move. I think also that we already. Checking on one of our environments, it seems that even if the code is compiled with a compatibility target to java8, we are running it into a Java11 runtime.

pierrejego commented 1 year ago

Update gh-action to 11 done

pierrejego commented 1 year ago

Perhasp need to be backported to 2022.xx ?