From f3ec38c7d97a427242759b4966389a18f8e76726 Mon Sep 17 00:00:00 2001 From: guqing <38999863+guqing@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:31:30 +0800 Subject: [PATCH] chore: update the build.gradle file for the dependent plugin api module (#488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What this PR does? 更新插件 api 模块的 build.gradle 增加源码 JAR 配置文档以便让其他依赖者能获取到源码和文档便于开发 ```release-note None ``` --- docs/developer-guide/plugin/interaction/dependency.md | 9 ++++++++- .../developer-guide/plugin/interaction/dependency.md | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/developer-guide/plugin/interaction/dependency.md b/docs/developer-guide/plugin/interaction/dependency.md index 2fdd2cc..4604ea3 100644 --- a/docs/developer-guide/plugin/interaction/dependency.md +++ b/docs/developer-guide/plugin/interaction/dependency.md @@ -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 模块可能需要的一些依赖 // 例如:如果需要一些常用的库 diff --git a/versioned_docs/version-2.20/developer-guide/plugin/interaction/dependency.md b/versioned_docs/version-2.20/developer-guide/plugin/interaction/dependency.md index 2fdd2cc..4604ea3 100644 --- a/versioned_docs/version-2.20/developer-guide/plugin/interaction/dependency.md +++ b/versioned_docs/version-2.20/developer-guide/plugin/interaction/dependency.md @@ -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 模块可能需要的一些依赖 // 例如:如果需要一些常用的库