Made versions an extra object.
This commit is contained in:
parent
765c07a85e
commit
1f7861e314
1 changed files with 11 additions and 18 deletions
|
@ -8,7 +8,7 @@ plugins {
|
||||||
id("com.github.ben-manes.versions") version "0.21.0"
|
id("com.github.ben-manes.versions") version "0.21.0"
|
||||||
id("com.gradle.build-scan") version "2.3"
|
id("com.gradle.build-scan") version "2.3"
|
||||||
id("com.gradle.plugin-publish") version "0.10.1"
|
id("com.gradle.plugin-publish") version "0.10.1"
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14" // don't update until kotlin 1.3.401 is supported by Gradle
|
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14" // don't update until kotlin 1.3.41 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.jmailen.kotlinter") version "1.26.0" // don't update until kotlin 1.3.41 supported by Gradle
|
||||||
id("org.sonarqube") version "2.7.1"
|
id("org.sonarqube") version "2.7.1"
|
||||||
kotlin("jvm") version "1.3.31"
|
kotlin("jvm") version "1.3.31"
|
||||||
|
@ -17,13 +17,14 @@ plugins {
|
||||||
version = "1.0.4"
|
version = "1.0.4"
|
||||||
group = "net.thauvin.erik.gradle"
|
group = "net.thauvin.erik.gradle"
|
||||||
|
|
||||||
var github = "https://github.com/ethauvin/semver-gradle"
|
object VersionInfo {
|
||||||
var packageName = "net.thauvin.erik.gradle.semver"
|
|
||||||
|
|
||||||
object Versions {
|
|
||||||
const val kotlin = "1.3.31"
|
const val kotlin = "1.3.31"
|
||||||
const val spek = "2.0.5"
|
const val spek = "2.0.5"
|
||||||
}
|
}
|
||||||
|
val versions: VersionInfo by extra { VersionInfo }
|
||||||
|
|
||||||
|
val github = "https://github.com/ethauvin/semver-gradle"
|
||||||
|
val packageName = "net.thauvin.erik.gradle.semver"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
@ -32,13 +33,13 @@ repositories {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(gradleApi())
|
implementation(gradleApi())
|
||||||
|
|
||||||
testImplementation(kotlin("reflect", version = Versions.kotlin))
|
testImplementation(kotlin("reflect", version = versions.kotlin))
|
||||||
testImplementation(kotlin("test", version = Versions.kotlin))
|
testImplementation(kotlin("test", version = versions.kotlin))
|
||||||
testImplementation(gradleTestKit())
|
testImplementation(gradleTestKit())
|
||||||
|
|
||||||
testImplementation("org.spekframework.spek2:spek-dsl-jvm:${Versions.spek}")
|
testImplementation("org.spekframework.spek2:spek-dsl-jvm:${versions.spek}")
|
||||||
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:${Versions.spek}")
|
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:${versions.spek}")
|
||||||
implementation(kotlin("stdlib-jdk8", version = Versions.kotlin))
|
implementation(kotlin("stdlib-jdk8", version = versions.kotlin))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
@ -117,11 +118,3 @@ pluginBundle {
|
||||||
artifactId = project.name
|
artifactId = project.name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val compileKotlin: KotlinCompile by tasks
|
|
||||||
compileKotlin.kotlinOptions {
|
|
||||||
jvmTarget = "1.8"
|
|
||||||
}
|
|
||||||
val compileTestKotlin: KotlinCompile by tasks
|
|
||||||
compileTestKotlin.kotlinOptions {
|
|
||||||
jvmTarget = "1.8"
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue