1
+ /**
2
+ * This is the Gradle build script.
3
+ */
4
+
5
+ description = " This is the CSA Prioritization Tool build file. It uses spring boot."
6
+
7
+ buildscript {
8
+ repositories {
9
+ mavenLocal()
10
+ mavenCentral()
11
+ maven { url " http://repo.spring.io/libs-release" }
12
+ }
13
+ dependencies {
14
+ // Spring boot integration with gradle
15
+ classpath(" org.springframework.boot:spring-boot-gradle-plugin:1.1.9.RELEASE" )
16
+ // Plugin to reload changed classes with out restarting
17
+ classpath(" org.springframework:springloaded:1.2.1.RELEASE" )
18
+ }
19
+ }
20
+
21
+ // Includes java plugin
22
+ apply plugin : ' war'
23
+ apply plugin : ' spring-boot'
24
+
25
+ war {
26
+ archiveName = ' ROOT.war'
27
+ destinationDir = file(' build/webapps' )
28
+ }
29
+
30
+ // Location of the libraries for the application. They are tried from top to bottom.
31
+ repositories {
32
+ mavenLocal()
33
+ mavenCentral()
34
+ maven { url " http://repo.spring.io/libs-release" }
35
+ maven { url " http://repository.primefaces.org" }
36
+ maven { url " http://lightadmin.org/nexus/content/repositories/snapshots" }
37
+ }
38
+
39
+ /*
40
+ * These dependencies actually determinate the behavior of the application. Spring boot
41
+ * Searches the jars and configures the app in a way that works with the libraries.
42
+ * This particular app, has support for Spring Mvc, JPA and Security. LightAdmin,
43
+ * Prime Faces with extensions, Postgresql and H2 databases, and an embedded Tomcat.
44
+ */
45
+ dependencies {
46
+
47
+ compile " org.springframework.boot:spring-boot-starter:1.1.9.RELEASE"
48
+
49
+ compile " org.springframework:spring-webmvc:4.1.2.RELEASE"
50
+ compile " org.springframework:spring-aspects:4.1.2.RELEASE"
51
+ compile " org.aspectj:aspectjweaver:1.8.4"
52
+
53
+ // Includes tomcat-embed-core, tomcat-embed-el, ecj
54
+ providedCompile " org.apache.tomcat.embed:tomcat-embed-jasper:8.0.15"
55
+ providedCompile " org.apache.tomcat.embed:tomcat-embed-logging-juli:8.0.15"
56
+
57
+ compile " com.sun.faces:jsf-api:2.2.8-02"
58
+ compile " com.sun.faces:jsf-impl:2.2.8-02"
59
+
60
+ // Includes primefaces
61
+ compile " org.primefaces.extensions:primefaces-extensions:3.0.0"
62
+
63
+ compile (" org.springframework.data:spring-data-jpa:1.7.1.RELEASE" ) {
64
+ exclude module : " aspectjrt"
65
+ }
66
+ compile " org.springframework:spring-orm:4.1.2.RELEASE"
67
+
68
+ compile " org.hibernate:hibernate-entitymanager:4.3.7.Final"
69
+
70
+ // Springloaded doesn't like Java 8 version
71
+ // compile "com.zaxxer:HikariCP-java6:2.2.5"
72
+
73
+ compile " org.hibernate:hibernate-validator:5.1.3.Final"
74
+ // compile "org.postgresql:postgresql:9.3-1102-jdbc41"
75
+ compile " com.h2database:h2:1.4.182"
76
+
77
+ compile " com.fasterxml.jackson.core:jackson-databind:2.4.3"
78
+
79
+ // This needs to remain 2.1.4 to make lightadmin to work
80
+ compile " org.springframework.data:spring-data-rest-webmvc:2.1.4.RELEASE"
81
+
82
+ compile " org.lightadmin:lightadmin:1.1.0.BUILD-SNAPSHOT"
83
+
84
+ testCompile " org.springframework:spring-test:4.1.2.RELEASE"
85
+ testCompile " junit:junit:4.11"
86
+ testCompile " org.mockito:mockito-core:1.10.8"
87
+ testCompile " org.hamcrest:hamcrest-library:1.3"
88
+
89
+ }
90
+
91
+ /*
92
+ * Gradle Wrapper task, it downloads Gradle and creates the proper environment for developers
93
+ * that get the source code from github.
94
+ */
95
+
96
+ task wrapper (type : Wrapper ) {
97
+ gradleVersion = ' 2.2.1'
98
+ }
0 commit comments