|
@@ -7,6 +7,17 @@ plugins {
|
|
group = 'com.incubator.app'
|
|
group = 'com.incubator.app'
|
|
version = '1.0-SNAPSHOT'
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
+// 项目依赖
|
|
|
|
+dependencies {
|
|
|
|
+ // 子模块依赖
|
|
|
|
+ implementation project(':incubator-game')
|
|
|
|
+
|
|
|
|
+ // 测试依赖
|
|
|
|
+ testImplementation platform("org.junit:junit-bom:5.10.0")
|
|
|
|
+ testImplementation "org.junit.jupiter:junit-jupiter-api"
|
|
|
|
+ testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
|
|
|
|
+}
|
|
|
|
+
|
|
// 使用 Gradle 的现代 API 定义源集
|
|
// 使用 Gradle 的现代 API 定义源集
|
|
sourceSets {
|
|
sourceSets {
|
|
main {
|
|
main {
|
|
@@ -70,17 +81,6 @@ tasks.shadowJar {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
}
|
|
|
|
|
|
-// 项目依赖
|
|
|
|
-dependencies {
|
|
|
|
- // 子模块依赖
|
|
|
|
- implementation project(':incubator-game')
|
|
|
|
-
|
|
|
|
- // 测试依赖
|
|
|
|
- testImplementation platform("org.junit:junit-bom:5.10.0")
|
|
|
|
- testImplementation "org.junit.jupiter:junit-jupiter-api"
|
|
|
|
- testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// 配置测试任务
|
|
// 配置测试任务
|
|
tasks.test {
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
useJUnitPlatform()
|