-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (35 loc) · 925 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
plugins {
id 'java'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
defaultTasks 'clean', 'build', 'harmonibites'
version '1.0.1-SNAPSHOT'
group 'deathbycode.hackploy2017'
jar {
baseName = rootProject.name
manifest {
attributes 'Main-Class': 'deathbycode.hackpoly2017.Bootstrap'
}
}
build.dependsOn shadowJar {
dependencies {
exclude 'META-INF/*'
}
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.year4000.utilities:core:master-SNAPSHOT'
compile 'com.github.year4000.utilities:core-scheduler:master-SNAPSHOT'
compile 'org.apache.httpcomponents:httpclient:4.5.3'
compile 'com.guigarage:flatter:0.7'
}
// Run the project
task harmonibites(dependsOn: build) << {
exec {
commandLine "java -jar build/libs/${rootProject.name}-${version}-all.jar".split(" ")
}
}