-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
74 lines (61 loc) · 2.11 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
buildscript {
repositories {
maven {
url = 'https://maven.minecraftforge.net/'
}
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
version = "${mod_version}"
group = "net.theawesomegem.fishingmadebetter" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "FishingMadeBetter-1.12.2"
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
minecraft {
mappings channel: mappings_channel, version: mappings_version
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories {
maven {
url = "https://www.cursemaven.com"
}
maven {
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
name = "ModMaven"
url = "https://modmaven.dev"
}
}
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
compileOnly fg.deobf("mezz.jei:jei_${minecraft_version}:${jei_version}:api")
runtimeOnly fg.deobf("mezz.jei:jei_${minecraft_version}:${jei_version}")
implementation fg.deobf("curse.maven:levelup-${levelup_version}")
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", minecraft_version
filesMatching('mcmod.info') {
expand 'mod_id': mod_id, 'mod_name': mod_name, 'version': project.version,
'mcversion': minecraft_version, 'mod_description': mod_description,
'mod_author': mod_author
}
}
jar {
manifest {
attributes([
"Specification-Title" : mod_name,
"Specification-Version" : "1",
"Implementation-Title" : mod_name,
"Implementation-Version" : mod_version,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
jar.finalizedBy('reobfJar')