Skip to content

Commit

Permalink
合并编译脚本配置
Browse files Browse the repository at this point in the history
  • Loading branch information
qmdx committed Sep 6, 2024
1 parent 5bcb797 commit 6be5ada
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ subprojects {
apply plugin: 'signing'
apply plugin: 'io.spring.dependency-management'

tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:-serial"
options.encoding = 'UTF-8'
options.warnings = false
}

tasks.named('test') {
useJUnitPlatform()
}

// 仓库配置
repositories {
mavenLocal()
Expand Down Expand Up @@ -87,15 +77,16 @@ subprojects {
testCompileOnly("org.springframework.boot:spring-boot-starter-test")
}

tasks.named('test') {
useJUnitPlatform()
}

// 编译环境 JDK-1.8+
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

tasks.named('test') {
useJUnitPlatform()
}

tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:-serial"
options.encoding = 'UTF-8'
options.warnings = false
options.deprecation = true
Expand Down

0 comments on commit 6be5ada

Please sign in to comment.