-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (70 loc) · 2 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
group 'tech.program-league'
version '0.0.1-Pre-Alpha'
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'war'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
task writeNewPom {
doLast {
pom {
//noinspection GroovyAssignabilityCheck
project {
inceptionYear '2017'
licenses {
license {
name 'GNU GENERAL PUBLIC LICENSE, Version 2.0'
url 'https://www.gnu.org/licenses/gpl-2.0.txt'
distribution 'repo'
}
}
}
}.writeTo("$projectDir/pom.xml")
}
}
dependencies {
testCompile name: 'junit', group: 'junit', version: '4.11'
compile group: 'org.jetbrains', name: 'annotations', version: '13.0'
compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.5'
// https://mvnrepository.com/artifact/org.eclipse.jetty.aggregate/jetty-all
compile group: 'org.eclipse.jetty.aggregate', name: 'jetty-all', version: '9.4.0.v20161208'
// https://mvnrepository.com/artifact/org.json/json
compile group: 'org.json', name: 'json', version: '20160810'
// https://mvnrepository.com/artifact/org.jsoup/jsoup
compile group: 'org.jsoup', name: 'jsoup', version: '1.10.2'
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.7'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.22'
}
test {
filter {
// include specific method in any of the tests
// includeTestsMatching "*UiCheck"
//include all tests from package
includeTestsMatching "dotest.*"
//include all integration tests
// includeTestsMatching "*IntegTest"
}
}
jar {
manifest {
attributes 'Main-Class': 'main.MainServer'
}
}
jacocoTestReport {
reports {
xml.enabled true
xml.destination "${buildDir}/reports/report.xml"
html.enabled true
html.destination "${buildDir}/reports/report_html"
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}