Skip to content

Commit 3cb47a1

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

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

assists-opencv/build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,19 +173,21 @@ android {
173173
}
174174
}
175175

176-
afterEvaluate {
177-
publishing {
178-
publications {
179-
release(MavenPublication) {
176+
publishing {
177+
publications {
178+
release(MavenPublication) {
179+
groupId = 'com.ven.assists'
180+
artifactId = 'opencv'
181+
version = '3.0.0'
182+
183+
afterEvaluate {
180184
from components.release
181-
groupId = 'com.ven.assists.opencv'
182-
artifactId = 'assists-opencv'
183-
version = '0.0.1'
184185
}
185186
}
186187
}
187188
}
188189

190+
189191
dependencies {
190192
implementation 'androidx.core:core-ktx:1.13.1'
191193
// implementation project(':assists')

assists/build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven-publish'
23
apply plugin: 'kotlin-android'
34
apply plugin: 'kotlin-kapt'
4-
apply plugin: 'maven-publish'
55
android {
66
namespace 'com.ven.assists.base'
77
compileSdk 34
@@ -34,14 +34,15 @@ android {
3434
}
3535
}
3636

37-
afterEvaluate {
38-
publishing {
39-
publications {
40-
release(MavenPublication) {
37+
publishing {
38+
publications {
39+
release(MavenPublication) {
40+
groupId = 'com.ven.assists'
41+
artifactId = 'base'
42+
version = '3.0.0'
43+
44+
afterEvaluate {
4145
from components.release
42-
groupId = 'com.ven.assists.base'
43-
artifactId = 'assists-base'
44-
version = '3.0.0'
4546
}
4647
}
4748
}

simple/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ android {
4242
dependencies {
4343
implementation fileTree(dir: 'libs', include: ['*.jar'])
4444
// implementation project(':assists')
45-
implementation 'com.github.ven-coder:Assists:3.0.0'
45+
// implementation 'com.github.ven-coder:Assists:3.0.1'
46+
implementation 'com.ven.assists.base:assists-base:3.0.1'
4647
implementation project(':assists-opencv')
4748
implementation "androidx.room:room-runtime:2.4.3"
4849
implementation 'androidx.room:room-ktx:2.4.3'

0 commit comments

Comments
 (0)