-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (72 loc) · 1.97 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
plugins {
id 'java'
id 'idea'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.1.0'
id 'com.diffplug.spotless' version '6.18.0'
}
group 'ch.unibas.dmi.dbis'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_17
idea {
project {
languageLevel = sourceCompatibility
}
module {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
mavenCentral()
gradlePluginPortal()
}
application {
mainClass = 'ch.unibas.dmi.dbis.dis.mom.Main'
}
run {
standardInput = System.in
}
dependencies {
// JUnit add-ons
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.0'
// LOG
implementation 'org.slf4j:slf4j-api:2.0.7'
implementation 'org.slf4j:slf4j-simple:2.0.7'
// AWS SDK
// implementation 'software.amazon.awssdk:aws-sdk-java:2.20.63'
implementation 'software.amazon.awssdk:sns:2.20.63'
implementation 'software.amazon.awssdk:sqs:2.20.63'
// JSON
implementation 'com.google.code.gson:gson:2.10.1'
}
test {
useJUnit()
useJUnitPlatform()
}
shadowJar {
zip64 true
}
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
java {
googleJavaFormat()
// fix formatting of type annotations
formatAnnotations()
// trail whitespaces
trimTrailingWhitespace()
// make sure every file has the following copyright header.
// optionally, Spotless can set copyright years by digging
// through git history (see "license" section below)
licenseHeader '/* (C)$YEAR */'
}
}