aboutsummaryrefslogtreecommitdiff
path: root/project.gradle
blob: 79d43ced35f236806aaa2ea292edd6fbdc6914be (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
38
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 {
    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"