-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
50 lines (38 loc) · 965 Bytes
/
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
apply plugin: 'java'
apply plugin: 'gradle-one-jar'
version = '1.0'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.rholder:gradle-one-jar:1.0.4'
}
}
targetCompatibility = 1.7
sourceCompatibility = 1.7
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
task createRelease(type: OneJar) {
mainClass = 'com.chairbender.slackbot.resistance.SlackBotResistance'
}
task copyToLib(type: Copy) {
into "$buildDir/libs"
from(configurations.compile)
}
task stage {
dependsOn jar
}
stage.dependsOn(copyToLib)
dependencies {
compile 'com.github.Ullink:simple-slack-api:2ec3a0ac7e'
compile 'org.eclipse.jetty:jetty-server:8.1.18.v20150929'
}
jar {
manifest {
attributes 'Main-Class': 'com.chairbender.slackbot.resistance.SlackBotResistance'
attributes 'Class-Path': configurations.compile.collect { it.getName() }.join(' ')
}
}