forked from mrin9/Angular-SpringBoot-REST-JWT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
91 lines (74 loc) · 2.58 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE")
}
}
/**
* Include the gradle-download-task plugin
*/
plugins {
id 'de.undercouch.download' version '3.2.0'
}
import de.undercouch.gradle.tasks.download.Download
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
jar {
baseName = 'app'
version = '1.0.0'
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-tomcat")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-jdbc")
compile("io.springfox:springfox-swagger2:2.6.1")
compile("io.springfox:springfox-swagger-ui:2.6.1")
compile group: 'org.slf4j' , name: 'slf4j-api' , version: '1.7.22'
compile group: 'io.jsonwebtoken' , name: 'jjwt' , version: '0.7.0'
compile group: 'com.google.guava' , name: 'guava' , version: '21.0'
compile group: 'com.github.javafaker' , name: 'javafaker' , version: '0.12'
compile group: 'joda-time' , name: 'joda-time' , version: '2.9.7'
compile group: 'commons-io' , name: 'commons-io', version: '2.5'
compile group: 'org.json' , name: 'json' , version: '20160810'
compile group: 'org.projectlombok' , name: 'lombok' , version: '1.16.12'
runtime("com.h2database:h2")
//runtime("mysql:mysql-connector-java")
}
task removeWebui(type: Delete) {
delete "${sourceSets.main.resources.srcDirs[0]}/webui"
}
task copyWebui(type: Copy) {
from "webui/dist"
into "${sourceSets.main.resources.srcDirs[0]}/webui"
exclude "*.gz"
//eachFile { println it.name }
}
task downloadRedoc(type: Download) {
src "https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"
dest "${sourceSets.main.resources.srcDirs[0]}/public/redoc"
overwrite true
}
task var << {
sourceSets {
main {
println "java.srcDirs = ${java.srcDirs}"
println "resources.srcDirs = ${resources.srcDirs[0]}"
println "output.classesDir = ${output.classesDir}"
println "output.resourcesDir = ${output.resourcesDir}"
}
}
}
compileJava.dependsOn downloadRedoc
copyWebui.dependsOn removeWebui
compileJava.dependsOn copyWebui