-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (41 loc) · 1004 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
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/4.3.1/userguide/tutorial_java_projects.html
*/
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
task docker(type: Exec) {
dependsOn 'clean'
dependsOn 'build'
dependsOn 'shadowJar'
println 'Generating Docker image...'
commandLine 'docker-compose', 'build'
}
task run(type: Exec) {
dependsOn 'docker'
println 'Running Docker image...'
commandLine 'docker-compose', 'up'
}
jar {
manifest {
attributes("Main-Class": "com.example.Application")
}
}
repositories {
jcenter()
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
}
}
dependencies {
compile project("alderaan-entrypoint")
testCompile 'junit:junit:4.12'
}