Skip to content

pioorg/DeepDiveJava18

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepDiveJava18

This is a demo project to show some new features of Java™ 18. It uses --enable-preview and Maven, but you don't need to have Maven installed.

To run this project, you need to have Java™ 18 installed. You can use https://sdkman.io/ and/or https://openjdk.java.net/, https://adoptium.net/

If you'd like to run the example app, one of the options is this:

$ MAVEN_OPTS="--enable-preview" ./mvnw exec:java -pl goodies

(If it doesn't work, you might have Java 18 not installed.)

To run the sample server:

cd ./goodies/src/main/resources/server; jwebserver

You can check it:

curl http://127.0.0.1:8000

To generate Javadoc with @snippet:

javadoc --source-path ./goodies/src/main/java org.przybyl.ddj18.javadocSnippets --snippet-path ./goodies/src/main/snippet-files -d ./goodies/src/main/javadoc

To browse it:

cd ./goodies/src/main/javadoc; jwebserver

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published