-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
89 lines (77 loc) · 2.14 KB
/
build.gradle
File metadata and controls
89 lines (77 loc) · 2.14 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "https://files.minecraftforge.net/maven"
}
maven {
name = "sponge"
url = "https://repo.spongepowered.org/maven"
}
maven {
url = "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:3.+"
classpath "org.spongepowered:mixingradle:0.7-SNAPSHOT"
}
}
plugins {
id 'org.spongepowered.plugin' version '0.9.0'
}
apply plugin: "net.minecraftforge.gradle"
apply plugin: "org.spongepowered.mixin"
version = modVersion
group = modGroup
archivesBaseName = modBaseName
sourceCompatibility = targetCompatibility = 1.8
compileJava.options.encoding = compileTestJava.options.encoding = "UTF-8"
minecraft {
mappings channel: "stable", version: "39-1.12"
}
sponge {
plugin {
meta {
id = "cnpc-ntrpg"
version = modVersion
}
}
}
repositories {
mavenCentral()
maven { url = "https://jitpack.io" }
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
}
dependencies {
minecraft "net.minecraftforge:forge:" + project.forgeVersion
implementation("org.spongepowered:spongeforge:" + project.spongeForgeVersion + ":dev") {
exclude module: "testmods"
}
implementation "com.github.Sponge-RPG-dev.NT-RPG:Sponge-7:30.5.2020SpongeSpigot"
implementation fileTree("$projectDir/libs")
}
/*configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 10, "minutes"
resolutionStrategy.cacheChangingModulesFor 10, "minutes"
}*/
// Comment out for non-mixin build
jar {
manifest {
attributes(
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
"TweakOrder": 0,
"MixinConfigs": "mixins.cnpcntrpg.json",
"FMLCorePluginContainsFMLMod": "true",
"ForceLoadAsMod": "true",
"FMLAT": "cnpcs_at.cfg"
)
}
}
sourceSets {
main {
ext.refMap = "mixins.cnpcntrpg.refmap.json"
}
}
jar.finalizedBy("reobfJar")