-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
46 lines (39 loc) · 1.83 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
apply plugin: 'java'
apply plugin: 'war'
group = 'net.mlgmag'
version = '0.1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.springframework', name: 'spring-webmvc', version: '5.0.4.RELEASE'
compile group: 'org.springframework', name: 'spring-context-support', version: '5.0.4.RELEASE'
compile group: 'org.springframework', name: 'spring-orm', version: '5.0.4.RELEASE'
compile group: 'org.springframework.data', name: 'spring-data-jpa', version: '2.0.3.RELEASE'
compile group: 'org.springframework.security', name: 'spring-security-config', version: '5.0.1.RELEASE'
compile group: 'org.springframework.security', name: 'spring-security-web', version: '5.0.1.RELEASE'
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '5.2.12.Final'
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
compile group: 'javax.transaction', name: 'jta', version: '1.1'
compile group: 'org.postgresql', name: 'postgresql', version: '42.2.2'
compile group: 'org.thymeleaf', name: 'thymeleaf-spring5', version: '3.0.9.RELEASE'
compile group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.1.1'
compile group: 'com.google.guava', name: 'guava', version: '24.1-jre'
compile group: 'com.github.jsimone', name: 'webapp-runner', version: '8.5.11.3'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.16.20'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
}
task stage() {
dependsOn clean, war
}
war.mustRunAfter clean
task copyToLib(type: Copy) {
into "$buildDir/server"
from(configurations.compile) {
include "webapp-runner*"
}
}
stage.dependsOn(copyToLib)