-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
38 lines (29 loc) · 900 Bytes
/
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
val kotlinVersion = "1.2.21"
val jupiterVersion = "5.0.3"
plugins {
kotlin("jvm") version "1.2.21"
id("org.junit.platform.gradle.plugin")
maven
}
group = "lt.neworld"
version = "1.0.0"
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile(kotlin("stdlib"))
compile("org.junit.jupiter:junit-jupiter-api:$jupiterVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$jupiterVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$jupiterVersion")
}
val sourcesJar by tasks.creating(Jar::class) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
classifier = "sources"
from(java.sourceSets["main"].allSource)
}
val archives = configurations.getByName("archives")
artifacts.add(archives.name, sourcesJar) {
builtBy(sourcesJar)
}