-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (67 loc) · 2.1 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
/*
* abfall - convert ICS format trash calendar into a single Excel sheet
* Copyright (C) 2011-2024 Thomas Jensen
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License, version 3, as published by the Free Software Foundation.
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program. If not, see
* <https://www.gnu.org/licenses/>.
*/
plugins {
id 'java'
id 'application'
id 'idea'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'net.sf.biweekly:biweekly:0.6.8'
implementation 'org.apache.poi:poi:4.1.2'
implementation 'org.apache.poi:poi-ooxml:4.1.2'
implementation 'org.apache.poi:ooxml-schemas:1.4'
implementation 'commons-cli:commons-cli:1.6.0'
implementation 'org.apache.logging.log4j:log4j-api:2.22.1'
implementation 'org.apache.logging.log4j:log4j-core:2.22.1'
implementation 'org.apache.logging.log4j:log4j-iostreams:2.22.1'
}
application {
mainClass = 'com.thomasjensen.abfall.Main'
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation' << '-proc:none'
}
idea.module {
downloadSources = true;
downloadJavadoc = true;
excludeDirs += file('.idea')
excludeDirs += file('_support')
}
idea.project {
jdkName = JavaVersion.VERSION_1_8
languageLevel = JavaVersion.VERSION_1_8
}
jar {
into('META-INF/') {
from 'LICENSE.md'
}
}
distributions {
main {
contents {
from('LICENSE.md')
}
}
}
tasks.named('installDist').configure {
destinationDir = new File(buildDir, 'distributions/unpacked')
}
tasks.named('build').configure { it.dependsOn tasks.installDist }