forked from lennonjesus/javalin-kotlin-gradle-heroku
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
54 lines (42 loc) · 1.2 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
}
apply plugin: 'application'
mainClassName = "com.lennonjesus.heroku.AppKt"
group 'com.lennonjesus.heroku'
version '0.0.1-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile 'io.javalin:javalin:2.8.0'
compile 'org.slf4j:slf4j-simple:1.7.26'
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.8'
compile 'khttp:khttp:0.1.0'
testImplementation("org.junit.jupiter:junit-jupiter:5.4.2")
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.4.2')
}
jar {
baseName = 'javalin-kotlin-gradle-heroku'
version = '0.0.1-SNAPSHOT'
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'com.lennonjesus.heroku.AppKt'
)
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform()
}
task stage(dependsOn: ['build', 'clean', 'jar'])
build.mustRunAfter clean