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