-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
78 lines (63 loc) · 1.94 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
plugins {
id 'java'
id 'application'
id 'org.springframework.boot' version '2.5.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'net.kyori.blossom' version '1.2.0'
}
group = 'com.herocc.school.aspencheck'
version = '3.3-SNAPSHOT'
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11
mainClassName = group + ".AspenCheck"
repositories {
mavenCentral()
}
dependencies {
// Not sure best practice for these three are `implementation` or `api`
implementation 'org.jsoup:jsoup:1.15.3' // Web Parser
implementation 'org.mnode.ical4j:ical4j:3.2.13' // iCal parser
implementation 'org.apache.commons:commons-csv:1.4' // Parsing CSV Files
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springdoc:springdoc-openapi-ui:1.7.0'
implementation 'org.springdoc:springdoc-openapi-javadoc:1.7.0'
implementation 'com.rollbar:rollbar-java:1.7.8'
compileOnly 'org.projectlombok:lombok:1.18.30' // Lombok Library
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
// Allows using `java -jar`
// TODO probably a better way to fix this (via spring?)
jar {
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.collect { it.getName() }.join(' '),
'Main-Class': mainClassName,
'Version': archiveVersion
)
}
}
test {
useJUnitPlatform()
}
blossom {
replaceToken '@@VERSION@@', version
}
task stage(type: Copy, dependsOn: [clean, build]) {
from bootJar.archiveFile
into project.rootDir
rename {
'app.jar'
}
}
stage.mustRunAfter(clean)
clean.doLast {
project.file('app.jar').delete()
}
wrapper {
distributionType = Wrapper.DistributionType.BIN
gradleVersion = '8.2'
}