-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
75 lines (65 loc) · 2.47 KB
/
build.gradle
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
jcenter()
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1+', changing: true
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.4.0"
classpath group: 'gradle.plugin.com.modrinth.minotaur', name: 'Minotaur', version: '1.2.1'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'maven-publish'
apply plugin: 'maven'
apply plugin: 'org.spongepowered.mixin'
version = "${mc_version}-${mod_version}-forge"
group = "com.telepathicgrunt"
archivesBaseName = "${modid}"
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
minecraft {
mappings channel: "official", version: "1.16.5"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
//accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file('run')
arg '-mixin.config=' + project.getProperty('modid') + '.mixins.json'
property 'mixin.env.disableRefMap', 'true'
mods { blame { source sourceSets.main } }
}
server {
workingDirectory project.file('run')
arg '-mixin.config=' + project.getProperty('modid') + '.mixins.json'
property 'mixin.env.disableRefMap', 'true'
mods { blame { source sourceSets.main } }
}
}
}
repositories{
flatDir {
dirs 'deps'
}
}
dependencies {
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
if (System.getProperty("idea.sync.active") != "true") {
annotationProcessor 'org.spongepowered:mixin:0.8.2:processor'
}
//implementation fg.deobf("ignored:AutoRegLib:1.6-47")
//implementation fg.deobf("ignored:Quark-r2.4:303")
}
mixin {
add sourceSets.main, "${modid}.refmap.json"
}
apply from: 'gradle/processresources.gradle'
apply from: 'gradle/manifest.gradle'
apply from: 'gradle/maven.gradle'
apply from: 'gradle/curseforge.gradle'
apply from: 'gradle/modrinth.gradle'
task buildAndRelease{}
tasks.buildAndRelease.dependsOn(tasks.build, tasks.publish, tasks.curseforge, tasks.publishModrinth)