forked from TeamOpenIndustry/ImmersiveRailroading
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.gradle
54 lines (44 loc) · 1.5 KB
/
template.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
//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 = "cam72cam.immersiverailroading"
archivesBaseName = "ImmersiveRailroading"
//MINECRAFT//
//DEPENDENCIES//
apply from: 'ImmersiveRailroadingIntegration/dependencies.gradle'
//JAR//
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "sftp://teamopenindustry.cc:22/var/www/html/maven/"
credentials {
username = "mavenci"
password = System.getenv("MAVENCI_PASS")
}
}
}
}
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/immersiverailroading/ImmersiveRailroading/${version}/ImmersiveRailroading-${version}.jar")
System.out.println("https://teamopenindustry.cc/maven/cam72cam/universalmodcore/UniversalModCore/${umcVersionString}/UniversalModCore-${umcVersionString}.jar")
}
}
publish.finalizedBy showBuildInfo