-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
83 lines (69 loc) · 2.02 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
import java.nio.file.Paths
plugins {
id 'idea'
id 'java'
id 'eclipse'
id 'com.moowork.node' version '1.2.0'
id 'io.franzbecker.gradle-lombok' version '3.1.0'
id 'com.github.ben-manes.versions' version '0.21.0'
id 'org.springframework.boot' version '2.1.6.RELEASE'
}
allprojects {
apply plugin: 'base'
apply plugin: 'maven'
version = '1.0.1-SNAPSHOT'
group = 'com.github.daggerok.es'
sourceCompatibility = targetCompatibility = 1.8
defaultTasks 'clean', 'install', 'build'
}
repositories {
mavenCentral()
}
def lombokVersion = "1.18.8"
lombok.version = lombokVersion
dependencies {
implementation platform('org.springframework.boot:spring-boot-dependencies:2.1.6.RELEASE')
annotationProcessor(platform("org.projectlombok:lombok:$lombokVersion"))
implementation('org.springframework.boot:spring-boot-starter-webflux')
implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
annotationProcessor('org.projectlombok:lombok')
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation('io.projectreactor:reactor-test')
}
node {
download = true
version = '9.11.1'
npmVersion = '5.6.0'
yarnVersion = '1.6.0'
nodeModulesDir = file('frontend')
}
clean.doFirst {
['nodejs', 'npm', 'yarn'].each { delete "$projectDir/.gradle/$it" }
['out', 'build'].each { delete "$projectDir/$it" }
delete Paths.get('src', 'main', 'resources', 'public')
def clear = project.hasProperty('clear') ? 'true' == project.property('clear') : false
if (clear) delete Paths.get(project.node.nodeModulesDir.path as String, 'node_modules')
}
defaultTasks 'clean', 'build'
assemble.dependsOn processResources, npm_run_build
processResources.shouldRunAfter npm_run_build
npm_run_build.dependsOn npm_install
bootJar {
launchScript()
}
idea {
module {
downloadJavadoc = false
downloadSources = true
}
}
eclipse {
classpath {
downloadJavadoc = false
downloadSources = true
}
}
wrapper {
gradleVersion = '5.5'
distributionType = Wrapper.DistributionType.BIN
}