-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
72 lines (56 loc) · 1.83 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
apply plugin: 'java-library'
group = 'org.pyboof'
version = '0.43.1'
repositories {
mavenCentral()
mavenLocal()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
api group: 'org.boofcv', name: 'boofcv-core', version: project.version
api group: 'org.boofcv', name: 'boofcv-swing', version: project.version
api 'net.sf.py4j:py4j:0.10.9.7'
// needed to use Java 11+ syntax with Java 11 byte code
annotationProcessor('com.github.bsideup.jabel:jabel-javac-plugin:1.0.0')
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
java { toolchain { languageVersion = JavaLanguageVersion.of(17) } }
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
sourceCompatibility = 17
options.release = 11
}
// Create a jar which contains all the application and all dependencies
task allJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'PyBoof',
'Implementation-Version': version,
'Main-Class': 'pyboof.PyBoofEntryPoint'
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveName = 'PyBoof-all.jar'
destinationDir = file("${projectDir}/pyboof")
outputs.upToDateWhen { false }
from sourceSets.main.output
dependsOn configurations.runtimeClasspath
from { configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } } {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
}
test {
ignoreFailures true
reports.html.enabled = false
}
javadoc {
configure(options) {
failOnError = false
}
}
sourceSets {
main { java { srcDir 'java/src' } }
test { java { srcDir 'java/test' } }
}
wrapper {
distributionType = Wrapper.DistributionType.BIN
gradleVersion = '7.3.3'
}