MatterLink/build.gradle

63 lines
1.6 KiB
Groovy
Raw Normal View History

plugins {
2018-02-10 02:29:56 +00:00
id "org.jetbrains.kotlin.jvm" version '1.2.21'
2018-02-12 20:44:03 +00:00
id 'com.matthewprenger.cursegradle' version '1.0.10'
id 'idea'
2018-01-19 22:19:56 +00:00
}
subprojects {
2018-02-10 02:19:01 +00:00
apply plugin: "kotlin"
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 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-02-10 19:06:42 +00:00
2018-02-14 05:00:47 +00:00
version = mc_version + "-" + mod_version
2018-02-14 05:26:12 +00:00
2018-02-12 20:44:03 +00:00
apply plugin: 'com.matthewprenger.cursegradle'
curseforge {
if (project.hasProperty('CURSEFORGE_API_TOKEN') && project.hasProperty('release')) {
apiKey = CURSEFORGE_API_TOKEN
}
project {
id = '287323'
releaseType = 'beta'
2018-02-18 23:19:13 +00:00
if (project.hasProperty('changelog_file')) {
2018-02-14 05:26:12 +00:00
println("changelog = $changelog_file")
changelogType = "markdown"
2018-02-14 05:26:12 +00:00
changelog = file(changelog_file)
}
2018-02-12 20:44:03 +00:00
relations {
requiredLibrary 'shadowfacts-forgelin'
}
mainArtifact(jar) {
2018-02-14 05:00:47 +00:00
displayName = "MatterLink $version"
}
2018-02-12 20:44:03 +00:00
}
}
2018-02-10 02:19:01 +00:00
}
2018-01-21 05:18:59 +00:00
}