This repository was archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
103 lines (92 loc) · 2.84 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.70"
id "jacoco"
id "org.jmailen.kotlinter" version "2.3.0"
id "io.gitlab.arturbosch.detekt" version "1.1.1"
id "maven-publish"
id "com.palantir.git-version" version "0.12.2"
}
version versionDetails().lastTag
group "net.wussmann.kenneth"
repositories {
mavenCentral()
jcenter()
}
dependencies {
def junitVersion = "5.6.0"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3-native-mt"
implementation "com.github.kittinunf.fuel:fuel:2.2.1"
compileOnly "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testCompile "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testCompile "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testCompile "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testCompile "org.jetbrains.kotlin:kotlin-test:1.4.21"
testCompile "io.mockk:mockk:1.10.4"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
publishing {
repositories {
maven {
credentials {
username "KennethWussmann"
password System.getenv("GITHUB_TOKEN")
}
url = "https://maven.pkg.github.com/KennethWussmann/mock-fuel"
}
}
publications {
maven(MavenPublication) {
from components.java
pom {
name = "mock-fuel"
description = "Mocking Fuel HTTP requests in Kotlin with ease"
url = "https://kenneth.wussmann.net/"
licenses {
license {
name = "MIT License"
url = "https://raw.githubusercontent.com/KennethWussmann/mock-fuel/master/LICENSE"
}
}
developers {
developer {
id = "KennethWussmann"
name = "Kenneth Wußmann"
email = "kenneth@wussmann.net"
}
}
scm {
connection = "scm:git:git://github.com/KennethWussmann/mock-fuel.git"
developerConnection = "scm:git:git@github.com:KennethWussmann/mock-fuel.git"
url = "https://github.com/KennethWussmann/mock-fuel"
}
}
}
}
}
detekt {
input = files("src/main/kotlin")
filters = ".*/resources/.*,.*/build/.*,.*test.*,.*/model/.*"
config = files("detekt-config.yml")
}
jacoco {
toolVersion = "0.8.5"
}
test {
dependsOn lintKotlin
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled = true
html.enabled = true
csv.enabled = false
}
}