-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
135 lines (114 loc) · 3.5 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
}
maven {
url = "https://plugins.gradle.org/m2/"
}
maven {
name 'FancyGradle'
url 'https://gitlab.com/api/v4/projects/26758973/packages/maven'
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:5.1.69'
classpath group: 'wtf.gofancy.fancygradle', name: 'wtf.gofancy.fancygradle.gradle.plugin', version: '1.1.+'
}
}
plugins {
id "com.github.hierynomus.license" version "0.16.1"
}
apply plugin: 'java'
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'wtf.gofancy.fancygradle'
fancyGradle {
patches {
resources
coremods
codeChickenLib
asm
}
}
version = "0.10.15-1.12.2"
group= "pl.asie.foamfix" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "foamfix"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
minecraft {
mappings channel: "stable", version: "39-1.12"
runs {
client {
workingDirectory project.file('run')
jvmArgs '-Dfml.coreMods.load=pl.asie.foamfix.coremod.FoamFixCore'
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
foamfix {
source sourceSets.main
}
}
}
server {
jvmArgs '-Dfml.coreMods.load=pl.asie.foamfix.coremod.FoamFixCore'
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
foamfix {
source sourceSets.main
}
}
}
}
accessTransformer = file('src/main/resources/foamfix_at.cfg')
}
repositories {
mavenCentral()
}
license {
/* sourceSets = [project.sourceSets.main] */
header = project.file("docs/licenses/COPYING")
ignoreFailures = true
exclude '***.lang'
exclude '***.info'
exclude '***.mcmeta'
matching('**pl/asie/foamfix/api**') {
header = project.file("docs/licenses/LICENSE-API")
}
matching('**pl/asie/foamfix/common/WorldNuller.java') {
header = project.file("docs/licenses/LICENSE-neptunepink")
}
}
repositories {
maven {
name 'DVS1 Maven FS'
url 'https://dvs1.progwml6.com/files/maven'
}
}
dependencies {
minecraft "net.minecraftforge:forge:1.12.2-14.23.5.2860"
compileOnly fg.deobf("mezz.jei:jei_1.12.2:4.15.0.291")
compileOnly "org.openjdk.jmh:jmh-generator-annprocess:1.20"
}
processResources {
inputs.property "version", "${project.version}"
inputs.property "mcversion", "1.12.2"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
filesMatching(['mcmod.info']) {
expand 'version':"${project.version}", 'mcversion':'1.12.2'
}
}
jar {
exclude("META-INF/BenchmarkList")
exclude("META-INF/CompilerHints")
exclude("assets/foamfix/flamingo.png")
exclude("pl/asie/foamfix/client/dolphin")
exclude("pl/asie/foamfix/tests")
exclude("foamfix_at.cfg")
manifest {
attributes FMLCorePlugin: "pl.asie.foamfix.coremod.FoamFixCore"
attributes FMLCorePluginContainsFMLMod: "true"
}
}