-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
59 lines (49 loc) · 1.41 KB
/
build.gradle
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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.5.31'
id("org.jetbrains.dokka") version "1.6.0"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id 'application'
id 'jacoco'
}
ext {
PUBLISH_GROUP_ID = 'io.github.nusphere'
PUBLISH_VERSION = '0.2.x-SNAPSHOT'
PUBLISH_ARTIFACT_ID = 'kotlin-gw2-api'
}
apply from: "${rootDir}/scripts/publish-root.gradle"
apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.2'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.9.3'
testImplementation 'org.jetbrains.dokka:dokka-gradle-plugin:1.6.0'
api 'com.squareup.retrofit2:retrofit:2.9.0'
api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2'
api 'com.squareup.retrofit2:converter-gson:2.9.0'
api 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2'
}
test {
useJUnitPlatform()
jacoco {
destinationFile = file("${buildDir}/jacoco/test.exec")
}
}
jacocoTestReport {
// Adjust the output of the test report
reports {
xml.enabled true
csv.enabled false
}
}
compileKotlin {
kotlinOptions.jvmTarget = '11'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '11'
}
application {
mainClassName = 'MainKt'
}