This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
forked from amatzen/SE02-SE-G02-SPRO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (75 loc) · 2.56 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
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.9'
}
mainClassName = 'dk.sdu.swe.Application'
sourceCompatibility = JavaVersion.VERSION_15
targetCompatibility = JavaVersion.VERSION_15
group 'dk.sdu.swe'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
implementation 'org.postgresql:postgresql:42.2.20'
implementation 'org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final'
implementation 'org.hibernate:hibernate-gradle-plugin:5.3.2.Final'
implementation 'org.hibernate:hibernate-ehcache:5.3.2.Final'
implementation 'com.google.guava:guava:29.0-jre'
implementation 'org.json:json:20201115'
implementation 'org.openjfx:javafx-fxml:15'
implementation 'com.jfoenix:jfoenix:9.0.10'
implementation 'commons-io:commons-io:2.8.0'
implementation 'at.favre.lib:bcrypt:0.9.0'
implementation 'com.sendgrid:sendgrid-java:4.0.1'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'javax.xml.bind:jaxb-api:2.3.1'
implementation 'org.apache.commons:commons-csv:1.8'
// Consumer System
implementation 'org.slf4j:slf4j-api:1.7.5'
implementation 'org.slf4j:slf4j-log4j12:1.7.5'
implementation 'org.mongodb:bson:4.2.3'
implementation 'io.javalin:javalin:3.13.7'
}
run {
if (file('.env').exists()) {
file('.env').readLines().each() {
if (!it.isEmpty() && !it.startsWith("#")) {
def pos = it.indexOf("=")
def key = it.substring(0, pos)
def value = it.substring(pos + 1)
if (System.getenv(key) == null) {
environment key, value
}
}
}
}
}
test {
if (file('.env').exists()) {
file('.env').readLines().each() {
if (!it.isEmpty() && !it.startsWith("#")) {
def pos = it.indexOf("=")
def key = it.substring(0, pos)
def value = it.substring(pos + 1)
if (System.getenv(key) == null) {
environment key, value
}
}
}
}
}
javafx {
version = "15.0.1"
modules = ['javafx.controls', 'javafx.fxml']
}
tasks.named('test') {
useJUnitPlatform()
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}