-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
59 lines (49 loc) · 1.29 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
plugins {
groovy
java
kotlin("jvm") version "1.3.70"
`maven-publish`
}
group = "io.gitlab.arturbosch"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
maven { setUrl("https://dl.bintray.com/arturbosch/generic") }
}
dependencies {
implementation("org.codehaus.groovy:groovy-all:3.0.2")
implementation(kotlin("stdlib"))
implementation("io.gitlab.arturbosch:kutils:0.6.10")
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB:0.9.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
val sourcesJar by tasks.creating(Jar::class) {
dependsOn(tasks.classes)
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
val javadocJar by tasks.creating(Jar::class) {
from(tasks.javadoc)
archiveClassifier.set("javadoc")
}
artifacts {
archives(sourcesJar)
archives(javadocJar)
}
publishing {
publications.register<MavenPublication>("PlaygroundPublication") {
from(components["java"])
artifact(sourcesJar)
artifact(javadocJar)
}
}