-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
44 lines (35 loc) · 1.02 KB
/
build.gradle
File metadata and controls
44 lines (35 loc) · 1.02 KB
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
plugins {
id 'org.springframework.boot' version '3.3.7' apply false
id 'io.spring.dependency-management' version '1.1.7' apply false
id 'com.google.protobuf' version '0.9.4' apply false
}
def commonLibName = 'CommonLibrary'
subprojects {
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
}
configure(subprojects.findAll { it.name != commonLibName }) {
apply plugin: 'war'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
tasks.named('bootWar') {
manifest {
attributes('Dependencies': 'jdk.unsupported')
}
}
}
project(':CommonLibrary') {
apply plugin: 'java-library'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.google.protobuf'
}