1import javax.tools.ToolProvider 2 3buildscript { 4 dependencies { 5 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 6 } 7} 8 9apply plugin: 'kotlin' 10 11sourceCompatibility = 1.8 12 13tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { 14 kotlinOptions { 15 languageVersion = "1.2" 16 apiVersion = languageVersion 17 jvmTarget = "1.8" 18 } 19} 20 21dependencies { 22 compile fileTree(dir: 'libs', include: ['*.jar']) 23 24 compile "org.jetbrains.kotlin:kotlin-stdlib:$bundled_kotlin_compiler_version" 25 compile "org.jetbrains.kotlin:kotlin-reflect:$bundled_kotlin_compiler_version" 26 27 compile group: 'com.google.inject', name: 'guice', version: '3.0' 28 compile "org.jsoup:jsoup:1.8.3" 29 30 compile "org.jetbrains.kotlin:kotlin-compiler:$bundled_kotlin_compiler_version" 31 compile "org.jetbrains.kotlin:kotlin-script-runtime:$bundled_kotlin_compiler_version" 32 33 compile "org.jetbrains:markdown:0.1.41" 34 35 implementation "com.squareup.okhttp3:okhttp:4.0.0-RC1" 36 37 compile intellijCoreAnalysis() 38 39 compile "org.jetbrains.kotlin:kotlin-plugin-ij193:$kotlin_plugin_version" //TODO: parametrize ij version after 1.3.70 40 41// Google version of the library in the libs folder. Fixing 129528660 42// compile 'org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.8' 43 44 //tools.jar 45 def toolsJar = files(((URLClassLoader) ToolProvider.getSystemToolClassLoader()).getURLs().findAll { it.path.endsWith("jar") }) 46 compileOnly toolsJar 47 testCompile toolsJar 48 49 compile project(":integration") 50 51 testCompile group: 'junit', name: 'junit', version: '4.12' 52 testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: kotlin_version 53 testCompile "com.nhaarman:mockito-kotlin-kt1.1:1.5.0" 54 55 testCompile ideaRT() 56}