-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (55 loc) · 1.68 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
55
56
57
58
59
60
61
62
63
64
65
66
67
import com.google.cloud.tools.jib.gradle.JibExtension
plugins {
java
//if we use spring '"3.2.1"' build won't be reproducible anymore.
// in version 3.1.7 there is no issue
id("org.springframework.boot") version "3.2.1" apply false
// id("org.springframework.boot") version "3.1.7" apply false
id("io.spring.dependency-management") version "1.1.4"
id("com.google.cloud.tools.jib") version "3.4.0" apply false
}
java {
sourceCompatibility = JavaVersion.VERSION_17
}
allprojects {
apply(plugin = "java")
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
}
subprojects {
dependencies {
testImplementation("org.assertj:assertj-core:3.24.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2")
}
tasks.withType<Jar> {
this.isPreserveFileTimestamps = false
this.isReproducibleFileOrder = true
}
tasks.withType<Test> {
useJUnitPlatform()
reports {
junitXml.required = true
}
}
}
fun appServices(): List<Project> {
return listOf(project("template-backend"), project("user-backend"))
}
configure(appServices()) {
apply(plugin = "org.springframework.boot")
apply(plugin = "io.spring.dependency-management")
apply(plugin = "com.google.cloud.tools.jib")
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springdoc:springdoc-openapi-ui:1.6.12")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
configure<JibExtension> {
from {
image = "eclipse-temurin:17-jre@sha256:53b7b641066b6ad46cc97d9356317299eea9b9b0759f8a863b86de564c7672c4"
}
}
}