build.gradle.kts 1.09 KB
Newer Older
1
import org.jetbrains.dokka.gradle.DokkaTask
2 3

object Libs {
Ricki Hirner's avatar
Ricki Hirner committed
4
    // okhttp HTTP library
5
    const val okhttpVersion = "4.8.0"
Ricki Hirner's avatar
Ricki Hirner committed
6 7

    // XmlPullParser library
8 9 10
    const val xpp3Version = "1.1.6"
}

tobiasKaminsky's avatar
tobiasKaminsky committed
11
group="com.gitlab.bitfireAT"
tobiasKaminsky's avatar
tobiasKaminsky committed
12

13 14 15 16
repositories {
    jcenter()
}

17
plugins {
18
    kotlin("jvm") version "1.4.10"
19 20

    id("com.github.kukuhyoniatmoko.buildconfigkotlin") version "1.0.5"
21
    id("org.jetbrains.dokka") version "0.10.1"
Ricki Hirner's avatar
Ricki Hirner committed
22
    maven
23 24
}

25 26 27 28 29
tasks {
    val dokka by getting(DokkaTask::class) {
        configuration {
            sourceLink {
                url = "https://gitlab.com/bitfireAT/dav4jvm/tree/master/"
30
                lineSuffix = "#L"
31 32 33 34 35
            }
        }
    }
}

36 37 38
dependencies {
    implementation(kotlin("stdlib"))

39
    api("com.squareup.okhttp3:okhttp:${Libs.okhttpVersion}")
40
    implementation("org.apache.commons:commons-lang3:3.9")
41
    api("org.ogce:xpp3:${Libs.xpp3Version}")
42

43
    testImplementation("com.squareup.okhttp3:mockwebserver:${Libs.okhttpVersion}")
44 45 46 47 48 49 50
}

buildConfigKotlin {
    sourceSet("main", Action {
        buildConfig(name = "okhttpVersion", value = Libs.okhttpVersion)
    })
}