-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle.kts
52 lines (43 loc) · 1.07 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
import java.net.URL
import org.jetbrains.dokka.gradle.DokkaTask
repositories {
mavenCentral()
}
group="com.github.bitfireAT"
version=System.getenv("GIT_COMMIT") // set by jitpack.io
plugins {
alias(libs.plugins.kotlin.jvm)
`maven-publish`
alias(libs.plugins.dokka)
}
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 {
api(libs.okhttp)
api(libs.xpp3)
testImplementation(libs.junit4)
testImplementation(libs.okhttp.mockwebserver)
}