Skip to content

Commit f3ec38c

Browse files
authored
chore: update the build.gradle file for the dependent plugin api module (#488)
### What this PR does? 更新插件 api 模块的 build.gradle 增加源码 JAR 配置文档以便让其他依赖者能获取到源码和文档便于开发 ```release-note None ```
1 parent 5a3610d commit f3ec38c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Diff for: docs/developer-guide/plugin/interaction/dependency.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,19 @@ plugins {
152152
}
153153
154154
group = 'com.example'
155-
version = '1.0.0'
155+
version = rootProject.version
156156
157157
repositories {
158158
mavenCentral() // 使用 Maven Central 仓库
159159
}
160160
161+
java {
162+
sourceCompatibility = JavaVersion.VERSION_17
163+
targetCompatibility = JavaVersion.VERSION_17
164+
// 包含源码 JAR 包
165+
withSourcesJar()
166+
}
167+
161168
dependencies {
162169
// API 模块可能需要的一些依赖
163170
// 例如:如果需要一些常用的库

Diff for: versioned_docs/version-2.20/developer-guide/plugin/interaction/dependency.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,19 @@ plugins {
152152
}
153153
154154
group = 'com.example'
155-
version = '1.0.0'
155+
version = rootProject.version
156156
157157
repositories {
158158
mavenCentral() // 使用 Maven Central 仓库
159159
}
160160
161+
java {
162+
sourceCompatibility = JavaVersion.VERSION_17
163+
targetCompatibility = JavaVersion.VERSION_17
164+
// 包含源码 JAR 包
165+
withSourcesJar()
166+
}
167+
161168
dependencies {
162169
// API 模块可能需要的一些依赖
163170
// 例如:如果需要一些常用的库

0 commit comments

Comments
 (0)