-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
84 lines (69 loc) · 2.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
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
84
plugins {
id 'java'
id 'eclipse'
id 'idea'
id 'org.springframework.boot' version '2.6.1'
id "org.sonarqube" version "3.3"
id "com.github.hierynomus.license" version "0.16.1"
}
apply plugin: 'io.spring.dependency-management'
task preBuild() {
doLast {
println 'Generating version number from git.'
new File("build/resources/main/VERSION").withWriter { out ->
out.println 'git rev-parse HEAD'.execute().text
}
}
}
build.dependsOn preBuild
sonarqube {
properties {
property "sonar.projectKey", "pivio_pivio-client"
}
}
license {
ignoreFailures true
header = file('LICENSE')
}
jar {
enabled = false
}
bootJar {
archiveBaseName = 'pivio'
archiveVersion = ''
launchScript()
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
springBoot {
mainClass = "io.pivio.AppLauncher"
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter')
implementation("org.springframework:spring-web")
implementation('com.fasterxml.jackson.core:jackson-databind')
implementation('com.github.fge:json-schema-validator:2.2.6')
implementation('com.fasterxml.jackson.module:jackson-module-jsonSchema')
//TODO: Get rid of jackson-mapper-asl needed for deprecated class org.codehaus.jackson.schema.JsonSchema
//TODO: and solely use jackson-module-jsonSchema. Also prevents mix of Jackson versions.
implementation('org.codehaus.jackson:jackson-mapper-asl:1.9.13')
implementation('org.tmatesoft.svnkit:svnkit:1.10.3')
implementation('org.eclipse.jgit:org.eclipse.jgit:6.0.0.202111291000-r')
implementation('commons-cli:commons-cli:1.5.0')
implementation('org.jooq:joox:1.6.2')
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation('org.junit.vintage:junit-vintage-engine')
}
eclipse {
classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
}
}
tasks.named('wrapper') {
gradleVersion = '7.3.1'
distributionType = Wrapper.DistributionType.ALL
}