-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (40 loc) · 1.04 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
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'idea'
sourceCompatibility = 1.8
version = '1.0'
mainClassName = 'Main'
repositories {
mavenCentral()
}
dependencies {
// tag::jetty[]
// compile group: 'com.github.seratch', name: 'jslack', version: '1.0.26'
compile group: 'com.ullink.slack', name: 'simpleslackapi', version: '1.2.0'
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'Main',
'Implementation-Title': 'Slack example',
'Implementation-Version': version
)
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
//with jar
}
sourceSets {
main {
java {
// include self written and generated code
srcDirs 'src/main/java'
}
}
// in future add test configuration here
}
//delete generated source code when clean
clean {
delete "build"
}