-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
59 lines (51 loc) · 1.34 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
import java.time.ZonedDateTime
// tag::plugins
plugins {
kotlin("jvm") version "1.4.10"
}
// end::plugins
// tag::properties
group = "com.petrovich"
version = "0.2.0-SNAPSHOT"
val jacksonVersion = "2.11.2"
val junitVersion = "5.6.2"
// end::properties
// tag::repositories
repositories {
mavenCentral()
}
// end::repositories
// tag::jar
tasks.jar {
manifest {
attributes["Created-By"] = "Dmitrii Kniazev"
attributes["Implementation-Version"] = archiveVersion
attributes["Build-Time"] = ZonedDateTime.now().toString()
}
}
// end::jar
tasks.test {
useJUnitPlatform()
}
// tag::dependencies
dependencies {
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion")
implementation("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
//test dependencies
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
// end::dependencies
// tag::source sets
sourceSets {
main {
resources.srcDir("petrovich-rules/")
resources.include("gender.yml", "rules.yml")
}
test {
resources.srcDir("petrovich-eval/")
resources.include("*.tsv", "*.csv")
}
}
// end::source sets