1 Star 0 Fork 0

do-not-overtime / overtime-server-springboot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
settings.gradle.kts 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
ForteScarlet 提交于 2021-10-24 01:22 . Page
rootProject.name = "overtime-server-springboot"
// include("overtime-application")
// include("overtime-gateway")
includes("overtime-configuration") {
sub("configuration-handler") // 异常处理、响应值处理
sub("configuration-r2dbc-template") // r2dbc template.
}
includes("overtime-common") {
sub("common-core")
sub("common-domain")
sub("common-service")
sub("common-repository")
sub("common-application")
sub("common-jwt")
}
include("overtime-gateway")
val modules = listOf(
"domain", "repository",
"service", "service-impl",
"api", "controller", "application"
)
includes("services") {
// 字典模块
sub("dictionary") { serviceSubs() }
// 补偿模块
sub("compensate") { serviceSubs() }
// 用户模块
sub("user") { serviceSubs() }
}
include("overtime-application")
println()
////////////////
@kotlin.DslMarker
annotation class IncDsl
@kotlin.DslMarker
annotation class IncOuterDsl
class Include(parentPath: String?, val id: String) {
internal val path: String =
if (parentPath != null) "$parentPath:$id" else id
@Suppress("NOTHING_TO_INLINE")
fun doInc(ignoreIfNotExists: Boolean = false) {
if (ignoreIfNotExists) {
kotlin.runCatching {
include(path)
}.getOrElse {
println("> [Warn]: Include $path failed: ${it.localizedMessage}")
}
} else {
include(path)
}
println("> Include $path")
// val p = project(":$path")
// p.name = name
}
@IncDsl
@Suppress("NOTHING_TO_INLINE")
fun sub(path: String, ignoreIfNotExists: Boolean = false, block: (Include.() -> Unit) = {}) {
val inc = Include(this.path, path)
inc.doInc(ignoreIfNotExists)
block(inc)
}
}
@IncOuterDsl
@Suppress("NOTHING_TO_INLINE")
fun includes(id: String, block: (Include.() -> Unit) = {}) {
val inc = Include(null, id)
inc.doInc()
block(inc)
}
@IncOuterDsl
@Suppress("NOTHING_TO_INLINE")
fun Include.serviceSubs(ignoreIfNotExists: Boolean = false) {
modules.forEach {
sub("$id-$it", ignoreIfNotExists)
}
}
include("overtime-admin")
Java
1
https://gitee.com/lost-and-found-project/overtime-server-springboot.git
git@gitee.com:lost-and-found-project/overtime-server-springboot.git
lost-and-found-project
overtime-server-springboot
overtime-server-springboot
master

搜索帮助