-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
61 lines (54 loc) · 1.84 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
61 lines (54 loc) · 1.84 KB
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.4.3"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("org.jmailen.kotlinter") version "3.3.0"
kotlin("jvm") version "1.4.30"
kotlin("plugin.spring") version "1.4.30"
}
repositories {
maven {
url = uri("https://oss.jfrog.org/oss-snapshot-local")
content {
includeGroup("com.yahoo.navi")
}
}
mavenCentral()
}
dependencies {
implementation(project(":ui"))
implementation("com.yahoo.navi", "models", "0.2.0-beta-SNAPSHOT") {
exclude(group = "com.yahoo.elide", module = "elide-core")
}
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("com.yahoo.elide", "elide-spring-boot-starter", "5.0.0-pr31")
implementation("com.h2database", "h2", "1.3.176")
implementation("org.hibernate", "hibernate-validator", "6.1.5.Final")
implementation("io.micrometer","micrometer-core", "1.5.1")
implementation("org.liquibase", "liquibase-core", "3.8.1")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
testImplementation("com.jayway.restassured", "rest-assured", "2.9.0")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
val jarName = "yavin-ws"
tasks.register<Exec>("execJar") {
dependsOn("bootJar")
commandLine = listOf("java", "-jar", "${project.buildDir}/libs/${jarName}.jar")
}
tasks.bootJar {
archiveBaseName.set(jarName)
}