@@ -6,45 +6,51 @@ plugins {
66
77def libraryGroupId = ' com.shz.imagepicker'
88def libraryArtifactId = ' imagepicker'
9- def libraryVersion = ' 2.0.1 '
9+ def libraryVersion = ' 2.0.3 '
1010
1111
1212android {
1313 compileSdkVersion 33
14-
1514 defaultConfig {
1615 minSdkVersion 16
1716 targetSdkVersion 33
1817
1918 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
2019 consumerProguardFiles " consumer-rules.pro"
2120 }
22-
21+ publishing {
22+ singleVariant(" release" ) {
23+ withSourcesJar()
24+ withJavadocJar()
25+ }
26+ }
2327 buildTypes {
2428 release {
2529 minifyEnabled false
2630 }
2731 }
2832 compileOptions {
29- sourceCompatibility JavaVersion . VERSION_1_8
30- targetCompatibility JavaVersion . VERSION_1_8
33+ sourceCompatibility JavaVersion . VERSION_17
34+ targetCompatibility JavaVersion . VERSION_17
3135 }
36+ namespace ' com.shz.imagepicker.imagepicker'
3237}
3338
3439dependencies {
35- implementation " androidx.appcompat:appcompat:1.5 .1"
36- implementation " androidx.recyclerview:recyclerview:1.2 .1"
37- implementation " androidx.exifinterface:exifinterface:1.3.5 "
40+ implementation " androidx.appcompat:appcompat:1.6 .1"
41+ implementation " androidx.recyclerview:recyclerview:1.3 .1"
42+ implementation " androidx.exifinterface:exifinterface:1.3.6 "
3843}
3944
40- publishing {
41- publications {
42- aar(MavenPublication ) {
43- groupId libraryGroupId
44- version libraryVersion
45- artifactId libraryArtifactId
46-
47- artifact(" $buildDir /outputs/aar/${ artifactId} -release.aar" )
45+ afterEvaluate {
46+ publishing {
47+ publications {
48+ release(MavenPublication ) {
49+ from components. release
50+ groupId libraryGroupId
51+ version libraryVersion
52+ artifactId libraryArtifactId
53+ }
4854 }
4955 }
50- }
56+ }
0 commit comments