feat(utils): 添加数组工具类和国际化支持
- 添加ByteArray.toHexString和String.toHexByteArray扩展函数 - 实现多种数组类型的copyTo和copyFrom扩展方法 - 在AutoConfiguration中集成I18N国际化功能 - 添加AutoService注解及处理器用于自动服务注册 - 新增BadGatewayException HTTP状态异常类 - 更新启动横幅格式并添加国际化文本支持
This commit is contained in:
+16
-2
@@ -16,7 +16,7 @@
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils
|
||||
* CurrentFile build.gradle.kts
|
||||
* LastUpdate 2026-02-05 11:04:04
|
||||
* LastUpdate 2026-02-08 03:14:06
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
|
||||
@@ -31,6 +31,7 @@ plugins {
|
||||
`maven-publish`
|
||||
kotlin("jvm") version "2.2.20"
|
||||
id("org.jetbrains.dokka") version "2.0.0"
|
||||
kotlin("kapt") version "2.2.20"
|
||||
}
|
||||
val GROUPSID = project.properties["GROUPSID"] as String
|
||||
val VERSIONS = project.properties["VERSIONS"] as String
|
||||
@@ -72,12 +73,15 @@ dependencies {
|
||||
|
||||
implementation("org.slf4j:slf4j-api:2.0.17")
|
||||
implementation("com.mingliqiye.utils.jna:WinKernel32Api:1.0.1")
|
||||
implementation(kotlin("reflect"))
|
||||
|
||||
compileOnly("org.mindrot:jbcrypt:0.4")
|
||||
|
||||
compileOnly("com.squareup.okhttp3:okhttp:5.3.2")
|
||||
compileOnly("com.fasterxml.jackson.core:jackson-databind:2.21.0")
|
||||
compileOnly("com.fasterxml.jackson.module:jackson-module-kotlin:2.21.0")
|
||||
compileOnly("org.springframework.boot:spring-boot-starter-web:2.7.18")
|
||||
compileOnly("com.google.code.gson:gson:2.13.2")
|
||||
compileOnly("org.mybatis:mybatis:3.5.19")
|
||||
compileOnly("io.netty:netty-all:4.1.130.Final")
|
||||
compileOnly("com.baomidou:mybatis-plus-core:3.5.15")
|
||||
@@ -87,6 +91,7 @@ dependencies {
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
|
||||
// testImplementation("com.squareup.okhttp3:okhttp:5.3.2")
|
||||
testImplementation("com.mingliqiye.logger:logger-log4j2:1.0.5")
|
||||
testImplementation("com.google.code.gson:gson:2.13.2")
|
||||
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.21.0")
|
||||
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.21.0")
|
||||
}
|
||||
@@ -103,6 +108,15 @@ tasks.withType<JavaExec>().configureEach {
|
||||
)
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg(
|
||||
"kapt.kotlin.generated",
|
||||
project.layout.buildDirectory.dir("generated/source/kapt/main").get().asFile.absolutePath
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<org.gradle.jvm.tasks.Jar> {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from("LICENSE") { into("META-INF") }
|
||||
@@ -213,7 +227,7 @@ tasks.build {
|
||||
tasks.processResources {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
outputs.upToDateWhen { false }
|
||||
filesMatching("META-INF/meta-data") {
|
||||
filesMatching(listOf("META-INF/meta-data", "fabric.mod.json")) {
|
||||
expand(
|
||||
project.properties + mapOf(
|
||||
"buildTime" to LocalDateTime.now().format(
|
||||
|
||||
Reference in New Issue
Block a user