generated from Zelaux/ZelauxMindustryModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsettings.gradle.kts
38 lines (30 loc) · 1.06 KB
/
settings.gradle.kts
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
import groovy.lang.Closure
pluginManagement {
repositories {
gradlePluginPortal()
maven("https://raw.githubusercontent.com/GlennFolker/EntityAnnoMaven/main")
}
plugins {
val entVersion: String by settings
id("com.github.GlennFolker.EntityAnno") version (entVersion)
}
}
if (JavaVersion.current().ordinal < JavaVersion.VERSION_17.ordinal) {
throw IllegalStateException("JDK 17 is a required minimum version. Yours: ${System.getProperty("java.version")}")
}
include("annotations")
val localprop = java.util.Properties()
if (file("local.properties").exists()) localprop.load(file("local.properties").reader())
val asmLibPath = localprop["asm_lib_path"]
if (asmLibPath != null) {
println("Loading local AsmLib")
val root = file(asmLibPath)
val includeSelfPath = File(root, "includeSelf.gradle").canonicalPath
apply {
from(includeSelfPath)
}
(extra["includeSelf"] as Closure<*>).call(root)
//added in includeSelf, then autodeleted
}
val modName: String by settings
rootProject.name = modName