-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathbuild.gradle
102 lines (79 loc) · 2.6 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
buildscript {
ext { springBootVersion = '1.4.3.RELEASE' }
repositories {
mavenCentral()
maven { url "http://maven.restlet.org" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath 'org.springframework:springloaded:1.2.0.RELEASE'
}
}
allprojects {
apply plugin: 'application'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'java'
apply plugin: 'war'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext['hibernate.version'] = '4.3.11.Final'
ext['thymeleaf-layout-dialect.version'] = '2.1.2'
dependencyManagement {
applyMavenExclusions false
}
repositories {
mavenCentral()
maven { url "http://maven.restlet.org" }
}
configurations {
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
// comment if not using Solr-Core with Jetty
all*.exclude module: 'spring-boot-starter-tomcat'
}
dependencies {
compile 'org.springframework.boot:spring-boot-devtools'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.security:spring-security-test'
compile 'javax.servlet:javax.servlet-api'
compile 'org.javassist:javassist'
compile 'commons-dbcp:commons-dbcp:1.4'
compile 'org.apache.tomcat:tomcat-dbcp:8.5.4'
compile 'com.google.guava:guava-gwt:18.0'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'commons-beanutils:commons-beanutils:1.9.2'
compile 'javax.el:javax.el-api:3.0.1-b04'
compile 'org.jadira.usertype:usertype.extended:3.2.0.GA'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.6.1'
compile 'net.coobird:thumbnailator:0.4.8'
compile 'joda-time:joda-time:2.9.4'
runtime('com.h2database:h2')
runtime('mysql:mysql-connector-java')
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core"
testCompile "org.hamcrest:hamcrest-library"
compile ('ch.qos.logback:logback-classic:1.1.7') { exclude(module:'slf4j-api') }
}
springBoot {
mainClass = 'com.nixmash.springdata.mvc.Application'
}
task getHomeDir << {
println gradle.gradleHomeDir
}
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
task wrapper(type: Wrapper) { gradleVersion = '2.12' }
eclipse {
classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
}
}
}