Build Tapestry 5.5 from source with Eclipse Photon and Java 9 in a Docker container

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Build Tapestry 5.5 from source with Eclipse Photon and Java 9 in a Docker container

Ben Weidig
Hi,

I want to help to get Tapestry 5.5 to run with Java 9/10 so I've decided to
share how I got Tapestry 5.5 up and (mostly) running with Java 9 in a
containerized Eclipse:

https://gist.github.com/benweidig/7bec8580cfef7e28064e397cb4a18104

YMMV if you don't run it on Linux but it should be doable at least on macOS
if you intall XQuartz etc., but it wasn't much fun the last time I've tried
to get X11 apps running via Docker on macOS. Windows with WSL might work,
too.

The "Dockerfile" is copy/pasted/merged from multiples files of our internal
dev-setup and might contain some stuff not actually needed. I've only
tested it on my machine so far where I've already run other containerized
Eclipses, so you might need to adapt it a little to your needs.

There are still some issues I've run into:
- Java 9 removed "tools.jar" (
https://docs.oracle.com/javase/9/migrate/toc.htm#GUID-12237744-E23B-42F8-8892-26BA1BDD63F2)
so
the project "tapestry-javadoc" build path is broken, but you can just close
it in Eclipse
- "/tapestry-core/src/test/groovy/org/apache/tapestry5/LaunchJetty8.groovy"
is missing s package declaration (Quick-Fix available in Eclipse)
- Some tests are failing (sometimes) due to Selenium issues (couldn't
connect, Marionette stuff), have to look into it.

My ultimate goal would be running it with Java 10 due to Java 9 being EOL,
at least the Oracle JDK9. First thing that might fail is the Java version
detection in "tapestry-5/build.gradle:119".

Any suggestions or ideas how to improve this are appreciated! Thinking
about making a real GitHub repo for it with a more detailed "readme".

Ben
Reply | Threaded
Open this post in threaded view
|

Re: Build Tapestry 5.5 from source with Eclipse Photon and Java 9 in a Docker container

bobharner
Ben, thanks for writing this up, really great stuff! I'll be spending
more time on the Java 9/10 issue tomorrow myself.

On Mon, Aug 6, 2018 at 3:30 AM, Ben Weidig <[hidden email]> wrote:

> Hi,
>
> I want to help to get Tapestry 5.5 to run with Java 9/10 so I've decided to
> share how I got Tapestry 5.5 up and (mostly) running with Java 9 in a
> containerized Eclipse:
>
> https://gist.github.com/benweidig/7bec8580cfef7e28064e397cb4a18104
>
> YMMV if you don't run it on Linux but it should be doable at least on macOS
> if you intall XQuartz etc., but it wasn't much fun the last time I've tried
> to get X11 apps running via Docker on macOS. Windows with WSL might work,
> too.
>
> The "Dockerfile" is copy/pasted/merged from multiples files of our internal
> dev-setup and might contain some stuff not actually needed. I've only
> tested it on my machine so far where I've already run other containerized
> Eclipses, so you might need to adapt it a little to your needs.
>
> There are still some issues I've run into:
> - Java 9 removed "tools.jar" (
> https://docs.oracle.com/javase/9/migrate/toc.htm#GUID-12237744-E23B-42F8-8892-26BA1BDD63F2)
> so
> the project "tapestry-javadoc" build path is broken, but you can just close
> it in Eclipse
> - "/tapestry-core/src/test/groovy/org/apache/tapestry5/LaunchJetty8.groovy"
> is missing s package declaration (Quick-Fix available in Eclipse)
> - Some tests are failing (sometimes) due to Selenium issues (couldn't
> connect, Marionette stuff), have to look into it.
>
> My ultimate goal would be running it with Java 10 due to Java 9 being EOL,
> at least the Oracle JDK9. First thing that might fail is the Java version
> detection in "tapestry-5/build.gradle:119".
>
> Any suggestions or ideas how to improve this are appreciated! Thinking
> about making a real GitHub repo for it with a more detailed "readme".
>
> Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]