-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (70 loc) · 1.75 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
buildscript {
ext {
kotlinVersion = "1.4.32"
joobyVersion = "2.9.6"
}
repositories {
maven {
url "${artifactory_repository}"
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
}
}
mavenLocal()
}
}
plugins {
id "application"
id "org.jetbrains.kotlin.jvm" version "1.8.22"
id "io.jooby.run" version "2.9.6"
id "io.spring.dependency-management" version "1.1.0"
id "com.google.osdetector" version "1.7.3"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "com.heroku.sdk.heroku-gradle" version "3.0.0"
}
group "app"
version "1.0.0"
mainClassName = "app.AppKt"
sourceCompatibility = 1.8
repositories {
maven {
url "${artifactory_repository}"
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
}
}
mavenLocal()
}
dependencyManagement {
imports {
mavenBom "io.jooby:jooby-bom:$joobyVersion"
}
}
dependencies {
implementation "io.jooby:jooby-netty"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "ch.qos.logback:logback-classic"
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.15.2'
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.jupiter:junit-jupiter-engine"
testImplementation "io.jooby:jooby-test"
testImplementation "com.squareup.okhttp3:okhttp"
}
test {
useJUnitPlatform()
}
/** Kotlin debug information: */
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.javaParameters = true
}
shadowJar {
mergeServiceFiles()
}
heroku {
appName = "jooby-test"
processTypes(
web: "java -Dserver.port=\$PORT -jar build/libs/jooby-test-1.0.0-all.jar"
)
}