Skip to content

Commit

Permalink
依赖更新
Browse files Browse the repository at this point in the history
  • Loading branch information
elveahuang committed Oct 11, 2024
1 parent 8724cd1 commit 8e2b719
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
32 changes: 27 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
id("io.spring.dependency-management") version "1.1.6"
id("com.github.spotbugs") version "6.0.23" apply false
id("org.springframework.boot") version "3.3.4" apply false
id("org.jetbrains.kotlin.jvm") version "2.0.20" apply false
id("org.jetbrains.kotlin.jvm") version "2.0.21" apply false
id("org.graalvm.buildtools.native") version "0.10.3" apply false
}

Expand Down Expand Up @@ -68,12 +68,12 @@ allprojects {
mavenBom("de.codecentric:spring-boot-admin-dependencies:3.3.4")
mavenBom("io.grpc:grpc-bom:1.68.0")
mavenBom("cn.hutool:hutool-bom:5.8.32")
mavenBom("me.ahoo.cosid:cosid-bom:2.9.8")
mavenBom("org.mockito:mockito-bom:5.14.1")
mavenBom("io.netty:netty-bom:4.1.114.Final")
mavenBom("me.ahoo.cosid:cosid-bom:2.9.9")
mavenBom("org.mockito:mockito-bom:5.11.0")
mavenBom("io.netty:netty-bom:4.1.113.Final")
mavenBom("org.apache.groovy:groovy-bom:4.0.23")
mavenBom("com.baomidou:mybatis-plus-bom:3.5.8")
mavenBom("org.jetbrains.kotlin:kotlin-bom:2.0.20")
mavenBom("org.jetbrains.kotlin:kotlin-bom:2.0.21")
mavenBom("org.springframework.ai:spring-ai-bom:1.0.0-M3")
mavenBom("org.springframework.modulith:spring-modulith-bom:1.2.4")
mavenBom("org.springframework.shell:spring-shell-dependencies:3.3.3")
Expand Down Expand Up @@ -205,11 +205,19 @@ allprojects {
dependency("org.webjars:popper.js:2.11.7")
dependency("org.webjars:bootstrap:5.3.3")
dependency("org.webjars.npm:bootstrap-icons:1.11.3")
// 辅助用于排除重复的依赖
dependency("org.antlr:antlr4-runtime:4.13.2")
dependency("org.apache.httpcomponents:httpcore:4.4.16")
dependency("org.apache.httpcomponents:httpcore-nio:4.4.16")
dependency("org.apache.httpcomponents:httpmime:4.5.14")
dependency("org.apache.httpcomponents:httpclient:4.5.14")
}
}

// 强制排除未使用的库
configurations.configureEach {
exclude(module = "groovy")
exclude(module = "groovy-json")
exclude(module = "android-json")
exclude(module = "commons-logging")
exclude(module = "commons-dbcp")
Expand All @@ -229,7 +237,21 @@ allprojects {
exclude(module = "bcpkix-jdk15on")
exclude(module = "bcprov-jdk15on")
exclude(module = "bcutil-jdk15on")
// shardingsphere
exclude(module = "shardingsphere-test-util")
exclude(module = "shardingsphere-infra-expr-groovy")
exclude(module = "shardingsphere-infra-database-clickhouse")
exclude(module = "shardingsphere-infra-database-mariadb")
exclude(module = "shardingsphere-infra-database-sql92")
exclude(module = "shardingsphere-infra-database-sqlserver")
exclude(module = "shardingsphere-infra-database-oracle")
exclude(module = "shardingsphere-infra-database-opengauss")
exclude(module = "shardingsphere-infra-database-h2")
exclude(module = "shardingsphere-parser-sql-sql92")
exclude(module = "shardingsphere-parser-sql-sqlserver")
exclude(module = "shardingsphere-parser-sql-oracle")
exclude(module = "shardingsphere-parser-sql-opengauss")
exclude(module = "shardingsphere-parser-sql-h2")
}
}

Expand Down
6 changes: 5 additions & 1 deletion platform-boot-server/app-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,19 @@ graalvmNative {
named("main") {
buildArgs.add("--initialize-at-build-time=org.slf4j")
buildArgs.add("--initialize-at-build-time=ch.qos.logback")
buildArgs.add("--initialize-at-build-time=org.slf4j.LoggerFactory")
buildArgs.add("--initialize-at-run-time=sun.net.dns.ResolverConfigurationImpl")
buildArgs.add("--initialize-at-run-time=me.ahoo.cosid.spring.redis.SpringRedisMachineIdDistributor")
buildArgs.add("--initialize-at-run-time=me.ahoo.cosid.machine.ManualMachineIdDistributor")
buildArgs.add("--trace-class-initialization=org.springframework.util.ClassUtils")
buildArgs.add("-H:+ReportUnsupportedElementsAtRuntime")
buildArgs.add("-H:+ReportExceptionStackTraces")
buildArgs.add("-H:+UnlockExperimentalVMOptions")
buildArgs.add("-H:+PrintClassInitialization")
sharedLibrary.set(false)
verbose.set(true)
fallback.set(false)
quickBuild.set(true)
sharedLibrary.set(false)
imageName.set("app")
}
}
Expand Down
2 changes: 0 additions & 2 deletions platform-cloud-services/gateway-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ dependencies {
implementation("de.codecentric:spring-boot-admin-starter-client")
// modules
implementation(project(":platform-commons:commons-core-starter"))
// others
implementation("io.netty:netty-all")
// development & test
developmentOnly("org.springframework.boot:spring-boot-devtools")
}
Expand Down

0 comments on commit 8e2b719

Please sign in to comment.