Skip to content

Commit ce3e792

Browse files
committed
Use Foojay resolver plugin for JDK auto-provisioning
Apple Silicon compatible JDKs (and others) can now be provisioned automatically by Gradle.
1 parent d7a52e3 commit ce3e792

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ task outputs from previous CI builds.
6565
You need [JDK 17] to build JUnit 5. [Gradle toolchains] are used to detect and
6666
potentially download additional JDKs for compilation and test execution.
6767

68-
Note: If you're working on a machine with an Apple Silicon processor, you'll need to
69-
download and install a JDK 8 distribution manually (or via [SDKMAN!] or [asdf]) --
70-
for example, one from [Zulu] or [Liberica].
71-
7268
All modules can be _built_ with the [Gradle Wrapper] using the following command.
7369

7470
`gradlew clean assemble`
@@ -96,7 +92,6 @@ See also <https://repo1.maven.org/maven2/org/junit/> for releases and
9692
<https://oss.sonatype.org/content/repositories/snapshots/org/junit/> for snapshots.
9793

9894

99-
[asdf]: https://asdf-vm.com/
10095
[Codecov]: https://codecov.io/gh/junit-team/junit5
10196
[CONTRIBUTING.md]: https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md
10297
[Dependency Metadata]: https://junit.org/junit5/docs/current/user-guide/#dependency-metadata
@@ -106,10 +101,7 @@ See also <https://repo1.maven.org/maven2/org/junit/> for releases and
106101
[JaCoCo]: https://www.eclemma.org/jacoco/
107102
[Javadoc]: https://junit.org/junit5/docs/current/api/
108103
[JDK 17]: https://adoptium.net/archive.html?variant=openjdk17&jvmVariant=hotspot
109-
[Liberica]: https://bell-sw.com/pages/downloads/
110104
[Release Notes]: https://junit.org/junit5/docs/current/release-notes/
111105
[Samples]: https://github.com/junit-team/junit5-samples
112-
[SDKMAN!]: https://sdkman.io/jdks
113106
[StackOverflow]: https://stackoverflow.com/questions/tagged/junit5
114107
[User Guide]: https://junit.org/junit5/docs/current/user-guide/
115-
[Zulu]: https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk#download-openjdk

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pluginManagement {
77
plugins {
88
id("com.gradle.enterprise") version "3.11.2" // keep in sync with buildSrc/build.gradle.kts
99
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.8.2"
10+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
1011
id("org.ajoberstar.git-publish") version "4.1.1"
1112
kotlin("jvm") version "1.5.31"
1213
// Check if workaround in documentation.gradle.kts can be removed when upgrading
@@ -21,6 +22,7 @@ pluginManagement {
2122
plugins {
2223
id("com.gradle.enterprise")
2324
id("com.gradle.common-custom-user-data-gradle-plugin")
25+
id("org.gradle.toolchains.foojay-resolver-convention")
2426
}
2527

2628
dependencyResolutionManagement {

0 commit comments

Comments
 (0)