Created
October 22, 2015 17:50
-
-
Save maarek/df972cac0165bf480bd7 to your computer and use it in GitHub Desktop.
kotlin quasar build.gradle
This file contains hidden or 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
buildscript { | |
ext.kotlinVer = '0.14.449' | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVer" | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'kotlin' | |
apply plugin: 'application' | |
version = '1.0.0-SNAPSHOT' | |
status = 'integration' | |
ext.classifier = ':jdk8' | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
ext.quasarVer = '0.7.4-SNAPSHOT' | |
ext.logbackVer = '1.1.3' | |
ext.slf4jVer = '1.7.12' | |
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' | |
configurations { | |
quasar | |
} | |
configurations.all { | |
resolutionStrategy { | |
failOnVersionConflict() | |
force "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVer" | |
force "org.slf4j:slf4j-api:$slf4jVer" | |
} | |
} | |
repositories { | |
// mavenLocal() | |
mavenCentral() | |
jcenter() | |
// maven { url "https://oss.sonatype.org/content/repositories/releases" } | |
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } | |
// maven { url 'https://maven.java.net/content/repositories/snapshots' } | |
} | |
dependencies { | |
compile "co.paralleluniverse:quasar-core:${quasarVer}${classifier}" | |
compile "co.paralleluniverse:quasar-kotlin:${quasarVer}" | |
quasar "co.paralleluniverse:quasar-core:${quasarVer}${classifier}@jar" | |
runtime "ch.qos.logback:logback-classic:${logbackVer}" | |
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVer" | |
compile 'io.reactivex:rxkotlin:0.22.14' | |
} | |
mainClassName = 'com.maarek.kosar.MainKt' | |
applicationDefaultJvmArgs = [ | |
"-javaagent:${configurations.quasar.singleFile}" // =v, =d | |
] | |
run { | |
standardInput = System.in | |
} | |
defaultTasks 'run' | |
sourceSets { | |
main.java.srcDirs += 'src/main/kotlin' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment