MatterLink/build.gradle

73 lines
1.6 KiB
Groovy
Raw Permalink Normal View History

2018-07-11 21:29:02 +00:00
buildscript {
repositories {
jcenter()
}
dependencies {
classpath group: "org.jetbrains.kotlin", name: "kotlin-gradle-plugin", version: kotlinVersion
classpath group: "org.jetbrains.kotlin", name: "kotlin-serialization", version: kotlinVersion
2018-07-11 21:29:02 +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
}
subprojects {
2018-02-10 02:19:01 +00:00
apply plugin: "kotlin"
apply plugin: "kotlinx-serialization"
apply plugin: "idea"
2018-02-10 02:19:01 +00:00
if (System.env.BUILD_NUMBER) {
modVersion += "-${System.env.BUILD_NUMBER}"
2018-02-18 23:19:13 +00:00
} else if (!project.hasProperty('release')) {
// 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 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
}
}
repositories {
jcenter()
mavenCentral()
maven {
name = "bintray"
url = "http://jcenter.bintray.com"
}
maven {
name = "jitpack"
url = "https://jitpack.io"
}
maven {
name = "kotlinx"
url = "https://kotlin.bintray.com/kotlinx/"
}
// maven {
// name = "elytradev"
// // url = 'http://unascribed.com/maven/releases'
// url = "https://repo.elytradev.com"
// }
maven {
name = "shadowfacts"
url = "http://maven.shadowfacts.net/"
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
}