GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - isabiq/java9-migration: Practical Example to java 9 and java 10 migration

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
etc
etc
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
checkstyle-suppressions.xml
checkstyle-suppressions.xml
 
 
checkstyle.xml
checkstyle.xml
 
 
exclude-pmd.properties
exclude-pmd.properties
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Java 9,10 migration demo

This repository is practical demonstration of a java 8 application migration to java 9 and java 10. The application used in this demonstration is an implementation of the CQRS pattern taken from java-design-patterns.

The repository contains the following branches :

  • master : cqrs application as extracted from java-design-patterns running under java 8.
  • java9-classpath : cqrs running under java 9 in the classpath (the unamed module).
  • java9-module-v1 : cqrs and its direct dependencies running as modules under java 9.
  • java9-module-v2 : cqrs and its dependencies running as modules under java 9.
  • java10-classpath : cqrs running under java 10 in the classpath (the unamed module).
  • java10-module-v1 : cqrs and its direct dependencies running as modules under java 10.
  • jav10-module-v2 : cqrs and its dependencies running as modules under java 10.

In each branch you'll find at least three scripts in the bin directory. Each script compiles and runs the application using a different way. One using the command line, the other using maven and the third as a docker image. You'll find also in the java 9 and java 10 branches a script which uses jlink to generate a dependency report and the module-info in the temp/ directory.

About Migration

  • Java 9 : Detailed steps can be found at : A Practical Guide to Java 9 Migration.
  • Java 10 : Migration to Java 10 was made from the Java 9 branches respectively. The migration has been straightforward, just some minor upgrades.

Environment

  • Linux
  • java "10"
  • java "9.0.1"
  • java "1.8.0_151"
  • maven "3.5.3"
  • docker 17.09.1-ce (optional: if you want to run CQRS as docker container)

Notice that for the master branch you'll need to configure JAVA_HOME for java 8. For the other branches you'll need to switch to java 9 or java 10.

References

  • JEP 261: Module System
  • Java Platform, Standard Edition Oracle JDK 9 Migration Guide
  • The State of the Module System
  • Project Jigsaw: Module System Quick-Start Guide
  • Maven plugins
  • JDK 10

Contributing

All suggestions, contributions and reactions are welcome.

About

Practical Example to java 9 and java 10 migration

Topics

dockerjavajava-10java-9

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.