-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
38 lines (32 loc) · 1.1 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.6.7" apply false
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
val kotlinVer = "1.6.21"
kotlin("jvm") version kotlinVer apply false
kotlin("plugin.spring") version kotlinVer apply false
kotlin("plugin.jpa") version kotlinVer apply false
}
group = "io.github.illusson"
version = "1.0-SNAPSHOT"
subprojects {
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
}
///** 打包 asoj-springboot,可添加参数 -PskipAssembleReact 跳过打包 asoj-react */
//tasks.register("assembleAsojSpringBoot") {
// if (!project.hasProperty("skipAssembleReact")) {
// // 跳过打包 asoj-react
// dependsOn("asoj-frontend:assembleAsojReact")
// }
// dependsOn("asoj-frontend:packageAsojReact", "asoj-springboot:bootJar")
//}
//
///** 打包 asoj */
//tasks.register("assembleAsoj") {
// dependsOn("assembleAsojSpringBoot", "asoj-judger:assembleAsojJudger")
//}