forked from jalgoarena/JAlgoArena-Submissions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (66 loc) · 1.99 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
buildscript {
ext.kotlin_version = '1.1.2-2'
ext.spring_version = '1.5.4.RELEASE'
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "jacoco"
}
apply plugin: 'kotlin'
apply plugin: 'org.springframework.boot'
apply from: "$rootDir/gradle/versioning.gradle"
group = 'jalgoarena'
description = """JAlgoArena Submissions"""
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
jar {
baseName = 'jalgoarena-submissions'
}
dependencies {
compile 'com.fasterxml.jackson.core:jackson-databind',
'com.fasterxml.jackson.core:jackson-core',
'com.fasterxml.jackson.core:jackson-annotations',
"com.fasterxml.jackson.module:jackson-module-kotlin",
"org.springframework.boot:spring-boot-starter-web",
"org.springframework.boot:spring-boot-starter-actuator",
'org.springframework.cloud:spring-cloud-starter-eureka',
"org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
'org.jetbrains.xodus:xodus-openAPI:1.0.5',
'org.jetbrains.xodus:xodus-entity-store:1.0.5'
testCompile 'junit:junit:4.12',
'pl.pragmatists:JUnitParams:1.0.5',
"org.springframework.boot:spring-boot-starter-test"
}
apply plugin: 'jacoco'
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
defaultTasks 'clean', 'bootRepackage'
task stage {
dependsOn 'bootRepackage'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Camden.SR7"
}
}
task releaseZip(type: Zip, dependsOn: 'bootRepackage') {
from('build/libs/') {
include('*.jar')
}
from 'run.sh'
archiveName "JAlgoArena-Submissions-${version}.zip"
destinationDir(file('build/libs'))
}