Skip to content

Commit

Permalink
build: Add Java toolchain resolver (#1169)
Browse files Browse the repository at this point in the history
Without this an initial build on a machine with no JDK installed can
fail with

```
A problem occurred configuring project ':feature:about'.
> Could not resolve all dependencies for configuration 'classpath'.
   > Could not resolve project :markdown2resource.
     Required by:
         project :feature:about
      > Failed to calculate the value of task ':markdown2resource:compileJava' property 'javaCompiler'.
         > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any vendor, implementation=vendor-specific} for WINDOWS on x86_64.
            > No locally installed toolchains match and toolchain download repositories have not been configured.
```
  • Loading branch information
nikclayton authored Dec 12, 2024
1 parent 002ad8e commit 3000525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/markdown2resource/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ dependencyResolutionManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version ("0.8.0")
}

rootProject.name = "markdown2resource-plugin"
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencyResolutionManagement {

plugins {
id("com.gradle.develocity") version "3.18.2"
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}

develocity {
Expand Down

0 comments on commit 3000525

Please sign in to comment.