forked from nattyco/fermat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (42 loc) · 1.2 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'gradle-one-jar'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '1.6.1'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.rholder:gradle-one-jar:1.0.4'
classpath fileTree(dir: 'libs', include: '*.jar')
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':fermat-api')
compile project(':fermat-core')
compile project(':fermat-osa-linux-core')
}
sourceSets {
main {
resources {
srcDir 'src/main/resources'
}
}
}
ext.sharedManifest = manifest {
attributes 'One-Jar-URL-Factory': 'com.simontuffs.onejar.JarClassLoader$FileURLFactory',
'One-Jar-Show-Expand': 'true'
}
task linuxCoreJar(type: OneJar) {
manifest = project.manifest {
from sharedManifest
}
mainClass = 'com.bitdubai.linux.core.app.FermatLinuxAppMain'
mainClassName = 'com.bitdubai.linux.core.app.FermatLinuxAppMain'
archiveName = project.name + '-with-dependencies-' + version + ".jar"
additionalDir = file('src/main/resources/one-jar.properties')
}