-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
88 lines (56 loc) · 3.46 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
plugins {
id 'java'
id 'war'
}
group 'distributedsystemsm'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
def wildfly_home = "/home/nghiselli/Projects/DistributedSystemsM/JBoss/wildfly-17.0.1.Final"
repositories {
mavenCentral()
}
dependencies {
// LOG -------------------------------------------------------------------------------------------------------
compile 'ch.qos.logback:logback-classic:1.1.3'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.12.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.12.1'
// DB -------------------------------------------------------------------------------------------------------
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.17' // ---> jdbc driver
// SERVLET -------------------------------------------------------------------------------------------------------
// https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
// https://mvnrepository.com/artifact/javax.servlet/jstl
compile group: 'javax.servlet', name: 'jstl', version: '1.2' // ---> taglib
// SPRING -------------------------------------------------------------------------------------------------------
// https://mvnrepository.com/artifact/org.springframework/spring-core
compile group: 'org.springframework', name: 'spring-core', version: '5.1.10.RELEASE'
compile group: 'org.springframework', name: 'spring-context', version: '5.1.10.RELEASE'
compile group: 'org.springframework', name: 'spring-orm', version: '5.1.10.RELEASE'
//compile group: 'org.springframework', name: 'spring-web', version: '5.1.10.RELEASE'
// https://mvnrepository.com/artifact/org.springframework/spring-webmvc
compile group: 'org.springframework', name: 'spring-webmvc', version: '5.1.10.RELEASE'
// https://mvnrepository.com/artifact/org.springframework/org.springframework.web.servlet
//compile group: 'org.springframework', name: 'org.springframework.web.servlet', version: '3.2.2.RELEASE'
compile 'org.springframework:spring-webmvc:4.1.6.RELEASE'
// HIBERNATE -------------------------------------------------------------------------------------------------------
compile group: 'commons-dbcp', name: 'commons-dbcp', version: '1.2.2' // ---> org.apache.commons.dbcp.BasicDataSource
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.4.5.Final'// ---> ORG.HIBERNATE.*
compile group: 'org.hibernate', name: 'hibernate-validator', version: '6.0.17.Final'// ---> JAVAX.VALIDATION
// https://mvnrepository.com/artifact/javax.persistence/persistence-api ---> JAVAX.PERSISTENCE.* (ie. annotations)
compile group: 'javax.persistence', name: 'persistence-api', version: '1.0.2'
// TESTS -------------------------------------------------------------------------------------------------------
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task deployWar( ){
println("running dependencies.....")
dependsOn('war')
println("dependencies resolved.....")
println("deployin war package.....")
copy(){
from "$buildDir/libs/spring-1.0-SNAPSHOT.war"
into "$wildfly_home/standalone/deployments/"
}
println("Application deployed!")
}