forked from dokan-dev/dokan-java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
65 lines (53 loc) · 1.4 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
plugins {
id 'application'
id 'eclipse'
id 'maven-publish'
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}
repositories {
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compileOnly 'org.projectlombok:lombok:1.16.16'
compile 'commons-io:commons-io:2.5'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'net.java.dev.jna:jna:4.4.0'
compile 'net.java.dev.jna:jna-platform:4.4.0'
compile 'org.jetbrains.xodus:xodus-vfs:1.0.4'
}
eclipse {
project.natures 'org.springsource.ide.eclipse.gradle.core.nature'
}
// TODO: change this back to true when documentation is added
javadoc.failOnError = false
mainClassName = "com.dokany.java.examples.mirrorfs.MountMirrorFS"
jar {
doFirst {
manifest {
attributes 'Main-Class': 'com.dokany.java.examples.mirrorfs.MountMirrorFS'
if (!configurations.runtime.isEmpty()) {
attributes('Class-Path': configurations.runtime.collect{it.name}.join(' '))
}
}
}
}
task copyToLib(type: Copy) {
into "$buildDir/output/lib"
from configurations.runtime
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}