41 lines
1.1 KiB
Groovy
41 lines
1.1 KiB
Groovy
|
plugins {
|
||
|
id 'org.springframework.boot'
|
||
|
id 'io.spring.dependency-management'
|
||
|
}
|
||
|
allprojects {
|
||
|
repositories {
|
||
|
maven { url = uri("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/") }
|
||
|
mavenCentral()
|
||
|
gradlePluginPortal()
|
||
|
mavenLocal()
|
||
|
}
|
||
|
group = "${projectGroup}" as Object
|
||
|
version = "${projectVersion}" as Object
|
||
|
}
|
||
|
subprojects {
|
||
|
apply plugin: 'java'
|
||
|
apply plugin: 'org.springframework.boot'
|
||
|
apply plugin: 'io.spring.dependency-management'
|
||
|
configurations {
|
||
|
compileOnly {
|
||
|
extendsFrom annotationProcessor
|
||
|
}
|
||
|
all*.exclude group: "org.springframework.boot", module: "spring-boot-starter-tomcat"
|
||
|
}
|
||
|
dependencies {
|
||
|
implementation platform("com.seepine:spring-boot-dependencies:3.1.0")
|
||
|
implementation platform("cn.hutool:hutool-bom:5.8.16")
|
||
|
compileOnly "org.projectlombok:lombok:${lombokVersion}"
|
||
|
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
|
||
|
}
|
||
|
java {
|
||
|
sourceCompatibility = JavaVersion.VERSION_17
|
||
|
targetCompatibility = JavaVersion.VERSION_17
|
||
|
}
|
||
|
compileJava {
|
||
|
options.encoding = 'UTF-8'
|
||
|
options.compilerArgs << '-parameters'
|
||
|
}
|
||
|
}
|
||
|
|