-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
76 lines (61 loc) · 1.52 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
64
65
66
67
68
69
70
71
72
73
74
75
76
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import sun.security.pkcs.PKCS8Key.version
val assertJVersion = "3.9.1"
val coroutinesVersion = "0.22.5"
val guavaVersion = "24.1-jre"
val junitPlatformVersion = "1.0.1"
val junitJupiterVersion = "5.1.0"
group = "net.lab0.kotlin.more"
version = "0.1.5"
plugins {
val kotlinVersion = "1.2.41"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
java
idea
maven
`maven-publish`
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
idea {
module {
isDownloadSources = true
}
}
repositories {
mavenCentral()
}
dependencies {
compile("com.google.guava:guava:$guavaVersion")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
testImplementation("org.assertj:assertj-core:$assertJVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
}
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.junit.platform:junit-platform-gradle-plugin:1.0.+")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
val sourcesJar by tasks.creating(Jar::class) {
classifier = "sources"
from(java.sourceSets["main"].allSource)
}
publishing {
(publications) {
"mavenJava"(MavenPublication::class) {
from(components["java"])
artifact(sourcesJar)
}
}
}