MatterLink/build.gradle

62 lines
1.3 KiB
Groovy
Raw 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: kotlin_version
}
}
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: "idea"
2018-02-10 02:19:01 +00:00
if (System.env.BUILD_NUMBER) {
mod_version += "-${System.env.BUILD_NUMBER}"
2018-02-18 23:19:13 +00:00
} else if (!project.hasProperty('release')) {
2018-07-15 15:18:06 +00:00
// mod_version += "-dev"
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-08-08 18:06:18 +00:00
if (name == 'Jankson') {
2018-07-19 14:48:47 +00:00
sonarqube {
skipProject = true
}
}
repositories {
jcenter()
maven {
name = "unascribed"
url = 'http://unascribed.com/maven/releases'
}
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
}