forked from mucommander/mucommander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (57 loc) · 2.35 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.2/userguide/java_library_plugin.html
*/
plugins {
id 'biz.aQute.bnd.builder'
}
test.useTestNG()
repositories.jcenter()
compileJava.options.compilerArgs += ['--release', '11']
dependencies {
compile project(":mucommander-commons-util")
compile project(":mucommander-core")
compile project(":mucommander-os-api")
compile project(":mucommander-process")
compile project(":mucommander-translator")
comprise 'net.java.dev.jna:jna-platform:5.5.0'
compile 'org.slf4j:slf4j-api:1.7.26'
compile 'com.googlecode.plist:dd-plist:1.23'
// the java.desktop module that contains macOS-specific extensions
compileOnly files('libs/java.desktop.jar')
// Use JUnit test framework
testImplementation 'org.testng:testng:6.11'
}
jar {
from configurations.comprise.collect { it.isDirectory() ? it : zipTree(it).matching {
exclude 'com/sun/jna/aix*/**'
exclude 'com/sun/jna/freebsd*/**'
exclude 'com/sun/jna/linux*/**'
exclude 'com/sun/jna/openbsd*/**'
exclude 'com/sun/jna/sunos*/**'
exclude 'com/sun/jna/win*/**'
exclude 'META-INF/**'
exclude 'com/sun/jna/platform/linux/**'
exclude 'com/sun/jna/platform/unix/**'
exclude 'com/sun/jna/platform/win32/**'
exclude 'com/sun/jna/platform/wince/**'
} }
bnd ('Bundle-Name': 'muCommander-os-macos',
'Bundle-Vendor': 'muCommander',
'Bundle-Description': 'macOS specifics',
'Bundle-DocURL': 'https://www.mucommander.com',
'Bundle-Activator': 'com.mucommander.desktop.macos.Activator',
'Export-Package': 'com.mucommander.ui.process',
'Import-Package': '!com.sun.jna.*,*',
'Specification-Title': "muCommander",
'Specification-Vendor': "Arik Hadas",
'Specification-Version': version,
'Implementation-Title': "muCommander",
'Implementation-Vendor': "Arik Hadas",
'Implementation-Version': revision.substring(0, 7),
'Build-Date': new Date().format('yyyyMMdd'),
'Build-Url': "https://www.mucommander.com/version/nightly.xml")
}