generated from mingliqiye/lib-tem
All checks were successful
Gitea Actions Build / Build (push) Successful in 51s
- 更新 .gitattributes 和 .gitignore 文件 -重构 AesUtils 类,优化代码结构 - 新增 ByteUtil工具类,用于处理字节数组 - 更新 DateTime 类,增加新方法并改进现有方法- 更新 Gradle 配置和版本号 - 优化 Lists工具类,增加空值安全的 toArray 方法 - 重构 MysqlUUIDv1 类,改进 UUID 转换逻辑 - 更新 UUID 类和 UUIDBinaryTypeHandler 类 - 移除 package.json 中的 pnpm 配置
82 lines
1.8 KiB
Plaintext
82 lines
1.8 KiB
Plaintext
plugins {
|
|
idea
|
|
id("java-library")
|
|
id("maven-publish")
|
|
}
|
|
|
|
val GROUPSID = project.properties["GROUPSID"] as String
|
|
val VERSIONS = project.properties["VERSIONS"] as String
|
|
val ARTIFACTID = project.properties["ARTIFACTID"] as String
|
|
|
|
group = GROUPSID
|
|
version = VERSIONS
|
|
|
|
base {
|
|
archivesName.set(ARTIFACTID)
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("org.springframework.boot:spring-boot-starter:2.7.14")
|
|
compileOnly("com.fasterxml.jackson.core:jackson-databind:2.19.2")
|
|
compileOnly("org.mybatis:mybatis:3.5.19")
|
|
|
|
implementation("org.bouncycastle:bcprov-jdk18on:1.81")
|
|
implementation("com.github.f4b6a3:uuid-creator:6.1.0")
|
|
implementation("org.mindrot:jbcrypt:0.4")
|
|
implementation("org.jetbrains:annotations:24.0.0")
|
|
compileOnly("org.projectlombok:lombok:1.18.38")
|
|
|
|
annotationProcessor("org.jetbrains:annotations:24.0.0")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.38")
|
|
}
|
|
|
|
|
|
sourceSets.main.configure {
|
|
java.setSrcDirs(files("src"))
|
|
resources.setSrcDirs(files("resources"))
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
tasks.withType<JavaExec>().configureEach {
|
|
jvmArgs = listOf(
|
|
"-Dfile.encoding=UTF-8",
|
|
"-Dsun.stdout.encoding=UTF-8",
|
|
"-Dsun.stderr.encoding=UTF-8"
|
|
)
|
|
}
|
|
|
|
|
|
tasks.withType<Javadoc> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "MavenRepositoryRaw"
|
|
url = uri("C:/data/git/maven-repository-raw")
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
from(components["java"])
|
|
groupId = GROUPSID
|
|
artifactId = ARTIFACTID
|
|
version = VERSIONS
|
|
}
|
|
}
|
|
}
|