diff options
author | Roel Spilker <r.spilker@gmail.com> | 2020-01-08 01:23:26 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-01-08 01:32:24 +0100 |
commit | c497a2ab16d35ec9984bb7ddd04af98580a2c4cc (patch) | |
tree | b7520c28bc40867e522242a63305b1d2f7d8a821 | |
parent | c0c1279acd51379620c277a42c28bc7cd7c215de (diff) | |
download | lombok-c497a2ab16d35ec9984bb7ddd04af98580a2c4cc.tar.gz lombok-c497a2ab16d35ec9984bb7ddd04af98580a2c4cc.tar.bz2 lombok-c497a2ab16d35ec9984bb7ddd04af98580a2c4cc.zip |
Update javac documentation regarding the module system
-rw-r--r-- | website/templates/setup/javac.html | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/website/templates/setup/javac.html b/website/templates/setup/javac.html index 96bd8c2b..9e4a717b 100644 --- a/website/templates/setup/javac.html +++ b/website/templates/setup/javac.html @@ -1,13 +1,22 @@ <#import "_setup.html" as s> <@s.scaffold title="JavaC"> - <@s.introduction> + <@s.section title="JDK9+ with module-info.java"> + <p> + Support for JDK9+ if you did modularize your own projects (you've written a <code>module-info.java</code> file):<br /><code>javac -cp lombok.jar -p lombok.jar ...</code><br /> + Note that you will have to add lombok to your <code>module-info.java</code> file:<pre> +module <em>myapp</em> { + requires static lombok; +}</pre> + </p><p> + The 'static' part ensures that you won't need lombok to be present at runtime. + </p> + </@s.section> + + <@s.section title="JDK 1.6 - 1.8 or no modules in later versions"> <p> Just put lombok on the classpath when compiling with any javac (version 1.6 - 1.8): <code>javac -cp lombok.jar ....</code> </p> - </@s.introduction> - - <@s.section title="JDK 9"> <p> Support for JDK9, if you haven't modularized your own projects yet (no <code>module-info.java</code> yet), is included in lombok starting with version 1.16.20. Just use lombok as normal: <code> javac -cp lombok.jar ...</code> </p><p> @@ -20,4 +29,5 @@ module <em>myapp</em> { The 'static' part ensures that you won't need lombok to be present at runtime. </p> </@s.section> + </@s.scaffold> |