Updated dependencies.

This commit is contained in:
Erik C. Thauvin 2019-07-25 01:46:05 -07:00
parent ebc5b66fac
commit 17b5ceaaf6
10 changed files with 56 additions and 36 deletions

View file

@ -8,18 +8,22 @@ plugins {
id("com.github.ben-manes.versions") version "0.21.0"
id("com.gradle.build-scan") version "2.3"
id("com.gradle.plugin-publish") version "0.10.1"
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14"
id("org.jmailen.kotlinter") version "1.25.2"
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14" // don't update until kotlin 1.3.401 is supported by Gradle
id("org.jmailen.kotlinter") version "1.26.0" // don't update until kotlin 1.3.41 supported by Gradle
id("org.sonarqube") version "2.7.1"
kotlin("jvm") version "1.3.31"
}
version = "1.0.2"
version = "1.0.3-beta"
group = "net.thauvin.erik.gradle"
var github = "https://github.com/ethauvin/semver-gradle"
var packageName = "net.thauvin.erik.gradle.semver"
var spek_version = "2.0.5"
object Versions {
const val kotlin = "1.3.31"
const val spek = "2.0.5"
}
repositories {
jcenter()
@ -28,12 +32,13 @@ repositories {
dependencies {
implementation(gradleApi())
testImplementation(kotlin("reflect"))
testImplementation(kotlin("test"))
testImplementation(kotlin("reflect", version = Versions.kotlin))
testImplementation(kotlin("test", version = Versions.kotlin))
testImplementation(gradleTestKit())
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spek_version")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spek_version")
testImplementation("org.spekframework.spek2:spek-dsl-jvm:${Versions.spek}")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:${Versions.spek}")
implementation(kotlin("stdlib-jdk8", version = Versions.kotlin))
}
tasks {
@ -81,6 +86,7 @@ kotlinter {
ignoreFailures = false
reporters = arrayOf("html")
experimentalRules = false
//disabledRules = arrayOf("import-ordering")
}
sonarqube {
@ -111,3 +117,11 @@ pluginBundle {
artifactId = project.name
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}