-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
66 lines (54 loc) · 1.67 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
kotlin("jvm") version "1.3.50"
}
group = "br.com.maccommerce"
version = "1.0.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
}
application {
mainClassName = "br.com.maccommerce.productservice.app.AppKt"
}
tasks.withType<Jar> {
manifest {
attributes(
mapOf(
"Main-Class" to application.mainClassName
)
)
}
from(configurations.runtimeClasspath.map { configuration ->
configuration.asFileTree.map {
if(it.isDirectory) it else zipTree(it)
}
})
archiveFileName.set(project.name)
// removing signed files from jar
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")
}
tasks.test {
useJUnitPlatform {
includeEngines("spek2")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.http4k:http4k-core:3.187.0")
implementation("org.http4k:http4k-server-jetty:3.187.0")
implementation("org.http4k:http4k-format-jackson:3.187.0")
implementation("org.jetbrains.exposed:exposed:0.17.4")
implementation("org.koin:koin-core:2.0.1")
implementation("com.zaxxer:HikariCP:3.4.1")
implementation("org.slf4j:slf4j-simple:1.7.28")
implementation("org.postgresql:postgresql:42.2.8")
testImplementation("org.jetbrains.kotlin:kotlin-test:1.3.50")
testImplementation("org.spekframework.spek2:spek-dsl-jvm:2.0.7")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:2.0.7")
}