mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-27 16:02:11 +08:00
build:Remove source code tasks and add MapStruct dependencies
- Deleted the config/tasks/sourceTask.gradle.kts file, removed the task of creating source jar files - Added MapStruct dependency in gradle/libs.versions.toml, version 1.6.3
This commit is contained in:
parent
98573e5860
commit
ad837f5d17
@ -1,19 +0,0 @@
|
||||
// This task creates a jar file with the source code of the project
|
||||
|
||||
tasks.register<Jar>("sourceTask") {
|
||||
logger.info("正在配置${project.name}源代码 jar 文件...")
|
||||
|
||||
// 收集所有源代码(包括 Kotlin 和 Java)
|
||||
val sourceSet = project.extensions.getByType<SourceSetContainer>()["main"]
|
||||
from(sourceSet.allSource) {
|
||||
into("sources") // 将所有源代码放入子目录 sources
|
||||
}
|
||||
|
||||
archiveClassifier.set("sources") // 设置生成文件的分类标识
|
||||
|
||||
logger.info("正在创建${project.name}源代码 jar 文件...")
|
||||
logger.info("创建${project.name}源代码 jar 文件完成!")
|
||||
}.configure {
|
||||
group = "source"
|
||||
description = "使用项目的源代码创建源代码 jar 文件"
|
||||
}
|
||||
@ -11,6 +11,7 @@ axion-release-version = "1.18.7"
|
||||
spring-cloud-version = "2024.0.1"
|
||||
spring-boot-version = "3.4.4"
|
||||
slf4j-version = "2.0.17"
|
||||
map-struct-version="1.6.3"
|
||||
[libraries]
|
||||
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin-version" }
|
||||
kotlinxDatetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinxDatetime-version" }
|
||||
@ -42,6 +43,8 @@ jackson-datatype-jsr310 = { group = "com.fasterxml.jackson.datatype", name = "ja
|
||||
jackson-module-kotlin = { group = "com.fasterxml.jackson.module", name = "jackson-module-kotlin" }
|
||||
|
||||
reactor-core = { group = "io.projectreactor", name = "reactor-core" }
|
||||
#org
|
||||
org-mapstruct = { group = "org.mapstruct", name = "mapstruct", version.ref = "map-struct-version" }
|
||||
# Libraries can be bundled together for easier import
|
||||
|
||||
[bundles]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user