Skip to content

Commit 3add956

Browse files
committed
docs: add SDKMAN
1 parent 8989fc7 commit 3add956

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
121122
Maven has support for using different source and target java versions for your project's main code and tests.
122123
You 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

0 commit comments

Comments
 (0)