-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
67 lines (55 loc) · 1.48 KB
/
build.gradle
File metadata and controls
67 lines (55 loc) · 1.48 KB
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
64
65
66
67
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.9.10'
id 'org.jetbrains.dokka' version '1.8.10'
id 'maven-publish'
}
group = 'com.github.widarlein'
group 'com.github.widarlein'
version '3.0'
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10'
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
implementation "com.eatthepath:java-otp:0.2.0"
implementation "com.google.guava:guava:33.5.0-jre"
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
//tasks.withType(DokkaTask.class) {
// outputDirectory = "$buildDir/javadoc"
//
//}
dokkaHtml {
outputDirectory.set(file("build/javadoc"))
}
task copyDocs(type: Copy, dependsOn: dokkaHtml) {
from "$buildDir/javadoc"
into "$projectDir/docs"
}
test {
useJUnitPlatform()
}