This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
60 lines (47 loc) · 1.48 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
apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'com.bmuschko.tomcat'
apply plugin: 'sonar-runner'
group = 'net.samagames'
version = ''
archivesBaseName = 'SamAdmin'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.3'
}
}
repositories {
mavenCentral()
}
sonarRunner {
sonarProperties {
property "sonar.projectKey", group + "." + archivesBaseName
property "sonar.projectName", archivesBaseName
property "sonar.login", sonaruser
property "sonar.password", sonarpass
}
}
dependencies {
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.0.1'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
compile group: 'com.google.code.gson', name: 'gson', version: '2.3.1'
compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.13'
compile group: 'redis.clients', name: 'jedis', version: '2.7.3'
providedCompile fileTree(dir: 'lib', include: '*.jar')
def tomcatVersion = '8.0.21'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}"
}
war {
into('WEB-INF/lib/') {
from "lib";
}
}