Skip to content

Commit

Permalink
chore: update the build.gradle file for the dependent plugin api modu…
Browse files Browse the repository at this point in the history
…le (#488)

### What this PR does?

更新插件 api 模块的 build.gradle 增加源码 JAR 配置文档以便让其他依赖者能获取到源码和文档便于开发

```release-note
None
```
  • Loading branch information
guqing authored Jan 6, 2025
1 parent 5a3610d commit f3ec38c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion docs/developer-guide/plugin/interaction/dependency.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,19 @@ plugins {
}
group = 'com.example'
version = '1.0.0'
version = rootProject.version
repositories {
mavenCentral() // 使用 Maven Central 仓库
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
// 包含源码 JAR 包
withSourcesJar()
}
dependencies {
// API 模块可能需要的一些依赖
// 例如:如果需要一些常用的库
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,19 @@ plugins {
}
group = 'com.example'
version = '1.0.0'
version = rootProject.version
repositories {
mavenCentral() // 使用 Maven Central 仓库
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
// 包含源码 JAR 包
withSourcesJar()
}
dependencies {
// API 模块可能需要的一些依赖
// 例如:如果需要一些常用的库
Expand Down

0 comments on commit f3ec38c

Please sign in to comment.