-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
130 lines (107 loc) · 3.47 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
buildscript {
ext {
dependencyManagementVersion = '1.0.5.RELEASE'
springBootVersion = '1.5.15.RELEASE'
nodePluginVersion = '1.2.0'
}
repositories {
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath("io.spring.gradle:dependency-management-plugin:${dependencyManagementVersion}")
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("com.moowork.gradle:gradle-node-plugin:${nodePluginVersion}")
}
}
configure(subprojects) {
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'idea'
ext {
versions = [
springPlatform : 'Brussels-SR12',
springCloud : 'Edgware.SR4',
awsJavaSDK : '1.11.160'
]
}
repositories {
maven { url "https://repo.spring.io/libs-release" }
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "io.spring.platform:platform-bom:${versions.springPlatform}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${versions.springCloud}"
mavenBom "com.amazonaws:aws-java-sdk-bom:${versions.awsJavaSDK}"
}
}
dependencies {
compile 'org.projectlombok:lombok'
testCompile 'org.springframework.boot:spring-boot-starter-test'
}
configurations {
// replaced with jcl-over-slf4j
all*.exclude group: 'commons-logging', module: 'commons-logging'
// replaced with log4j-over-slf4j
all*.exclude group: 'log4j', module: 'log4j'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding = 'UTF-8'
task copyConfig(type: Copy) {
from fileTree("${rootProject.projectDir}/config/${project.name}.conf")
into "$buildDir/libs"
}
build.dependsOn(copyConfig)
}
project('legacy-web') {
apply plugin: 'org.springframework.boot'
dependencies {
compile 'org.springframework.boot:spring-boot-starter-web'
runtime('org.springframework.boot:spring-boot-starter-freemarker')
runtime('org.webjars.bower:bootstrap:4.1.3')
runtime('org.webjars.bower:jquery:3.3.1')
}
bootRepackage {
executable = true
}
}
project('modern-web') {
apply plugin: 'org.springframework.boot'
apply plugin: 'com.moowork.node'
ext {
generatedClientDir = "${project.projectDir}/src/generated/client-resources"
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-zuul'
compile 'org.springframework.boot:spring-boot-starter-web'
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
runtime("net.sourceforge.nekohtml:nekohtml:1.9.22")
}
sourceSets {
main {
resources.srcDirs += [generatedClientDir]
}
}
jar {
from { fileTree(dir: generatedClientDir) }
}
bootRepackage {
executable = true
}
clean {
delete generatedClientDir
}
// idea {
// module {
// resourceDirs += sourceSets.generated.resources.srcDirs
// }
// }
task clientBuild(type: YarnTask) {
runner.workingDir = file("${rootProject.projectDir}/modern-web-client")
yarnCommand = ['build']
args = []
}
jar.dependsOn clientBuild
}