-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.gradle
More file actions
34 lines (26 loc) · 917 Bytes
/
Copy pathtemplate.gradle
File metadata and controls
34 lines (26 loc) · 917 Bytes
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
//BUILDSCRIPT//
//PLUGINS//
apply plugin: 'maven-publish'
version = '#MINECRAFT#-#LOADER#-#VERSION#'
if (!"release".equalsIgnoreCase(System.getProperty("target"))) {
try {
version += "-" + 'git rev-parse --verify --short=7 HEAD'.execute().text.trim()
} catch (Exception ex) {
version += "-unknown"
}
}
group = "poizzy.railworks.railworks"
archivesBaseName = "RailWorks"
//MINECRAFT//
//DEPENDENCIES//
//JAR//
task('showBuildInfo') {
doLast {
String minecraftString = "#MINECRAFT#"
String minecraftLoader = "#LOADER#"
String umcVersionString = "#MINECRAFT#-#LOADER#-#UMC_VERSION#"
System.out.println("Build for MC #MINECRAFT# (#LOADER#)")
System.out.println("https://teamopenindustry.cc/maven/cam72cam/universalmodcore/UniversalModCore/${umcVersionString}/UniversalModCore-${umcVersionString}.jar")
}
}
build.finalizedBy showBuildInfo