Skip to content

Commit

Permalink
build: Update gradle files based on latest balm-mod template
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Dec 28, 2023
1 parent a38a797 commit 8acba15
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 24 deletions.
26 changes: 4 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT' apply(false)
id 'fabric-loom' version '1.4-SNAPSHOT' apply(false)
// id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT' apply(false) // this causes ForgeGradle to fail in reobf
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.7" // this is required for VanillaGradle and NeoForge to exist in harmony
id 'org.spongepowered.mixin' version '0.7-SNAPSHOT' apply(false)
id 'net.darkhax.curseforgegradle' version '1.1.16' apply(false)
id 'net.darkhax.curseforgegradle' version '1.1.18' apply(false)
id "com.modrinth.minotaur" version "2.+" apply(false)
}

Expand Down Expand Up @@ -39,29 +39,11 @@ subprojects {
repositories {
mavenCentral()

maven {
url "https://www.cursemaven.com"

content {
includeGroup 'curse.maven'
}
}

maven { url "https://maven.twelveiterations.com/repository/maven-public/" }

// For Cloth Config and REI
maven { url "https://maven.shedaniel.me/" }

// For JEI
maven { url "https://dvs1.progwml6.com/files/maven/" }

// For WTHIT
maven { url "https://maven.bai.lol" }

// For ModMenu
maven { url "https://maven.terraformersmc.com/releases/" }
}

apply from: rootProject.file('repositories.gradle')

tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.getRelease().set(java_version.toInteger())
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ loom {
runDir("build/datagen")

vmArg "-Dfabric-api.datagen"
vmArg "-Dfabric-api.datagen.output-dir=${project(":shared").file("src/main/generated")}"
vmArg "-Dfabric-api.datagen.output-dir=${project(":shared").file("src/generated/resources")}"
vmArg "-Dfabric-api.datagen.modid=${mod_id}"
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
59 changes: 59 additions & 0 deletions repositories.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
repositories {
maven {
url = "https://www.cursemaven.com"
content {
includeGroup 'curse.maven'
}
}

maven {
url = "https://maven.shedaniel.me/"
content {
includeGroup "me.shedaniel"
includeGroup "me.shedaniel.cloth"
includeGroup "dev.architectury"
}
}

maven {
url = "https://maven.blamejared.com"
content {
includeGroup "mezz.jei"
}
}

maven {
url = "https://maven.bai.lol"
content {
includeGroup "mcp.mobius.waila"
}
}

maven {
url = "https://maven.terraformersmc.com/releases"
content {
includeGroup "com.terraformersmc"
}
}

maven {
url = "https://jm.gserv.me/repository/maven-public/"
content {
includeGroup "info.journeymap"
}
}

maven {
url = 'https://jitpack.io'
content {
includeGroup "com.github.BlueMap-Minecraft"
}
}

maven {
url = "https://repo.mikeprimm.com/"
content {
includeGroup "us.dynmap"
}
}
}
2 changes: 2 additions & 0 deletions shared/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ dependencies {

apply from: 'dependencies.gradle'

sourceSets.main.resources.srcDir('src/generated/resources')

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down

0 comments on commit 8acba15

Please sign in to comment.