-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
57 lines (46 loc) · 1.25 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
plugins {
id 'groovy'
id 'application'
id "com.github.johnrengelman.shadow" version "5.2.0"
}
group 'org.meadowhawk'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation 'org.codehaus.groovy:groovy-all:2.5.8'
implementation 'com.sparkjava:spark-core:2.3'
implementation 'org.meadowhawk:IdenticonGenerator:1.1.0'
implementation 'com.atlassian.commonmark:commonmark:0.15.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation 'org.jetbrains:annotations:15.0'
testCompile platform("org.spockframework:spock-bom:2.0-M1-groovy-2.5")
testCompile "org.spockframework:spock-core"
}
application {
mainClassName = 'org.meadowhawk.identicon.service.App'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
shadowJar {
from "readme.md"
mergeServiceFiles()
}
task deployableShadow(type: Copy) {
group "shadow"
dependsOn 'build'
from('build/libs') {
include "**/IdenticonService-${version}-all.jar"
}
into 'build/libs'
rename { String fileName ->
fileName.replace("IdenticonService-${version}-all.jar", "IdenticonService.jar")
}
}