-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
181 lines (119 loc) · 6.04 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.5.1/userguide/tutorial_java_projects.html
*/
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.6.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
bootJar {
baseName = 'Sharif_Survey'
version = '1.0-SNAPSHOT'
}
//plugins {
// // Apply the java plugin to add support for Java
// id 'java'
//
// // Apply the application plugin to add support for building a CLI application
// id 'application'
//}
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
dependencies {
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework.boot:spring-boot-starter-data-rest'
compile("org.springframework.boot:spring-boot-starter-websocket")
//client
compile("org.webjars:webjars-locator-core")
compile("org.webjars:sockjs-client:1.0.2")
compile("org.webjars:stomp-websocket:2.3.3")
compile("org.webjars:bootstrap:3.3.7")
compile("org.webjars:jquery:3.1.0")
compile 'io.jsonwebtoken:jjwt:0.9.1'
// compile('org.flywaydb:flyway-core')
compile('org.springframework.boot:spring-boot-starter-jdbc')
// compile('mysql:mysql-connector-java')
testCompile('org.springframework.boot:spring-boot-starter-test')
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
// JPA Data (We are going to use Repositories, Entities, Hibernate)
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
// Use MySQL Connector-J
// compile 'mysql:mysql-connector-java'
compile 'org.springframework.boot:spring-boot-starter-hateoas'
// This dependency is used by the application.
implementation 'com.google.guava:guava:27.1-jre'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
// JPA Data (We are going to use Repositories, Entities, Hibernate)
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
// implementation 'org.mariadb.jdbc:mariadb-java-client:2.1.2'
// https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client
// compile group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.4.3'
// Use MySQL Connector-J
// compile 'mysql:mysql-connector-java'
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
// https://mvnrepository.com/artifact/org.postgresql/postgresql
compile group: 'org.postgresql', name: 'postgresql', version: '42.1.4'
// https://mvnrepository.com/artifact/junit/junit
testCompile group: 'junit', name: 'junit', version: '4.12'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.1.6.RELEASE'
testCompile("org.springframework.security:spring-security-test")
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-mail
compile group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version: '2.1.3.RELEASE'
// https://mvnrepository.com/artifact/javax.ws.rs/jsr311-api
compile group: 'javax.ws.rs', name: 'jsr311-api', version: '1.1.1'
compile 'org.springframework.boot:spring-boot-starter-tomcat'
// https://mvnrepository.com/artifact/com.h2database/h2
testCompile group: 'com.h2database', name: 'h2', version: '1.4.199'
// compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
providedCompile 'javax.servlet:servlet-api:2.5'
providedCompile 'org.apache.tomcat:tomcat-jsp-api:8.5.43'
// https://mvnrepository.com/artifact/org.quartz-scheduler/quartz
compile group: 'org.quartz-scheduler', name: 'quartz', version: '2.3.0'
// https://mvnrepository.com/artifact/org.springframework/spring-test
testCompile group: 'org.springframework', name: 'spring-test', version: '5.1.4.RELEASE'
// https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa
compile group: 'org.springframework.data', name: 'spring-data-jpa', version: '2.1.10.RELEASE'
// https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '5.4.2.Final'
// https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-stream-rabbit
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-stream-rabbit', version: '2.1.3.RELEASE'
compile ("org.subethamail:subethasmtp:3.1.7")
// https://mvnrepository.com/artifact/org.springframework.integration/spring-integration-mail
compile group: 'org.springframework.integration', name: 'spring-integration-mail', version: '5.0.3.RELEASE'
// https://mvnrepository.com/artifact/org.springframework.integration/spring-integration-event
compile group: 'org.springframework.integration', name: 'spring-integration-event', version: '5.0.5.RELEASE'
// https://mvnrepository.com/artifact/org.springframework.integration/spring-integration-core
compile group: 'org.springframework.integration', name: 'spring-integration-core', version: '5.1.3.RELEASE'
}
jar {
manifest {
attributes "Main-Class": "edu.sharif.survey.App"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
configurations {
provided.all*.exclude group: 'javax.servlet'
}