-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (53 loc) · 1.56 KB
/
build.gradle
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
plugins {
id "org.jetbrains.kotlin.jvm" version "$kotlinVersion" apply false
}
allprojects {
apply plugin: "java"
apply plugin: 'idea'
apply plugin: "java-library"
apply plugin: "org.jetbrains.kotlin.jvm"
group 'edu.warwick.pssc.conclave'
version '0.1.0'
idea {
module {
downloadJavadoc = true
}
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
maven {
url = rootProject.file(conclaveRepo)
}
mavenCentral()
}
dependencies {
// Align versions of all Kotlin components
implementation platform('org.jetbrains.kotlin:kotlin-bom')
// Use the Kotlin JDK 8 standard library.
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
// Use the Kotlin test library.
testImplementation 'org.jetbrains.kotlin:kotlin-test'
// Use JUnit 5
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjvm-default=enable', '-Xopt-in=kotlin.RequiresOptIn']
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjvm-default=enable']
jvmTarget = "11"
}
}
}