Skip to content

Commit

Permalink
fix runClient
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern authored and makamys committed Nov 25, 2023
1 parent 37e900e commit fc1f694
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
3 changes: 2 additions & 1 deletion buildscript/forge-1.7-mixin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ dependencies {
setTransitive false
}
} else {
compile('org.spongepowered:mixin:0.7.11-SNAPSHOT'){
implementation('org.spongepowered:mixin:0.7.11-SNAPSHOT'){
setTransitive false
}
}
annotationProcessor('org.spongepowered:mixin:0.7.11-SNAPSHOT')
}

ext.outRefMapFile = "${tasks.compileJava.temporaryDir}/${project.modid}.mixin.refmap.json"
Expand Down
9 changes: 7 additions & 2 deletions buildscript/forge-1.7.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
//Needed for forge userdev on gradle 6
maven {
name = "Overmind forge repo mirror"
url = "https://gregtech.overminddl1.com/"
}
maven {
name = "chickenbones"
url = "http://chickenbones.net/maven/"
Expand All @@ -46,9 +51,9 @@ repositories {

configurations {
embed
compile.extendsFrom(embed)
implementation.extendsFrom(embed)
shade
compile.extendsFrom(shade)
implementation.extendsFrom(shade)
}

if(project.enable_mixin.toBoolean()) {
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-4.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
17 changes: 17 additions & 0 deletions project.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import java.nio.file.Paths

jar {
manifest {
attributes (
'MixinConfigs': "${modid}.mixin.json,${modid}-init.mixin.json",
'FMLAT': "neodymium_at.cfg"
)
}
exclude("META-INF/**.RSA")
}

repositories {
Expand All @@ -17,5 +20,19 @@ dependencies {
compileOnly("com.falsepattern:triangulator-mc1.7.10:1.7.0:api")
}

runClient {
def arguments = []

arguments += [
"--mods=" + Paths.get("$projectDir").resolve(minecraft.runDir).normalize().relativize(Paths.get("$projectDir/build/libs/$archivesBaseName-${version}.jar"))
]

arguments += [
"--tweakClass", "org.spongepowered.asm.launch.MixinTweaker"
]

args(arguments)
}

apply from: "makalibs.gradle"

0 comments on commit fc1f694

Please sign in to comment.