-
-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (41 loc) · 1.11 KB
/
build.gradle
File metadata and controls
49 lines (41 loc) · 1.11 KB
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
plugins {
id 'java'
}
group = 'com.github.dhorions'
/*
* Gets the version name from the latest Git tag
*/
def getVersionName = { ->
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
} catch (Exception e) {
return '1.8.2'
}
}
version = getVersionName()
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.pdfbox:pdfbox:3.0.6'
implementation 'org.slf4j:slf4j-api:2.0.17'
implementation 'org.apache.commons:commons-csv:1.14.1'
implementation 'org.jsoup:jsoup:1.22.1'
testImplementation 'org.junit.vintage:junit-vintage-engine:6.0.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'junit:junit:4.13.2'
testImplementation 'commons-io:commons-io:2.21.0'
testRuntimeOnly 'org.slf4j:slf4j-simple:2.0.17'
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.named('test') {
useJUnitPlatform()
}