-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (54 loc) · 1.54 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
66
plugins {
id 'java'
id 'maven'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.3.72'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group 'com.project5e'
version '2.1'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0"
implementation "ch.qos.logback:logback-classic:1.2.3"
implementation "org.slf4j:jcl-over-slf4j:1.7.30"
implementation "org.jline:jline:3.17.1"
implementation "org.jline:jline-builtins:3.17.1"
runtimeOnly "net.java.dev.jna:jna:5.6.0"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.7'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes 'Main-Class': "com.project5e.whisper.Main"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
getArchiveClassifier().set 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
getArchiveClassifier().set 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}