File tree 2 files changed +16
-2
lines changed
docs/developer-guide/plugin/interaction
versioned_docs/version-2.20/developer-guide/plugin/interaction
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -152,12 +152,19 @@ plugins {
152
152
}
153
153
154
154
group = 'com.example'
155
- version = '1.0.0'
155
+ version = rootProject.version
156
156
157
157
repositories {
158
158
mavenCentral() // 使用 Maven Central 仓库
159
159
}
160
160
161
+ java {
162
+ sourceCompatibility = JavaVersion.VERSION_17
163
+ targetCompatibility = JavaVersion.VERSION_17
164
+ // 包含源码 JAR 包
165
+ withSourcesJar()
166
+ }
167
+
161
168
dependencies {
162
169
// API 模块可能需要的一些依赖
163
170
// 例如:如果需要一些常用的库
Original file line number Diff line number Diff line change @@ -152,12 +152,19 @@ plugins {
152
152
}
153
153
154
154
group = 'com.example'
155
- version = '1.0.0'
155
+ version = rootProject.version
156
156
157
157
repositories {
158
158
mavenCentral() // 使用 Maven Central 仓库
159
159
}
160
160
161
+ java {
162
+ sourceCompatibility = JavaVersion.VERSION_17
163
+ targetCompatibility = JavaVersion.VERSION_17
164
+ // 包含源码 JAR 包
165
+ withSourcesJar()
166
+ }
167
+
161
168
dependencies {
162
169
// API 模块可能需要的一些依赖
163
170
// 例如:如果需要一些常用的库
You can’t perform that action at this time.
0 commit comments