This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
forked from uk-gov-mirror/dwp.dataworks-common-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
63 lines (51 loc) · 1.53 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.21"
maven
}
group = "uk.gov.dwp.dataworks"
version = "0.0.0"
repositories {
mavenCentral()
jcenter()
}
configurations.all {
exclude(group="org.slf4j", module="slf4j-log4j12")
}
dependencies {
// Kotlin things
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// Logging things
implementation("ch.qos.logback:logback-core:1.2.3")
implementation("ch.qos.logback:logback-classic:1.2.3")
// Utility things
implementation("org.apache.commons:commons-text:1.8")
// JUnit things
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.6.0")
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.3.3")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.0")
// Testing helper things
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
testImplementation("org.assertj:assertj-core:3.15.0")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.10.3")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks {
val sourcesJar by creating(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
artifacts {
archives(sourcesJar)
archives(jar)
}
}