1- apply plugin : ' com.android.library'
1+ apply plugin : ' android-library'
2+ apply plugin : ' maven'
3+ apply plugin : ' signing'
24
35group = ' com.davemorrissey.labs'
46archivesBaseName = ' subsampling-scale-image-view'
5- version = ' 3.7.0 '
7+ version = ' 3.7.1 '
68
7- android {
8- compileSdkVersion 25
9- buildToolsVersion " 25.0.2"
9+ signing {
10+ required { has(" release" ) && gradle. taskGraph. hasTask(" uploadArchives" ) }
11+ sign configurations. archives
12+ }
13+
14+ uploadArchives {
15+ configuration = configurations. archives
16+ repositories. mavenDeployer {
17+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
18+
19+ repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
20+ authentication(userName : sonatypeUsername, password : sonatypePassword)
21+ }
22+
23+ pom. project {
24+ name ' SubsamplingScaleImageView'
25+ packaging ' aar'
26+ description ' Custom image views for Android with pinch to zoom, panning, rotation and animation support, with easy extension so you can add your own overlays and touch event detection.'
27+ url ' https://github.com/davemorrissey/subsampling-scale-image-view'
1028
11- defaultConfig {
12- consumerProguardFiles ' proguard-rules.txt'
29+ scm {
30+ url
' scm:[email protected] :davemorrissey/subsampling-scale-image-view.git' 31+ connection
' scm:[email protected] :davemorrissey/subsampling-scale-image-view.git' 32+ developerConnection
' scm:[email protected] :davemorrissey/subsampling-scale-image-view.git' 33+ }
34+
35+ licenses {
36+ license {
37+ name ' The Apache Software License, Version 2.0'
38+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
39+ distribution ' repo'
40+ }
41+ }
42+
43+ developers {
44+ developer {
45+ id ' davemorrissey'
46+ name ' Dave Morrissey'
47+ }
48+ }
49+ }
1350 }
51+ }
52+
53+ dependencies {
54+ compile fileTree(dir : ' libs' , include : ' *.jar' )
55+ compile ' com.android.support:support-annotations:25.0.0'
56+ }
57+
58+ android {
59+ compileSdkVersion 23
60+ buildToolsVersion " 23.0.3"
1461
1562 sourceSets {
1663 main {
@@ -35,11 +82,4 @@ android {
3582 debug. setRoot(' build-types/debug' )
3683 release. setRoot(' build-types/release' )
3784 }
38- }
39-
40- dependencies {
41- compile fileTree(dir : ' libs' , include : ' *.jar' )
42- compile ' com.android.support:support-annotations:25.3.0'
43- }
44-
45- apply from : rootProject. file(' release.gradle' )
85+ }
0 commit comments