From ed391d7c76465de5a0830542c0688dea7e04e693 Mon Sep 17 00:00:00 2001 From: Demeng7215 <43016355+demengc@users.noreply.github.com> Date: Tue, 29 Jul 2025 12:33:18 -0400 Subject: [PATCH] Auto-discover JDK toolchain instead of requiring explicit toolchains.xml - Fix JitPack builds and streamline collaboration by automatically discovering and selecting a JDK toolchain with JDK version testJava (or above) - Explicit toolchain declaration in ~/.m2/toolchains.xml is no longer required --- pom.xml | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/pom.xml b/pom.xml index 22d432dd..3754fc13 100644 --- a/pom.xml +++ b/pom.xml @@ -22,8 +22,8 @@ --> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.github.cryptomorin @@ -133,16 +133,13 @@ validate - toolchain + display-discovered-jdk-toolchains + select-jdk-toolchain - - - [${testJava}] - - + [${testJava},) @@ -415,21 +412,21 @@ true central - - + + - - - - - - - - - - - + + + + + + + + + + +