From 75c62ac2b2b68854b5802c856a1ba4627da0f0a1 Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 18 Mar 2024 08:40:51 -0700 Subject: [PATCH] Properly disable transitive deps --- build.gradle | 15 +++++++++------ .../forgespi/coremod/ICoreModProvider.java | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index feaf53c..c423b5c 100644 --- a/build.gradle +++ b/build.gradle @@ -45,10 +45,6 @@ tasks.named('jar', Jar).configure { } } -configurations { - implementation { transitive false } - api { transitive false } -} dependencies { implementation('org.apache.logging.log4j:log4j-api:2.17.0') @@ -64,6 +60,13 @@ dependencies { api('net.minecraftforge:mergetool-api:1.0') } +// Done down here so that it gets populdted into the pom/module file. +configurations.all { + dependencies.all { + transitive false + } +} + publishing { publications.register('mavenJava', MavenPublication) { from components.java @@ -73,7 +76,7 @@ publishing { description = 'API for services which can plug into forge, or which are used by forge in other places' url = 'https://github.com/MinecraftForge/ForgeSPI' PomUtils.setGitHubDetails(pom, 'ForgeSPI') - + license PomUtils.Licenses.LGPLv2_1 developers { developer PomUtils.Developers.cpw @@ -81,7 +84,7 @@ publishing { } } } - + repositories { maven gradleutils.publishingForgeMaven } diff --git a/src/main/java/net/minecraftforge/forgespi/coremod/ICoreModProvider.java b/src/main/java/net/minecraftforge/forgespi/coremod/ICoreModProvider.java index bfa43de..8865507 100644 --- a/src/main/java/net/minecraftforge/forgespi/coremod/ICoreModProvider.java +++ b/src/main/java/net/minecraftforge/forgespi/coremod/ICoreModProvider.java @@ -4,9 +4,9 @@ */ package net.minecraftforge.forgespi.coremod; -import cpw.mods.modlauncher.api.*; +import java.util.List; -import java.util.*; +import cpw.mods.modlauncher.api.ITransformer; /** * Core Mod Provider - core mod logic is implemented