2018-02-09 20:50:22 +00:00
|
|
|
plugins {
|
2018-02-10 02:29:56 +00:00
|
|
|
id "org.jetbrains.kotlin.jvm" version '1.2.21'
|
2018-02-09 20:50:22 +00:00
|
|
|
id 'idea'
|
2018-01-19 22:19:56 +00:00
|
|
|
}
|
|
|
|
|
2018-02-09 20:50:22 +00:00
|
|
|
subprojects {
|
2018-02-10 02:19:01 +00:00
|
|
|
apply plugin: "kotlin"
|
2018-02-10 18:05:10 +00:00
|
|
|
apply plugin: "idea"
|
2018-02-10 02:19:01 +00:00
|
|
|
|
2018-02-11 16:23:52 +00:00
|
|
|
if (project.hasProperty('build_number')) {
|
|
|
|
mod_version += "-build-$build_number"
|
2018-02-18 23:19:13 +00:00
|
|
|
} else if (!project.hasProperty('release')) {
|
2018-02-11 16:23:52 +00:00
|
|
|
mod_version += "-dev"
|
|
|
|
}
|
|
|
|
|
2018-02-10 19:50:13 +00:00
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
excludeDirs += [file("run")]
|
2018-02-10 18:05:10 +00:00
|
|
|
}
|
2018-02-10 19:50:13 +00:00
|
|
|
}
|
2018-02-10 02:19:01 +00:00
|
|
|
|
2018-02-10 19:50:13 +00:00
|
|
|
if (name != "core") {
|
2018-02-12 20:44:03 +00:00
|
|
|
|
2018-02-10 02:19:01 +00:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
maven {
|
2018-02-10 19:50:13 +00:00
|
|
|
name = "unascribed"
|
2018-02-10 02:19:01 +00:00
|
|
|
url = 'http://unascribed.com/maven/releases'
|
|
|
|
}
|
|
|
|
maven {
|
2018-02-10 19:50:13 +00:00
|
|
|
name = "shadowfacts"
|
|
|
|
url = "http://maven.shadowfacts.net/"
|
2018-02-10 02:19:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-01-21 05:18:59 +00:00
|
|
|
}
|