Consistently use Gradle plugins DSL

This commit is contained in:
Michael Bull 2018-09-24 00:26:29 +01:00
parent 08c1fb8173
commit b93dd4457c
3 changed files with 14 additions and 27 deletions

View File

@ -1,24 +1,12 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins { plugins {
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.2.70'
id 'org.jetbrains.dokka' version '0.9.17'
id 'com.github.ben-manes.versions' version '0.20.0' id 'com.github.ben-manes.versions' version '0.20.0'
id 'com.jfrog.bintray' version '1.8.4' id 'com.jfrog.bintray' version '1.8.4'
id 'net.researchgate.release' version '2.7.0' id 'net.researchgate.release' version '2.7.0'
id 'org.jetbrains.dokka' version '0.9.17'
} }
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
description = 'A Result monad for modelling success or failure operations.' description = 'A Result monad for modelling success or failure operations.'
repositories { repositories {
@ -26,13 +14,13 @@ repositories {
} }
dependencies { dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
testImplementation "junit:junit:$junitVersion" testImplementation 'junit:junit:4.12'
testImplementation "org.jetbrains.kotlin:kotlin-test-common:$kotlinVersion" testImplementation 'org.jetbrains.kotlin:kotlin-test-common'
testImplementation "org.jetbrains.kotlin:kotlin-test-annotations-common:$kotlinVersion" testImplementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion" testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlinVersion" testImplementation 'org.jetbrains.kotlin:kotlin-test'
} }
compileKotlin { compileKotlin {

View File

@ -1,5 +1,7 @@
apply plugin: 'application' plugins {
apply plugin: 'kotlin' id 'application'
id 'org.jetbrains.kotlin.jvm'
}
mainClassName = 'io.ktor.server.netty.DevelopmentEngine' mainClassName = 'io.ktor.server.netty.DevelopmentEngine'
@ -15,7 +17,7 @@ dependencies {
implementation "io.ktor:ktor-server-core:$ktorVersion" implementation "io.ktor:ktor-server-core:$ktorVersion"
implementation "io.ktor:ktor-server-netty:$ktorVersion" implementation "io.ktor:ktor-server-netty:$ktorVersion"
implementation "io.ktor:ktor-gson:$ktorVersion" implementation "io.ktor:ktor-gson:$ktorVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
} }
compileKotlin { compileKotlin {

View File

@ -1,5 +1,2 @@
group=com.michael-bull.kotlin-result group=com.michael-bull.kotlin-result
version=1.1.1-SNAPSHOT version=1.1.1-SNAPSHOT
junitVersion=4.12
kotlinVersion=1.2.70