-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
102 lines (87 loc) · 2.05 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
group 'uptospeed'
version '0.9'
apply plugin: 'java'
apply plugin: 'distribution'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'eclipse'
targetCompatibility = 1.8
sourceCompatibility = 1.8
archivesBaseName = 'seeknow'
repositories {
// mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/groups/public/" }
maven { url "http://labs.consol.de/maven/repository/" }
}
dependencies {
// support: apache commons
compile("commons-io:commons-io:+")
compile("org.apache.commons:commons-lang3:+")
compile("org.apache.commons:commons-collections4:+")
// support: sikuli
compile('com.sikulix:sikulixlibswin:+')
// compile('com.sikulix:sikulixlibsmac:+')
compile('com.nativelibs4java:bridj:0.7.0')
// support: gson
compile("com.google.code.gson:gson:+")
// support: logback
compile("ch.qos.logback:logback-classic:1.2.3")
compile("ch.qos.logback:logback-core:1.2.3")
compile fileTree(dir: 'lib', include: '*.jar')
testCompile("junit:junit:4.12")
}
test {
exclude '**/*Manual*'
}
// create a single Jar with all dependencies
// run: gradle singleDependentJar
task singleDependentJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'org.uptospeed.seeknow',
'Implementation-Version': '1.0'
}
baseName = project.name
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "ImagesAPI.sikuli/"
exclude "JavaScript/"
exclude "Lib/"
exclude "META-INF/maven/"
exclude "META-INF/services/"
exclude "META-INF/*.txt"
exclude "Support/"
exclude "com/android/"
exclude "com/google/gson/"
exclude "junit/"
exclude "org/apache/"
exclude "org/slf4j/"
exclude "ch/"
}
with jar {
exclude('logback.xml')
}
}
artifacts {
// archives jar
// archives sourcesJar
archives singleDependentJar
}
task distro {
group "Build"
description "build project clean room and update lib/ directory"
mustRunAfter clean
dependsOn build
}
distributions {
main {
contents {
into('lib') {
from Jar
from 'lib'
from(project.configurations.runtime)
}
}
}
}