Created
November 9, 2017 04:40
-
-
Save tomohiro-n/e2c24d9db64ea1fb878ab8caad1aa180 to your computer and use it in GitHub Desktop.
Kotlin meetup - build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group 'tomohiron.kotlinserver' | |
version '1.0-SNAPSHOT' | |
buildscript { | |
ext.kotlin_version = '1.1.51' | |
ext.junit_jupiter_version = '5.0.1' | |
ext.jersey_version = '2.25.1' | |
ext.slf4j_version = '1.7.25' | |
ext.jackson_version = '2.9.1' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0' | |
classpath 'org.akhikhl.gretty:gretty:+' | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'kotlin' | |
apply plugin: "war" | |
apply plugin: 'org.junit.platform.gradle.plugin' | |
apply plugin: 'org.akhikhl.gretty' | |
junitPlatform { | |
filters { | |
engines { | |
include 'spek' | |
} | |
} | |
} | |
sourceCompatibility = 1.8 | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version" | |
testCompile "org.junit.jupiter:junit-jupiter-api:$junit_jupiter_version" | |
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junit_jupiter_version" | |
testCompile 'org.jetbrains.spek:spek-api:1.1.5' | |
testRuntime 'org.jetbrains.spek:spek-junit-platform-engine:1.1.5' | |
providedCompile 'javax:javaee-api:7.0' | |
compile "org.glassfish.jersey.core:jersey-client:$jersey_version" | |
compile "org.glassfish.jersey.containers:jersey-container-servlet-core:$jersey_version" | |
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version" | |
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version" | |
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" | |
compile 'io.github.microutils:kotlin-logging:1.4.6' | |
compile "org.slf4j:slf4j-jdk14:$slf4j_version" | |
compile 'com.google.inject.extensions:guice-servlet:4.1.0' | |
compile 'org.glassfish.hk2:guice-bridge:2.4.0' | |
compile 'com.google.cloud:google-cloud-logging:1.6.0' | |
compile 'org.litote.kmongo:kmongo:3.5.0' | |
} | |
compileKotlin { | |
kotlinOptions.jvmTarget = "1.8" | |
} | |
compileTestKotlin { | |
kotlinOptions.jvmTarget = "1.8" | |
} | |
gretty { | |
systemProperty "tomohiron.kotlinserver.mongodb.url", "localhost:27017" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment