generated from TeamGensouSpark/LunarCapitalFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
65 lines (61 loc) · 2.34 KB
/
settings.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
//Based on tde
pluginManagement {
repositories {
if (use_mirror.toBoolean() || gradle.startParameter.taskNames[0] == "MirrorSetup") {
removeIf {
it instanceof MavenArtifactRepository &&
(it.url.toString() == "https://repo.maven.apache.org/maven2/")
}
maven {
name 'Ali Mirror Maven'
url "https://maven.aliyun.com/nexus/content/groups/public"
allowInsecureProtocol = true
}
maven {
name 'MC Mirror Maven'
url "https://${mirror_maven_url}"
allowInsecureProtocol = true
}
//more mirror maven add here,in order to search plugins
}
maven {
// RetroFuturaGradle
name 'GTNH Maven'
url 'http://jenkins.usrv.eu:8081/nexus/content/groups/public/'
allowInsecureProtocol = true
mavenContent {
includeGroup 'com.gtnewhorizons'
includeGroup 'com.gtnewhorizons.retrofuturagradle'
}
}
gradlePluginPortal()
mavenLocal()
mavenCentral()
}
}
plugins {
// Automatic toolchain provisioning
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.4.0'
}
// Due to an IntelliJ bug, this has to be done
// rootProject.name = archives_base_name
rootProject.name = rootProject.projectDir.getName()
println """
Java Version: ${System.getProperty 'java.version'} ${System.getProperty 'os.arch'} VM ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'})
JAVA_HOME:${System.getenv 'JAVA_HOME'}
Java Path: ${System.getProperty 'java.home'}
"""
def javaEdition = "DK"
def javac = System.getProperty('os.name').toLowerCase(Locale.ENGLISH).contains("windows") ? "\\..\\bin\\javac.exe" : "/../bin/javac"
if (!file(System.getProperty('java.home') + javac).exists()) {
javaEdition = "RE"
}
if (!System.getProperty('java.version').startsWith("1.8.") || javaEdition == "RE") {
"""
LISTEN: YOU ARE USEING THE [ J${javaEdition} ${System.getProperty('java.version')} ],PLEASE USE JDK 1.8 (NOT JRE 1.8),REMEMBER THAT JAVA_HOME MUST POINT TO JDK 1.8
!!!! SEE HOW TO CONFIGUTURE YOUR JAVA_HOME !!!!
""".with {
println it
throw new RuntimeException(it)
}
}