forked from caprica/vlcj-natives
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (49 loc) · 1.86 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
plugins {
id 'java'
id 'idea'
}
base {
archivesName = id
libsDirectory = new File("builtjars/")
}
test {
useJUnitPlatform()
// FIXME: gradle doesn't let me set jvm arguments on tests
setJvmArgs(List.of("-Dvlc4j.userDiscoveryPath=c:\\users\\J-RAP"))
}
java {
withSourcesJar()
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
}
println("Gradle Java: ${JavaVersion.current()}")
println("Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}, Encoding: ${System.getProperty "file.encoding"}")
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://repo.spongepowered.org/maven" }
}
dependencies {
compileOnly 'uk.co.caprica:vlcj-osx-stubs:1.0.0'
compileOnly 'net.java.dev.jna:jna:4.4.0'
compileOnly 'net.java.dev.jna:platform:3.4.0'
compileOnly 'org.apache.logging.log4j:log4j-api:2.15.0'
compileOnly 'org.apache.logging.log4j:log4j-core:2.17.1'
// TEST DEPENDENCIES
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testImplementation 'org.apache.logging.log4j:log4j-api:2.15.0'
testImplementation 'org.apache.logging.log4j:log4j-core:2.17.1'
testImplementation 'net.java.dev.jna:jna:4.4.0'
testImplementation 'net.java.dev.jna:platform:3.4.0'
}
jar {
manifest {
attributes "Specification-Title": id
attributes "Specification-Vendor": authors
attributes "Specification-Version": version
attributes "Implementation-Title": name
attributes "Implementation-Version": version
attributes "Implementation-Vendor": authors
attributes "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
}
}