Skip to content

Commit 5a077c2

Browse files
author
Ven
committed
feat: 修改jitpack配置
1 parent 3cb47a1 commit 5a077c2

File tree

5 files changed

+75
-13
lines changed

5 files changed

+75
-13
lines changed

assists-opencv/build.gradle

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ publishing {
178178
release(MavenPublication) {
179179
groupId = 'com.ven.assists'
180180
artifactId = 'opencv'
181-
version = '3.0.0'
181+
version = '3.0.3'
182182

183183
afterEvaluate {
184184
from components.release
@@ -188,6 +188,34 @@ publishing {
188188
}
189189

190190

191+
afterEvaluate {
192+
publishing {
193+
publications {
194+
aar(MavenPublication) {
195+
from components.release
196+
197+
groupId = 'com.github.ven-coder'
198+
artifactId = 'assists-opencv'
199+
version = '3.0.3'
200+
201+
pom.withXml {
202+
def dependenciesNode = asNode().appendNode('dependencies')
203+
204+
configurations.implementation.allDependencies.each { dep ->
205+
if (dep.group != null && dep.name != null) {
206+
def dependencyNode = dependenciesNode.appendNode('dependency')
207+
dependencyNode.appendNode('groupId', dep.group)
208+
dependencyNode.appendNode('artifactId', dep.name)
209+
dependencyNode.appendNode('version', dep.version)
210+
}
211+
}
212+
}
213+
}
214+
}
215+
}
216+
}
217+
218+
191219
dependencies {
192220
implementation 'androidx.core:core-ktx:1.13.1'
193221
// implementation project(':assists')

assists/build.gradle

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,52 @@ android {
3434
}
3535
}
3636

37-
publishing {
38-
publications {
39-
release(MavenPublication) {
40-
groupId = 'com.ven.assists'
41-
artifactId = 'base'
42-
version = '3.0.0'
43-
44-
afterEvaluate {
37+
//publishing {
38+
// publications {
39+
// release(MavenPublication) {
40+
// groupId = 'com.ven.assists'
41+
// artifactId = 'base'
42+
// version = '3.0.0'
43+
//
44+
// afterEvaluate {
45+
// from components.release
46+
// }
47+
//
48+
// artifact(source: android.libraries.libraryVariants) {
49+
// builtBy android.libraryVariants
50+
// }
51+
// }
52+
// }
53+
//}
54+
55+
afterEvaluate {
56+
publishing {
57+
publications {
58+
aar(MavenPublication) {
4559
from components.release
60+
61+
groupId = 'com.github.ven-coder'
62+
artifactId = 'assists-base'
63+
version = '3.0.3'
64+
65+
pom.withXml {
66+
def dependenciesNode = asNode().appendNode('dependencies')
67+
68+
configurations.implementation.allDependencies.each { dep ->
69+
if (dep.group != null && dep.name != null) {
70+
def dependencyNode = dependenciesNode.appendNode('dependency')
71+
dependencyNode.appendNode('groupId', dep.group)
72+
dependencyNode.appendNode('artifactId', dep.name)
73+
dependencyNode.appendNode('version', dep.version)
74+
}
75+
}
76+
}
4677
}
4778
}
4879
}
4980
}
5081

82+
5183
dependencies {
5284
implementation 'androidx.core:core-ktx:1.13.1'
5385
implementation 'androidx.activity:activity-ktx:1.9.0'

assists/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
ARTIFACT_ID=assets

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ buildscript {
1212
dependencies {
1313
classpath 'com.android.tools.build:gradle:7.3.0'
1414
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10"
15+
16+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
17+
// classpath 'com.github.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
18+
// classpath 'com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:7.1.2'
19+
1520
}
1621
}
1722

simple/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ android {
4141

4242
dependencies {
4343
implementation fileTree(dir: 'libs', include: ['*.jar'])
44-
// implementation project(':assists')
45-
// implementation 'com.github.ven-coder:Assists:3.0.1'
46-
implementation 'com.ven.assists.base:assists-base:3.0.1'
44+
implementation project(':assists')
4745
implementation project(':assists-opencv')
4846
implementation "androidx.room:room-runtime:2.4.3"
4947
implementation 'androidx.room:room-ktx:2.4.3'

0 commit comments

Comments
 (0)