-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
60 lines (50 loc) · 1.66 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
apply plugin: 'java'
apply plugin:'application'
apply plugin:'jacoco'
mainClassName = "org.dstadler.jgitfs.JGitFS"
repositories {
mavenCentral()
}
dependencies {
implementation 'commons-cli:commons-cli:1.9.0'
implementation 'org.dstadler:commons-dost:1.3.4'
implementation 'commons-io:commons-io:2.18.0'
implementation 'org.apache.commons:commons-lang3:3.17.0'
implementation 'net.java.dev.jna:jna:3.5.2'
implementation 'org.eclipse.jgit:org.eclipse.jgit:7.0.0.202409031743-r'
implementation 'com.google.guava:guava:33.3.1-jre'
implementation files('lib/fuse-jna-1.0.3.2.jar')
implementation 'jline:jline:2.14.6'
runtimeOnly 'org.slf4j:slf4j-simple:2.0.10'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.11.3'
testImplementation 'org.dstadler:commons-test:1.0.0.21'
}
wrapper {
gradleVersion = '8.5'
}
tasks.register('adjustWrapperPropertiesFile') {
doLast {
ant.replaceregexp(match: '^#.*', replace: '', flags: 'g', byline: true) {
fileset(dir: project.projectDir, includes: 'gradle/wrapper/gradle-wrapper.properties')
}
new File(project.projectDir, 'gradle/wrapper/gradle-wrapper.properties').with {
it.text = it.readLines().findAll { it }.sort().join('\n')
}
ant.fixcrlf(file: 'gradle/wrapper/gradle-wrapper.properties', eol: 'lf')
}
}
wrapper.finalizedBy adjustWrapperPropertiesFile
tasks.withType(JavaCompile).configureEach {
// avoid: :compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
options.warnings = false
options.compilerArgs = ['-Xlint:deprecation']
options.encoding = 'UTF-8'
}
jacoco {
toolVersion = '0.8.12'
}
jacocoTestReport {
reports {
xml.required = true
}
}