forked from bitfireAT/dav4jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
63 lines (51 loc) · 1.44 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL
object Libs {
// okhttp HTTP library
const val okhttpVersion = "4.10.0"
// XmlPullParser library
const val xpp3Version = "1.1.6"
}
repositories {
mavenCentral()
}
group="com.github.bitfireAT"
version="2.2"
plugins {
kotlin("jvm") version "1.7.20"
`maven-publish`
id("org.jetbrains.dokka") version "1.7.20"
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
repositories {
maven {
name = "dav4jvm"
url = uri(layout.buildDirectory.dir("repo"))
}
}
}
tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets {
named("main") {
moduleName.set("dav4jvm")
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(URL("https://github.com/bitfireAT/dav4jvm/tree/main/src/main/kotlin/"))
remoteLineSuffix.set("#L")
}
}
}
}
dependencies {
implementation(kotlin("stdlib-jdk7"))
api("com.squareup.okhttp3:okhttp:${Libs.okhttpVersion}")
implementation("org.apache.commons:commons-lang3:3.8.1") // last version that doesn't require Java 8
api("org.ogce:xpp3:${Libs.xpp3Version}")
testImplementation("junit:junit:4.13.2")
testImplementation("com.squareup.okhttp3:mockwebserver:${Libs.okhttpVersion}")
}