Skip to content

Commit

Permalink
Build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Dec 4, 2023
1 parent 462183c commit 7afb9f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
16 changes: 3 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import net.fabricmc.loom.task.AbstractRunTask
import org.gradlex.javaecosystem.capabilities.rules.GuavaListenableFutureRule

plugins {
val indraVer = "3.1.3"
id("net.kyori.indra") version indraVer
id("net.kyori.indra.publishing") version indraVer
id("net.kyori.indra.publishing.sonatype") version indraVer
id("net.kyori.indra.license-header") version indraVer
id("dev.architectury.loom") version "1.4-SNAPSHOT"
id("xyz.jpenilla.quiet-architectury-loom") version "1.4-SNAPSHOT"
}

repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://maven.neoforged.net/releases/")
}

Expand All @@ -27,18 +28,7 @@ val transitiveInclude: Configuration by configurations.creating {
exclude("org.apiguardian")
}

loom.silentMojangMappingsLicense()

dependencies {
components.withModule(GuavaListenableFutureRule.MODULES[0]) {
// Ad-hoc rule to revert the effect of 'GuavaListenableFutureRule' (NeoForge has broken dependencies)
allVariants {
withCapabilities {
removeCapability(GuavaListenableFutureRule.CAPABILITY_GROUP, GuavaListenableFutureRule.CAPABILITY_NAME)
}
}
}

minecraft("com.mojang:minecraft:1.20.2")
mappings(loom.officialMojangMappings())
neoForge("net.neoforged", "neoforge", "20.2.86")
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://maven.fabricmc.net/")
maven("https://maven.neoforged.net/releases/")
maven("https://maven.architectury.dev/")
maven("https://repo.jpenilla.xyz/snapshots/")
}
}

Expand Down

0 comments on commit 7afb9f7

Please sign in to comment.