Skip to content

Commit

Permalink
feat:配置多模块maven
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaobo0217 committed Dec 5, 2023
1 parent 621126f commit e4c3800
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion camerax/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ext {
PUBLISH_ARTIFACT_ID = "camerax"
}

apply from: '../publish.gradle'
//apply from: '../publish.gradle'

dependencies {
def camerax_version = "1.2.1"
Expand Down
20 changes: 19 additions & 1 deletion compress/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

buildscript {
repositories {
Expand Down Expand Up @@ -28,6 +29,23 @@ ext {
PUBLISH_ARTIFACT_ID = "compress"
}

apply from: '../publish.gradle'
//apply from: '../publish.gradle'

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = 'com.github.xiachufang'
artifactId = 'PictureSelector-compress'
version = '3.11.1.4'
}
}
}
}

dependencies {}
2 changes: 1 addition & 1 deletion selector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ afterEvaluate {
// You can then customize attributes of the publication as shown below.
groupId = 'com.github.xiachufang'
artifactId = 'PictureSelector'
version = '3.11.1.3'
version = '3.11.1.4'
}
}
}
Expand Down

0 comments on commit e4c3800

Please sign in to comment.