2018-07-11 21:29:02 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
2018-08-16 21:52:11 +00:00
|
|
|
classpath group: "org.jetbrains.kotlin", name: "kotlin-gradle-plugin", version: kotlinVersion
|
2018-07-11 21:29:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-09 20:50:22 +00:00
|
|
|
plugins {
|
|
|
|
id 'idea'
|
2018-07-19 14:25:11 +00:00
|
|
|
id "org.sonarqube" version "2.6.2"
|
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-04-15 17:57:19 +00:00
|
|
|
if (System.env.BUILD_NUMBER) {
|
2018-08-16 21:52:11 +00:00
|
|
|
modVersion += "-${System.env.BUILD_NUMBER}"
|
2018-02-18 23:19:13 +00:00
|
|
|
} else if (!project.hasProperty('release')) {
|
2018-08-16 21:52:11 +00:00
|
|
|
// modVersion += "-dev"
|
|
|
|
modVersion += "-dev"
|
2018-02-11 16:23:52 +00:00
|
|
|
}
|
|
|
|
|
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-08-08 18:06:18 +00:00
|
|
|
if (name == 'Jankson') {
|
2018-07-19 14:48:47 +00:00
|
|
|
sonarqube {
|
|
|
|
skipProject = true
|
|
|
|
}
|
|
|
|
}
|
2018-05-24 01:45:17 +00:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
2018-08-16 21:52:11 +00:00
|
|
|
maven {
|
|
|
|
name = "bintray"
|
|
|
|
url = 'http://jcenter.bintray.com'
|
|
|
|
}
|
2018-05-24 01:45:17 +00:00
|
|
|
maven {
|
2018-08-14 19:53:01 +00:00
|
|
|
name = "elytradev"
|
2018-05-24 01:45:17 +00:00
|
|
|
url = 'http://unascribed.com/maven/releases'
|
2018-08-14 19:53:01 +00:00
|
|
|
url = 'https://repo.elytradev.com'
|
2018-05-24 01:45:17 +00:00
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "shadowfacts"
|
|
|
|
url = "http://maven.shadowfacts.net/"
|
2018-02-10 02:19:01 +00:00
|
|
|
}
|
2018-07-11 21:29:02 +00:00
|
|
|
ivy {
|
|
|
|
//Resolves baubles and jankson
|
|
|
|
name = "endless.blue dependency mirror"
|
|
|
|
artifactPattern "https://endless.blue/files/ivy/[module]-[revision].[ext]"
|
|
|
|
}
|
2018-02-10 02:19:01 +00:00
|
|
|
}
|
2018-08-08 18:06:18 +00:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
2018-01-21 05:18:59 +00:00
|
|
|
}
|