-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (68 loc) · 2.02 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
//file:noinspection GroovyAssignabilityCheck
//file:noinspection GrUnresolvedAccess
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:5.1.+"
}
}
apply plugin: "net.minecraftforge.gradle"
ext {
bteUtilVersionMajor = "2.2"
bteUtilVersion = "$bteUtilVersionMajor." + ('git rev-list --count HEAD'.execute().text.trim())
mcpMappingsVersion = "39-1.12"
forgeVersion = "14.23.5.2860"
minecraftVersion = "1.12.2"
gsonVersion = "2.9.0"
junixSocketVersion = "2.4.0"
lombokVersion = "1.18.22"
}
version = "$bteUtilVersion"
group = "net.buildtheearth"
repositories {
mavenCentral()
}
configurations {
shade
implementation.extendsFrom(shade)
}
dependencies {
minecraft "net.minecraftforge:forge:$minecraftVersion-$forgeVersion"
implementation "com.google.code.gson:gson:$gsonVersion"
shade "com.kohlschutter.junixsocket:junixsocket-common:$junixSocketVersion"
shade "com.kohlschutter.junixsocket:junixsocket-native-common:$junixSocketVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
}
minecraft {
mappings channel: 'stable', version: "$mcpMappingsVersion"
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
}
}
}
processResources {
duplicatesStrategy DuplicatesStrategy.INCLUDE
inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version': project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
jar {
duplicatesStrategy DuplicatesStrategy.INCLUDE
from {
configurations.shade.collect {
it.isDirectory() ? it : zipTree(it)
}.unique()
}
}