Skip to content

Commit

Permalink
update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
guimc233 committed Jul 26, 2024
1 parent 18284fc commit 5148fc1
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,19 @@ dependencies {
}

repositories {
if (System.getenv("CI")?.toBoolean() != true) {
maven("https://maven.aliyun.com/repository/public") // 阿里云国内代理仓库
}
maven("https://maven.aliyun.com/repository/public") // 阿里云国内代理仓库
maven { url = uri("https://repo.repsy.io/mvn/chrynan/public") }
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
}

mirai {
noTestCore = true
setupConsoleTestRuntime {
// 移除 mirai-core 依赖
classpath = classpath.filter {
!it.nameWithoutExtension.startsWith("mirai-core-jvm") ||
!it.nameWithoutExtension.startsWith("overflow-api")
}
}
}

0 comments on commit 5148fc1

Please sign in to comment.