From 1ed59fd3ea944b7e7d7b65dc8a5e2247cc1c6246 Mon Sep 17 00:00:00 2001 From: Matyrobbrt Date: Tue, 27 Aug 2024 12:30:25 +0300 Subject: [PATCH] Update JCC and only consider same minors valid --- projects/neoforge/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/neoforge/build.gradle b/projects/neoforge/build.gradle index bbfeefbeb9..4e9462a06f 100644 --- a/projects/neoforge/build.gradle +++ b/projects/neoforge/build.gradle @@ -1,10 +1,11 @@ import net.neoforged.jarcompatibilitychecker.gradle.JCCPlugin +import net.neoforged.jarcompatibilitychecker.gradle.CompatibilityTask import net.neoforged.jarcompatibilitychecker.gradle.ProvideNeoForgeJarTask plugins { id 'java-library' id 'maven-publish' - id 'net.neoforged.jarcompatibilitychecker' version '0.1.9' + id 'net.neoforged.jarcompatibilitychecker' version '0.1.10' } rootProject.gradleutils.setupSigning(project: project, signAllPublications: true) @@ -16,7 +17,8 @@ dynamicProject { } final checkVersion = JCCPlugin.providePreviousVersion( - project.providers, project.providers.provider({['https://maven.neoforged.net/releases']}), project.providers.provider({'net.neoforged:neoforge'}) + project.providers, project.providers.provider({['https://maven.neoforged.net/releases']}), project.providers.provider({'net.neoforged:neoforge'}), + project.provider { project.version }.map { ver -> CompatibilityTask.VersionComponentTest.MINOR.predicate(ver) } ) final createCompatJar = tasks.register('createCompatibilityCheckJar', ProvideNeoForgeJarTask) { // Use the same jar that the patches were generated against