-
Notifications
You must be signed in to change notification settings - Fork 364
/
build.gradle
135 lines (108 loc) · 4.44 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
131
132
133
134
135
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id "com.moowork.node" version "0.12"
}
apply plugin: "org.asciidoctor.convert"
project.parent.tasks.collectDocumentation.dependsOn project.tasks.asciidoctor
ext {
snippetsDir = file("build/generated-snippets")
}
dependencies {
/*******************************
* Compile Dependencies
*******************************/
compile(project(":genie-core"))
// Swagger libs
compile("io.springfox:springfox-swagger2:${springfox_version}")
compile("io.springfox:springfox-swagger-ui:${springfox_version}")
compile("io.springfox:springfox-bean-validators:${springfox_version}")
// Commons
compile("org.apache.commons:commons-exec:${commons_exec_version}")
compile("org.apache.httpcomponents:httpclient")
compile("commons-validator:commons-validator:${commons_validator_version}")
// JWT JOSE implementation lib
compile("org.bitbucket.b_c:jose4j:${jose4j_version}")
// Spring Libs
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-mail")
compile("org.springframework.boot:spring-boot-starter-hateoas")
compile("org.springframework.boot:spring-boot-starter-redis")
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-tomcat")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.cloud:spring-cloud-cluster-autoconfigure:${spring_cloud_cluster_version}")
compile("org.springframework.cloud:spring-cloud-cluster-zookeeper:${spring_cloud_cluster_version}")
compile("org.springframework.cloud:spring-cloud-starter-eureka:${spring_cloud_netflix_version}")
compile("org.springframework.cloud:spring-cloud-starter-spectator:${spring_cloud_netflix_version}")
compile("org.springframework.security:spring-security-jwt")
compile("org.springframework.security.extensions:spring-security-saml2-core:${spring_security_saml_version}") {
exclude group: "org.bouncycastle", module: "bcprov-jdk15"
}
compile("org.springframework.security.oauth:spring-security-oauth2")
compile("org.springframework.session:spring-session")
// Thymeleaf Extras for Spring Security
compile("org.thymeleaf.extras:thymeleaf-extras-springsecurity4")
/*******************************
* Provided Dependencies
*******************************/
/*******************************
* Optional Dependencies
*******************************/
/*******************************
* Runtime Dependencies
*******************************/
/*******************************
* Test Dependencies
*******************************/
testCompile(project(":genie-test"))
testCompile("com.github.springtestdbunit:spring-test-dbunit:${spring_test_dbunit_version}")
testCompile("com.jayway.jsonpath:json-path")
testCompile("org.dbunit:dbunit:${dbunit_version}")
testCompile("org.springframework.restdocs:spring-restdocs-core:1.1.2.RELEASE")
testCompile("org.springframework.restdocs:spring-restdocs-mockmvc:1.1.2.RELEASE")
testCompile("org.springframework.security:spring-security-test")
testCompile("net.sf.jtidy:jtidy:${jtidy_version}")
testCompile("com.github.tomakehurst:wiremock:${wiremock_version}")
}
license {
excludes(["static/*", "*.yml", "genie-banner.txt"])
}
test {
outputs.dir snippetsDir
}
// This is needed cause some things like attributes for asciidoctor don't serialize project.version properly at runtime
def genieVersion = project.version.toString()
asciidoctor {
dependsOn test
inputs.dir snippetsDir
inputs.dir new File(project.projectDir, "/src/docs/asciidoc")
attributes "snippets": snippetsDir, "revnumber": genieVersion
}
processResources {
from("src/main/resources") {
include "**/*.properties"
include "**/*.yml"
filter ReplaceTokens, tokens: [
"project.version": genieVersion
]
}
}
node {
version = "4.4.0"
npmVersion = "3.8.6"
download = true
}
task bundle(type: NpmTask) {
args = ["run", "bundle"]
}
bundle.dependsOn(npm_install)
jar {
dependsOn bundle
manifest {
attributes("Implementation-Version": genieVersion)
}
from("${project.projectDir}/src/main/resources/static/build") {
into "static"
}
}