-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.gradle
83 lines (67 loc) · 2.13 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
83
buildscript {
ext.fasterxml_version = '2.9.5'
ext.xodus_version = '1.2.2'
}
plugins {
id "jacoco"
id "org.jetbrains.kotlin.jvm" version "1.2.40"
id 'org.springframework.boot' version '1.5.10.RELEASE'
}
apply plugin: 'idea'
apply plugin: 'io.spring.dependency-management'
apply from: "$rootDir/gradle/versioning.gradle"
group = 'jalgoarena'
description = """JAlgoArena Problems"""
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
jar {
baseName = 'jalgoarena-problems'
}
dependencies {
compile "com.fasterxml.jackson.core:jackson-databind:$fasterxml_version",
"com.fasterxml.jackson.core:jackson-core:$fasterxml_version",
"com.fasterxml.jackson.core:jackson-annotations:$fasterxml_version",
"com.fasterxml.jackson.module:jackson-module-kotlin:$fasterxml_version",
"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",
"org.jetbrains.kotlin:kotlin-reflect",
"org.jetbrains.xodus:xodus-openAPI:$xodus_version",
"org.jetbrains.xodus:xodus-entity-store:$xodus_version",
'net.logstash.logback:logstash-logback-encoder:5.1'
testCompile 'junit:junit:4.12',
"com.winterbe:expekt:0.5.0",
"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:Edgware.SR3"
}
}
task releaseZip(type: Zip, dependsOn: 'bootRepackage') {
from('build/libs/') {
include('*.jar')
}
from 'run.sh'
from('ProblemsStore') {
into('ProblemsStore')
exclude('*.lck')
}
archiveName "JAlgoArena-Problems-${version}.zip"
destinationDir(file('build/libs'))
}