forked from simple-robot/simpler-robot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
83 lines (63 loc) · 2.45 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
* Copyright (c) 2021-2022 ForteScarlet <[email protected]>
*
* 本文件是 simply-robot (或称 simple-robot 3.x 、simbot 3.x ) 的一部分。
*
* simply-robot 是自由软件:你可以再分发之和/或依照由自由软件基金会发布的 GNU 通用公共许可证修改之,无论是版本 3 许可证,还是(按你的决定)任何以后版都可以。
*
* 发布 simply-robot 是希望它能有用,但是并无保障;甚至连可销售和符合某个特定的目的都不保证。请参看 GNU 通用公共许可证,了解详情。
*
* 你应该随程序获得一份 GNU 通用公共许可证的复本。如果没有,请看:
* https://www.gnu.org/licenses
* https://www.gnu.org/licenses/gpl-3.0-standalone.html
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
*
*/
rootProject.name = "simply-robot"
include(
":simbot-util-api-requestor-core",
":simbot-util-api-requestor-ktor",
":simbot-util-stage-loop",
)
include(
":simbot-util-annotation-tool"
)
include(
":simbot-util-di-api",
":simbot-util-di-core",
)
include(":simbot-logger")
include(":simbot-logger-slf4j-impl")
include(":simbot-api")
include(":simbot-core")
include(
":simboot-api",
":simboot-core-annotation",
":simboot-core",
":simboot-core-spring-boot-starter",
)
// project test
// if not in CI workflows
if (!System.getenv("IS_CI").toBoolean()) {
include(
projectTest("boot"),
projectTest("spring-boot-starter"),
projectTest("jmh-duration"),
)
include(":simbot-component-http-server-api")
}
@Suppress("NOTHING_TO_INLINE")
inline fun api(moduleName: String): String = ":simbot-apis:simbot-$moduleName"
@Suppress("NOTHING_TO_INLINE")
inline fun core(moduleName: String): String = ":simbot-cores:simbot-$moduleName"
@Suppress("NOTHING_TO_INLINE")
inline fun boot(moduleName: String): String = ":simbot-boots:simboot-$moduleName"
@Suppress("NOTHING_TO_INLINE")
inline fun projectTest(moduleName: String): String = ":simbot-project-tests:simbot-project-test-$moduleName"
@Suppress("NOTHING_TO_INLINE")
inline fun componentHttpServer(moduleName: String): String = ":simbot-components:http-server:simbot-component-http-server-$moduleName"
@Suppress("NOTHING_TO_INLINE")
inline fun util(moduleName: String): String = ":simbot-utils:simbot-util-$moduleName"
@Suppress("NOTHING_TO_INLINE")
inline fun utilApiReq(moduleName: String): String = ":simbot-utils:api-requestor:simbot-util-api-requestor-$moduleName"