/
build.gradle
109 lines (87 loc) · 2.89 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
buildscript {
ext { springBootVersion = '1.5.3.RELEASE' }
repositories {
mavenCentral()
// maven { url 'http://repo.spring.io/snapshot' }
// maven { url 'http://repo.spring.io/milestone' }
maven { url "http://maven.restlet.org" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath 'org.springframework:springloaded:1.2.6.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['spring-data-releasetrain.version']="Hopper-SR7"
// ext['hibernate.version']="5.1.4.Final"
dependencyManagement {
applyMavenExclusions false
}
repositories {
mavenCentral()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://maven.restlet.org" }
}
configurations {
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
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:3.1.0'
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 'org.jadira.usertype:usertype.extended:5.0.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'
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile 'javax.el:javax.el-api:2.2.4'
compile 'org.glassfish.web:javax.el:2.2.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.2.2') { exclude(module:'slf4j-api') }
}
springBoot {
mainClass = 'com.nixmash.blog.mvc.Application'
}
task getHomeDir << {
println gradle.gradleHomeDir
}
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
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'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.1'
distributionType = 'all'
}