11plugins {
22 id ' com.android.library'
3+ id ' maven-publish'
4+ id ' signing'
35}
46
57android {
@@ -28,16 +30,21 @@ android {
2830 targetCompatibility JavaVersion . VERSION_1_8
2931 }
3032}
31-
33+ group = ' ir.smartdevelopers'
34+ version = ' 1.0.0'
35+ task sourcesJar (type : Jar ) {
36+ archiveClassifier. set(" sources" )
37+ from android. sourceSets. main. java. srcDirs
38+ }
39+ task javadocJar2 (type : Jar ) {
40+ archiveClassifier. set( ' javadoc' )
41+ from android. sourceSets. main. java. srcDirs
42+ }
3243dependencies {
3344
3445 implementation ' androidx.appcompat:appcompat:1.2.0'
3546 implementation ' com.google.android.material:material:1.2.1'
3647 implementation ' androidx.constraintlayout:constraintlayout:2.0.4'
37- testImplementation ' junit:junit:4.+'
38- androidTestImplementation ' androidx.test.ext:junit:1.1.2'
39- androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0'
40- implementation ' com.squareup.picasso:picasso:2.71828'
4148 implementation ' com.github.bumptech.glide:glide:4.11.0'
4249 annotationProcessor ' com.github.bumptech.glide:compiler:4.11.0'
4350// implementation 'it.sephiroth.android.library.bottomnavigation:bottom-navigation:3.0.0'
@@ -50,4 +57,57 @@ dependencies {
5057 implementation " androidx.lifecycle:lifecycle-livedata:$lifecycle_version "
5158 implementation " androidx.lifecycle:lifecycle-common-java8:$lifecycle_version "
5259 implementation " androidx.lifecycle:lifecycle-reactivestreams:$lifecycle_version "
60+ }
61+ afterEvaluate {
62+ publishing {
63+ publications {
64+ release(MavenPublication ) {
65+ from components. release
66+ groupId = ' ir.smartdevelopers'
67+ artifactId = ' smart-file-picker'
68+ pom {
69+ name = ' smart-file-picker'
70+ description = ' pick file easilly'
71+ url = ' https://github.com/smartdevelopers-ir/SmartFilePicker'
72+
73+ licenses {
74+ license {
75+ name = ' The Apache License, Version 2.0'
76+ url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
77+ }
78+ }
79+ developers {
80+ developer {
81+ id = ' smartdevelopers'
82+ name = ' mostafa babaei'
83+ email = ' info@smartdevelopers.ir'
84+ }
85+ }
86+ scm {
87+ connection = ' scm:git:git://github.com/smartdevelopers-ir/SmartFilePicker.git'
88+ developerConnection = ' scm:git:ssh://github.com/smartdevelopers-ir/SmartFilePicker.git'
89+ url = ' http://github.com/smartdevelopers-ir/SmartFilePicker'
90+ }
91+
92+ }
93+ }
94+ }
95+ repositories {
96+ maven {
97+ // change URLs to point to your repos, e.g. http://my.org/repo
98+ def releasesRepoUrl = " $buildDir /repos/releases"
99+ def snapshotsRepoUrl = " $buildDir /repos/snapshots"
100+ url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
101+ }
102+ }
103+ }
104+
105+ }
106+ signing {
107+ sign configurations. archives
108+ }
109+
110+ artifacts {
111+ archives sourcesJar
112+ archives javadocJar2
53113}
0 commit comments