依赖传递测试
This commit is contained in:
parent
5c03f86730
commit
451c2d1cd3
|
|
@ -45,9 +45,7 @@ dependencies {
|
||||||
|
|
||||||
api 'androidx.activity:activity:1.10.1'
|
api 'androidx.activity:activity:1.10.1'
|
||||||
|
|
||||||
api ('com.google.code.gson:gson:2.13.1') {
|
api 'com.google.code.gson:gson:2.13.1'
|
||||||
transitive = true // 确保传递依赖生效
|
|
||||||
}
|
|
||||||
|
|
||||||
api 'com.squareup.okhttp3:okhttp:5.0.0-alpha.16'
|
api 'com.squareup.okhttp3:okhttp:5.0.0-alpha.16'
|
||||||
api 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.16'
|
api 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.16'
|
||||||
|
|
@ -61,27 +59,58 @@ dependencies {
|
||||||
api 'com.github.getActivity:Toaster:12.8'
|
api 'com.github.getActivity:Toaster:12.8'
|
||||||
|
|
||||||
//高斯模糊效果
|
//高斯模糊效果
|
||||||
// api 'com.github.centerzx:ShapeBlurView:1.0.5'
|
api 'com.github.centerzx:ShapeBlurView:1.0.5'
|
||||||
api ('com.github.centerzx:ShapeBlurView:1.0.5') {
|
|
||||||
transitive = true // 确保传递依赖生效
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
release(MavenPublication) {
|
release(MavenPublication) {
|
||||||
groupId = 'com.chuangketie.jk' // 自定义组织标识
|
groupId = 'com.chuangketie.jk'
|
||||||
artifactId = 'base-lib' // 库名称
|
artifactId = 'base-lib'
|
||||||
version = '1.0.1'
|
version = '1.0.1'
|
||||||
artifact("$buildDir/outputs/aar/${project.name}-release.aar")// 指定 AAR 文件路径
|
artifact("$buildDir/outputs/aar/${project.name}-release.aar")
|
||||||
|
|
||||||
|
// 关键修复:添加POM依赖配置
|
||||||
|
// 添加依赖传递配置
|
||||||
|
pom.withXml {
|
||||||
|
def dependenciesNode = asNode().appendNode('dependencies')
|
||||||
|
|
||||||
|
// 处理api配置的依赖(会传递)
|
||||||
|
configurations.api.allDependencies.each { dep ->
|
||||||
|
if (dep.group != null && dep.version != 'unspecified') {
|
||||||
|
def dependencyNode = dependenciesNode.appendNode('dependency')
|
||||||
|
dependencyNode.appendNode('groupId', dep.group)
|
||||||
|
dependencyNode.appendNode('artifactId', dep.name)
|
||||||
|
dependencyNode.appendNode('version', dep.version)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 处理implementation配置的依赖(可选添加)
|
||||||
|
configurations.implementation.allDependencies.each { dep ->
|
||||||
|
if (dep.group != null && dep.version != 'unspecified') {
|
||||||
|
def dependencyNode = dependenciesNode.appendNode('dependency')
|
||||||
|
dependencyNode.appendNode('groupId', dep.group)
|
||||||
|
dependencyNode.appendNode('artifactId', dep.name)
|
||||||
|
dependencyNode.appendNode('version', dep.version)
|
||||||
|
dependencyNode.appendNode('scope', 'runtime') // 设置为runtime范围
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = "file://${projectDir.parent}/maven" // 指向本地目录
|
url = "file://${projectDir.parent}/maven"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = "file://${projectDir.parent}/maven"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,153 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.chuangketie.jk</groupId>
|
<groupId>com.chuangketie.jk</groupId>
|
||||||
<artifactId>base-lib</artifactId>
|
<artifactId>base-lib</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.1</version>
|
||||||
<packaging>aar</packaging>
|
<packaging>aar</packaging>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>androidx.appcompat</groupId>
|
||||||
|
<artifactId>appcompat</artifactId>
|
||||||
|
<version>1.7.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.android.material</groupId>
|
||||||
|
<artifactId>material</artifactId>
|
||||||
|
<version>1.12.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.geyifeng.immersionbar</groupId>
|
||||||
|
<artifactId>immersionbar</artifactId>
|
||||||
|
<version>3.2.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.getActivity</groupId>
|
||||||
|
<artifactId>XXPermissions</artifactId>
|
||||||
|
<version>23.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.CymChad</groupId>
|
||||||
|
<artifactId>BaseRecyclerViewAdapterHelper</artifactId>
|
||||||
|
<version>2.9.28</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>androidx.activity</groupId>
|
||||||
|
<artifactId>activity</artifactId>
|
||||||
|
<version>1.10.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.code.gson</groupId>
|
||||||
|
<artifactId>gson</artifactId>
|
||||||
|
<version>2.13.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
<artifactId>okhttp</artifactId>
|
||||||
|
<version>5.0.0-alpha.16</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
<artifactId>logging-interceptor</artifactId>
|
||||||
|
<version>5.0.0-alpha.16</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.bumptech.glide</groupId>
|
||||||
|
<artifactId>glide</artifactId>
|
||||||
|
<version>4.16.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jp.wasabeef</groupId>
|
||||||
|
<artifactId>glide-transformations</artifactId>
|
||||||
|
<version>4.3.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.getActivity</groupId>
|
||||||
|
<artifactId>Toaster</artifactId>
|
||||||
|
<version>12.8</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.centerzx</groupId>
|
||||||
|
<artifactId>ShapeBlurView</artifactId>
|
||||||
|
<version>1.0.5</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>androidx.appcompat</groupId>
|
||||||
|
<artifactId>appcompat</artifactId>
|
||||||
|
<version>1.7.0</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.android.material</groupId>
|
||||||
|
<artifactId>material</artifactId>
|
||||||
|
<version>1.12.0</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.geyifeng.immersionbar</groupId>
|
||||||
|
<artifactId>immersionbar</artifactId>
|
||||||
|
<version>3.2.2</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.getActivity</groupId>
|
||||||
|
<artifactId>XXPermissions</artifactId>
|
||||||
|
<version>23.0</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.CymChad</groupId>
|
||||||
|
<artifactId>BaseRecyclerViewAdapterHelper</artifactId>
|
||||||
|
<version>2.9.28</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>androidx.activity</groupId>
|
||||||
|
<artifactId>activity</artifactId>
|
||||||
|
<version>1.10.1</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.code.gson</groupId>
|
||||||
|
<artifactId>gson</artifactId>
|
||||||
|
<version>2.13.1</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
<artifactId>okhttp</artifactId>
|
||||||
|
<version>5.0.0-alpha.16</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
<artifactId>logging-interceptor</artifactId>
|
||||||
|
<version>5.0.0-alpha.16</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.bumptech.glide</groupId>
|
||||||
|
<artifactId>glide</artifactId>
|
||||||
|
<version>4.16.0</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jp.wasabeef</groupId>
|
||||||
|
<artifactId>glide-transformations</artifactId>
|
||||||
|
<version>4.3.0</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.getActivity</groupId>
|
||||||
|
<artifactId>Toaster</artifactId>
|
||||||
|
<version>12.8</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.centerzx</groupId>
|
||||||
|
<artifactId>ShapeBlurView</artifactId>
|
||||||
|
<version>1.0.5</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
1130df0babf26714e25a52808b9b4fc0
|
abe3548bd0ae876902117765da9a20a0
|
||||||
|
|
@ -1 +1 @@
|
||||||
c4ce63bf398ebcf4658a1c0c653b4c7a34b1a325
|
9a591677573a1102e8036b11f1034fd84f69b77c
|
||||||
|
|
@ -1 +1 @@
|
||||||
46f32600c1a5a8cc7aa23715a99f5ca9f2cfad98380ec12ca23a6af09b801b89
|
ed868a40a713f6913cdce454b667e664c397996bf326d0112fe18e7b23da2e18
|
||||||
|
|
@ -1 +1 @@
|
||||||
98a060a23731fef9a744ff43f019faa33ba03dc4f6c8576caa63d0af0fe15c2dd4adb41627e9ae03f961fee9fa98fcf9ee239b1be3f6dd959e49a57e86dbc9e1
|
9094ab3f831669cc6c5baf12046bcd774f2bffdd0fce94e10fcfb79ea7dce745a2f5c33c89c28d0b63c790c071634359f9abe0123a5070a7a32d776782cfb867
|
||||||
|
|
@ -9,6 +9,6 @@
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<version>1.0.1</version>
|
<version>1.0.1</version>
|
||||||
</versions>
|
</versions>
|
||||||
<lastUpdated>20250729061622</lastUpdated>
|
<lastUpdated>20250729075002</lastUpdated>
|
||||||
</versioning>
|
</versioning>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
b20f6888403d0ea240087c4391b7338a
|
6fd4326a92088aa14f7c44de1cd2e2d5
|
||||||
|
|
@ -1 +1 @@
|
||||||
801671f261b45455d843a3053f6c4931fb98d8b0
|
261dbd08efdfe9146c57f9acd7ddd8d7a0cd11e0
|
||||||
|
|
@ -1 +1 @@
|
||||||
6d307fc1fd1af97c0623f0776eb5a2f3fa3261fd88ec125164d026f23891bf8d
|
cd0c3b624c8e0865f876b6bcf785eee683ec70015084885922cd14b37c2d82cc
|
||||||
|
|
@ -1 +1 @@
|
||||||
b689e5cba44e7bda62b8af3002c3a74ab9863f3c76e20846d90b519dc5bb2afc4f80f94bfd0aa425aa70d73c9bb8b66741685cb5e93ffbb60bd283cf1825a867
|
c022073d94d2238c4be7394e000e71cf18c0866afe7313d2a364fddba6e9a682d72f46c591ac2f9509846c03b46ed932128d242b1d28b1150e5205c7b12a31c8
|
||||||
Loading…
Reference in New Issue