File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ Extend maven-toolchains-plugin to add JDK auto download and toolchains.xml manag
2323
2424* JDK auto download by Foojay API support, and install directory is ` ~/.m2/jdks `
2525* Add new toolchain into toolchains.xml dynamically
26+ * SDKMAN integration: add JDK to toolchains.xml from [ SDKMAN] ( https://sdkman.io/ ) if SDKMAN detected
2627* JBang integration: add/auto-install JDK to toolchains.xml from [ JBang] ( https://www.jbang.dev/ ) if jbang detected
2728
2829# Requirements
@@ -67,7 +68,7 @@ And you can try it quickly:
6768$ git clone https://github.com/linux-china/java17-demo.git
6869$ cd java17-demo
6970$ mvn compile
70- ```
71+ ```
7172
7273# GraalVM support
7374
@@ -117,7 +118,7 @@ $ mvn -Dtoolchain.skip -DskipTests package
117118```
118119
119120# Different JDK for main/test code
120-
121+
121122Maven has support for using different source and target java versions for your project's main code and tests.
122123You can add ` testJdk ` toolchain in ` toolchains-maven-plugin ` to specify the JDK for test code as below:
123124
@@ -184,4 +185,7 @@ You can add `testJdk` toolchain in `toolchains-maven-plugin` to specify the JDK
184185* Maven toolchains CLI: https://github.com/linux-china/maven-toolchains-cli
185186* Disco CLI: a command line interface for the foojay.io Disco API - https://github.com/HanSolo/discocli
186187* foojay DiscoAPI: https://api.foojay.io/swagger-ui/
187- * Gradle Toolchains for JVM:https://docs.gradle.org/current/userguide/toolchains.html
188+ * Gradle Toolchains for JVM:https://docs.gradle.org/current/userguide/toolchains.html
189+
190+
191+ sdkman support: sdk install java 17.0.7-graalce
You can’t perform that action at this time.
0 commit comments