-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
102 lines (81 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
/*
* MIT License
*
* Copyright (c) 2020 Diego Urrutia-Astorga <durrutia@ucn.cl>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
apply plugin: 'java'
// Plugin to check for the latest libraries version.
apply plugin: "com.github.ben-manes.versions"
// Build configuration
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath "com.github.ben-manes:gradle-versions-plugin:0.28.0"
}
}
// Main group + version
group 'cl.ucn.disc.pdbp.tdd'
version '0.0.3'
// The java version code
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
// Testing configuration
test {
// Enable JUnit Platform (a.k.a. JUnit 5) support
useJUnitPlatform()
// failFast = true
// Run the test in parallel
systemProperty 'junit.jupiter.execution.parallel.enabled', 'true'
systemProperty 'junit.jupiter.execution.parallel.mode.default', 'concurrent'
}
// The external repositories
repositories {
mavenCentral()
google()
jcenter()
}
// The Dependencies
dependencies {
// JUnit
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0-M1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0-M1'
// SLF4J
implementation 'org.slf4j:slf4j-api:1.8.0-beta4'
implementation 'ch.qos.logback:logback-classic:1.3.0-alpha5'
implementation 'org.slf4j:slf4j-simple:1.8.0-beta4'
// ORM Lite
implementation 'com.j256.ormlite:ormlite-core:5.1'
implementation 'com.j256.ormlite:ormlite-jdbc:5.1'
// Database driver
implementation 'com.h2database:h2:1.4.200'
implementation 'org.xerial:sqlite-jdbc:3.31.1'
// ToString provider.
implementation 'org.apache.commons:commons-lang3:3.10'
// HTTP Server
implementation 'io.javalin:javalin:3.8.0'
implementation 'com.google.code.gson:gson:2.8.6'
}