-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
54 lines (47 loc) · 1.17 KB
/
build.gradle.kts
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
import net.researchgate.release.ReleaseExtension
plugins {
base
id("idea")
id("com.diffplug.spotless")
id("net.saliman.properties")
alias(libs.plugins.release)
}
allprojects {
group = "io.github.pintowar"
description = "Sample CVRP Application using Kotlin + Jenetics/Jsprit/Optaplanner/Or-Tools/Timefold + Graphhopper + Spring Boot + Websockets"
}
repositories {
mavenLocal()
mavenCentral()
}
spotless {
format("misc") {
target("**/.gitignore", "README.md")
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
}
configure<ReleaseExtension> {
tagTemplate.set("v\$version")
with(git) {
requireBranch.set("master")
}
}
tasks.afterReleaseBuild {
dependsOn(":opta-router-app:jib")
}
tasks.register("assembleApp") {
val webServ = ":opta-router-app"
dependsOn("${webServ}:build")
group = "build"
description = "Build web app"
doLast {
copy {
from(files(project(webServ).layout.buildDirectory.dir("libs").get())) {
include("opta-router-app-${version}.jar")
}
into("$rootDir/build/app.jar")
}
}
}