-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
68 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
67
68
plugins {
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}
ext.kotlin_version = '1.3.72'
ext.alpas_version = '0.16.3'
startScripts {
applicationName = '__APP_NAME__'
}
mainClassName = '__PACKAGE__.StartKt'
group '__PACKAGE__'
version '1.0.0'
repositories {
jcenter()
maven { url = uri("https://jitpack.io") }
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'ch.qos.logback:logback-classic:1.3.0-alpha5'
implementation 'mysql:mysql-connector-java:8.0.21'
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "dev.alpas:alpas:$alpas_version"
testImplementation "dev.alpas:pulsar:$alpas_version"
// Prepend the latest SHA to try out the latest Alpas version
// implementation 'com.github.alpas:alpas:4b0d0f'
// testImplementation 'com.github.alpas.alpas:pulsar:4b0d0f'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
}
run.doFirst { environment 'ALPAS_VERSION', alpas_version }
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': '__PACKAGE__.StartKt'
}
}
shadowJar {
destinationDirectory = file("./")
archiveBaseName.set('__APP_NAME__')
archiveClassifier.set(null)
version = null
}
test {
useJUnitPlatform()
}
installDist {
destinationDir = file("./build/install/__APP_NAME__")
}