-
Notifications
You must be signed in to change notification settings - Fork 366
/
Copy pathbuild.gradle
91 lines (71 loc) · 2.08 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
83
84
85
86
87
88
89
90
91
import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel
apply plugin: "java-library"
apply plugin: "nebula.node"
idea {
module {
languageLevel = new IdeaLanguageLevel(JavaVersion.VERSION_11)
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
dependencies {
/*******************************
* API Dependencies
*******************************/
/*******************************
* Implementation Dependencies
*******************************/
implementation(project(":genie-web"))
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-web")
/*******************************
* Compile Only Dependencies
*******************************/
/*******************************
* Runtime Only Dependencies
*******************************/
/*******************************
* Test Dependencies
*******************************/
testImplementation(project(":genie-test"))
testImplementation(project(":genie-test-web"))
integTestImplementation("commons-io:commons-io")
}
license {
exclude "*.yml"
exclude "templates/*"
}
node {
version = "8.11.1"
npmVersion = "5.8.0"
download = true
}
task bundle(type: NpmTask) {
inputs.dir("${projectDir}/node_modules")
inputs.dir("${projectDir}/src/main/web")
inputs.file("npm-shrinkwrap.json")
inputs.file("package.json")
inputs.file("server.js")
inputs.file("webpack.config.js")
outputs.dir("${project.buildDir}/web/bundle")
dependsOn npmInstall
args = ["run", "build"]
}
jar {
dependsOn bundle
from(file("${project.buildDir}/web/bundle")) {
into "META-INF/resources/webjars/${project.name}"
}
from(file("${project.projectDir}/src/main/web/images")) {
into "META-INF/resources/webjars/${project.name}/images"
}
manifest {
attributes(
"Implementation-Title": project.name,
"Implementation-Version": project.version,
)
}
}