-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
97 lines (71 loc) · 2.25 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
var kotlinVersion: String by extra
kotlinVersion = "1.3.20"
repositories {
mavenCentral()
}
dependencies {
classpath(kotlin("gradle-plugin", kotlinVersion))
}
}
group = "com.forresthopkinsa"
version = "0.1-SNAPSHOT"
plugins {
java
idea
maven
kotlin("jvm") version "1.3.20"
kotlin("plugin.spring") version "1.3.20"
kotlin("plugin.jpa") version "1.3.20"
id("org.springframework.boot") version "2.0.4.RELEASE"
id("io.spring.dependency-management") version "1.0.6.RELEASE"
id("com.moowork.node") version "1.2.0"
}
val kotlinVersion: String by extra
val retrofitVersion = "2.4.0"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile(kotlin("stdlib-jdk8", kotlinVersion))
compile(kotlin("reflect", kotlinVersion))
compile("org.springframework.boot", "spring-boot-starter")
compile("org.springframework.boot", "spring-boot-starter-web")
compile("org.springframework.boot", "spring-boot-starter-actuator")
compile("org.springframework.boot", "spring-boot-starter-data-jpa")
compile("org.springframework.boot", "spring-boot-devtools")
compile("org.springframework.security", "spring-security-web")
compile("org.springframework.security", "spring-security-config")
compile("com.google.code.gson", "gson")
compile("com.h2database", "h2")
testCompile("org.testng", "testng", "6.14.3")
testCompile("org.springframework", "spring-test")
testCompile("org.springframework.boot", "spring-boot-starter-test")
}
val bootJar by tasks.getting
val assemble by tasks.getting
val install by tasks.getting
val npm_run_dev by tasks.getting
val npm_run_build by tasks.getting
val rundev by tasks.creating {
dependsOn(npm_run_dev)
}
val cleanStatic by tasks.creating(Delete::class) {
delete("src/main/resources/public")
}
npm_run_build.dependsOn(cleanStatic)
bootJar.mustRunAfter(npm_run_build)
assemble.dependsOn(npm_run_build)
install.dependsOn(assemble)
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Test> {
useTestNG()
}
node {
nodeModulesDir = file("${project.projectDir}/src/frontend")
}
idea.module.inheritOutputDirs = true