forked from advicewook/FileBrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (27 loc) · 886 Bytes
/
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
apply plugin: 'java'
apply plugin: 'eclipse'
archivesBaseName = 'FileBrowser'
version = '1.0-SNAPSHOT'
sourceCompatibility = 17
sourceSets.main.java.srcDirs = ['src']
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '6.5.0.202303070854-r'
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit.ui', version: '6.5.0.202303070854-r'
implementation 'org.slf4j:slf4j-simple:1.7.25'
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'FileBrowser'
}
from (configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }){
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
}