Skip to content

Commit d81a85d

Browse files
committed
准备一些不一定用得上的模块
Signed-off-by: ForteScarlet <[email protected]>
1 parent 48a75cb commit d81a85d

File tree

5 files changed

+178
-0
lines changed

5 files changed

+178
-0
lines changed

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ plugins {
4141
include(":internal-processors:interface-uml-processor")
4242

4343
// gradle
44+
// include(":simbot-gradles:simbot-gradle-plugin")
4445
include(":simbot-gradles:simbot-gradle-suspendtransforms")
4546

4647
// processors
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Copyright (c) 2024-2025. ForteScarlet.
3+
*
4+
* Project https://github.com/simple-robot/simpler-robot
5+
6+
*
7+
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* Lesser GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the Lesser GNU General Public License
20+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
*
22+
*/
23+
24+
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
25+
26+
plugins {
27+
`java-library`
28+
kotlin("jvm")
29+
id("org.jetbrains.dokka")
30+
`java-gradle-plugin`
31+
}
32+
33+
// configJavaCompileWithModule("simbot.gradle.suspendtransforms")
34+
// apply(plugin = "simbot-jvm-maven-publish")
35+
36+
kotlin {
37+
explicitApi()
38+
configJavaToolchain(JVMConstants.KT_JVM_TARGET_VALUE)
39+
// Gradle BuildSrc 友好
40+
coreLibrariesVersion = "1.9.0"
41+
compilerOptions {
42+
apiVersion = KotlinVersion.KOTLIN_1_9
43+
languageVersion = KotlinVersion.KOTLIN_1_9
44+
}
45+
}
46+
47+
dependencies {
48+
compileOnly(gradleApi())
49+
compileOnly(kotlin("gradle-plugin"))
50+
compileOnly(kotlin("gradle-plugin-api"))
51+
// compileOnly(libs.suspend.transform.gradle)
52+
}
53+
54+
gradlePlugin {
55+
plugins {
56+
create("SimbotBasicPlugin") {
57+
id = "love.forte.simbot"
58+
implementationClass = "love.forte.simbot.gradle.plugin.basic.SimbotBasicPlugin"
59+
description = "Simple Robot basic Gradle plugin"
60+
displayName = "Simple Robot basic Gradle plugin"
61+
}
62+
63+
create("SimbotDevPlugin") {
64+
id = "love.forte.simbot.dev"
65+
implementationClass = "love.forte.simbot.gradle.plugin.dev.SimbotDevPlugin"
66+
description = "Simple Robot Gradle plugin for developing, e.g. develop a component library."
67+
displayName = "Simple Robot dev Gradle plugin"
68+
}
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2025. ForteScarlet.
3+
*
4+
* Project https://github.com/simple-robot/simpler-robot
5+
6+
*
7+
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* Lesser GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the Lesser GNU General Public License
20+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
*
22+
*/
23+
24+
package love.forte.simbot.gradle.plugin
25+
26+
import org.gradle.api.Plugin
27+
import org.gradle.api.Project
28+
29+
/**
30+
*
31+
* @author ForteScarlet
32+
*/
33+
public interface SimbotGradlePlugin : Plugin<Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2025. ForteScarlet.
3+
*
4+
* Project https://github.com/simple-robot/simpler-robot
5+
6+
*
7+
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* Lesser GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the Lesser GNU General Public License
20+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
*
22+
*/
23+
24+
package love.forte.simbot.gradle.plugin.basic
25+
26+
import org.gradle.api.Plugin
27+
import org.gradle.api.Project
28+
29+
/**
30+
*
31+
* @author ForteScarlet
32+
*/
33+
public open class SimbotBasicPlugin : Plugin<Project> {
34+
override fun apply(target: Project) {
35+
// ?
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2025. ForteScarlet.
3+
*
4+
* Project https://github.com/simple-robot/simpler-robot
5+
6+
*
7+
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* Lesser GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the Lesser GNU General Public License
20+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
*
22+
*/
23+
24+
package love.forte.simbot.gradle.plugin.dev
25+
26+
import love.forte.simbot.gradle.plugin.SimbotGradlePlugin
27+
import org.gradle.api.Project
28+
29+
/**
30+
*
31+
* @author ForteScarlet
32+
*/
33+
public class SimbotDevPlugin : SimbotGradlePlugin {
34+
override fun apply(target: Project) {
35+
// include gradle-suspend-transform?
36+
}
37+
}

0 commit comments

Comments
 (0)