File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/main/java/io/hanlyjiang/gradle/android Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ group = "com.github.hanlyjiang"
30
30
// 1. 插件本身并不包括jar,仅仅是通过pom指向这个插件仓库的jar,如gradlePlugins.jar;
31
31
// 2. 打包插件时及引入插件时,我们都不能单独为 gradlePlugins.jar 指定版本;
32
32
// 3. 如果几个插件版本不同,指向的插件仓库的jar就会有问题;
33
- version = " 0.0.13 "
33
+ version = " 0.0.14 "
34
34
35
35
36
36
// 多个插件时,gradlePlugin需要放置到pluginBundle前面,避免出现pluginBundle中找不到插件config的情况
Original file line number Diff line number Diff line change @@ -179,7 +179,15 @@ class AndroidMavenPubPlugin : Plugin<Project> {
179
179
if (pluginExtension.projectLocalRepoPath.isPresent) {
180
180
project.rootProject.run {
181
181
dir = objects.directoryProperty().apply {
182
- set(File (rootDir, pluginExtension.projectLocalRepoPath.get()))
182
+ pluginExtension.projectLocalRepoPath.get().let {
183
+ if (it.startsWith(" /" )) {
184
+ // 绝对路径
185
+ set(File (it))
186
+ } else {
187
+ // 相对路径
188
+ set(File (rootDir, pluginExtension.projectLocalRepoPath.get()))
189
+ }
190
+ }
183
191
}.get()
184
192
}
185
193
}
You can’t perform that action at this time.
0 commit comments