Skip to content

Commit

Permalink
Properly disable transitive deps
Browse files Browse the repository at this point in the history
  • Loading branch information
LexManos committed Mar 18, 2024
1 parent 27d7601 commit 75c62ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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
Expand All @@ -73,15 +76,15 @@ 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
developer PomUtils.Developers.LexManos
}
}
}

repositories {
maven gradleutils.publishingForgeMaven
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75c62ac

Please sign in to comment.