aboutsummaryrefslogtreecommitdiff
path: root/project.gradle
blob: 271901be3f85ebd3ddbe1e2d25204f10a5bdc274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.nio.file.Paths

jar {
    manifest {
        attributes (
            'MixinConfigs': "${modid}.mixin.json,${modid}-init.mixin.json",
            'FMLAT': "neodymium_at.cfg"
        )
    }
}

repositories {
    maven {
        url = "https://mvn.falsepattern.com/releases"
    }
}

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"