-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle.kts
67 lines (54 loc) · 1.88 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
64
65
66
67
group = "com.dwolla"
version = "0.7.1"
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin on the JVM.
id("org.jetbrains.kotlin.jvm").version("1.3.50")
id("java-library")
id("maven-publish")
id("org.jlleitschuh.gradle.ktlint").version("8.0.0")
}
repositories {
mavenCentral()
maven(url = "https://jitpack.io") {
name = "jitpack"
}
}
dependencies {
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// Fuel HTTP client
implementation(group = "com.github.kittinunf.fuel", name = "fuel", version = "2.2.1")
implementation(group = "com.github.kittinunf.fuel", name = "fuel-coroutines", version = "2.2.1")
// GSON
implementation(group = "com.google.code.gson", name = "gson", version = "2.8.6")
implementation(group = "net.dongliu", name = "gson-java8-datatype", version = "1.1.0")
// Testing
// testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testImplementation("io.mockk:mockk:1.9.3")
testCompile("org.junit.jupiter:junit-jupiter-api:5.5.2")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.5.2")
testRuntime("org.junit.platform:junit-platform-runner:1.5.2")
}
publishing {
publications {
create<MavenPublication>("dwolla-v2-kotlin") {
from(components["java"])
}
}
repositories {
maven {
name = "dwolla-v2-kotlin"
url = uri("file://$buildDir/repo")
}
}
}
tasks.test {
useJUnitPlatform {
environment("JUNIT_TESTS", true)
if (project.hasProperty("jUnitExcludeTags"))
excludeTags(project.property("jUnitExcludeTags") as String)
if (project.hasProperty("jUnitIncludeTags"))
includeTags(project.property("jUnitIncludeTags") as String)
}
}