Skip to content

Commit f8c9f4e

Browse files
author
Vincent Gachet
committed
Update maven publishing config
1 parent d6a9fcf commit f8c9f4e

File tree

6 files changed

+59
-157
lines changed

6 files changed

+59
-157
lines changed

app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 23
4+
compileSdkVersion 27
55
buildToolsVersion '27.0.3'
66

77
defaultConfig {
88
applicationId "fr.smartapps.smadownloadmanager"
99
minSdkVersion 16
10-
targetSdkVersion 22
10+
targetSdkVersion 27
1111
versionCode 1
1212
versionName "1.0"
1313
}
@@ -20,7 +20,7 @@ android {
2020
}
2121

2222
dependencies {
23-
compile 'com.android.support:appcompat-v7:23.4.0'
24-
compile project(':lib_sma-packagemanager')
25-
compile 'com.google.code.gson:gson:2.8.0'
23+
api 'com.android.support:appcompat-v7:27.1.1'
24+
api project(':lib_sma-packagemanager')
25+
api 'com.google.code.gson:gson:2.8.0'
2626
}

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.1.4'
9+
classpath 'com.android.tools.build:gradle:4.1.3'
1010
// deploy to maven repository
11-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
12-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
11+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1312
}
1413
}
1514

1615
allprojects {
1716
repositories {
1817
jcenter()
19-
maven { url 'https://dl.bintray.com/smartapps/maven' }
2018
maven { url "https://jitpack.io" }
2119
google()
2220
}

gradle.properties

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
projectversion = 1.0.23
20+
projectversion = 1.0.24
2121

22-
bintrayrepo = maven
23-
bintrayname = smartapps_libraries
24-
25-
publishedgroupid = fr.smartapps.library
22+
publishedgroupid = com.github.VGachet
2623
libraryname = smartapps_libraries
2724

2825
librarydescription = Nice libraries
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Sep 10 15:30:37 CEST 2018
1+
#Thu May 20 15:14:53 CEST 2021
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip

lib_sma-packagemanager/build.gradle

Lines changed: 48 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
apply plugin: 'com.android.library'
1+
plugins {
2+
id 'com.android.library'
3+
id 'maven-publish'
4+
}
25

36
android {
4-
compileSdkVersion 24
7+
compileSdkVersion 27
58
buildToolsVersion '27.0.3'
69

710
defaultConfig {
811
minSdkVersion 16
9-
targetSdkVersion 22
12+
targetSdkVersion 27
1013
versionCode 1
1114
versionName "1.0"
1215
}
@@ -19,44 +22,51 @@ android {
1922
}
2023

2124
dependencies {
22-
compile 'commons-io:commons-io:2.4'
23-
compile 'com.squareup.okhttp3:okhttp:3.5.0'
25+
api 'commons-io:commons-io:2.4'
26+
api 'com.squareup.okhttp3:okhttp:3.5.0'
2427
}
2528

26-
///////////////////////////////////
27-
//// BINTRAY UPLOAD ////
28-
///////////////////////////////////
29-
30-
//////////////////////////////////////////
31-
//// ////
32-
//// Pour uploader : ////
33-
//// ////
34-
//// ./gradlew bintrayUpload ////
35-
//// ////
36-
//////////////////////////////////////////
37-
38-
ext {
39-
bintrayRepo = bintrayrepo
40-
bintrayName = bintrayname
41-
42-
publishedGroupId = publishedgroupid
43-
libraryName = libraryname
44-
artifact = 'lib_sma-packagemanager'
45-
46-
libraryDescription = librarydescription
29+
afterEvaluate {
30+
publishing {
31+
publications {
32+
release(MavenPublication) {
33+
from components.release
4734

48-
siteUrl = siteurl
49-
gitUrl = giturl
35+
groupId = 'com.github.VGachet'
36+
artifactId = 'sma_packagemanager'
37+
version = '1.0.24'
5038

51-
libraryVersion = projectversion
39+
pom {
40+
packaging 'aar'
41+
groupId 'com.github.VGachet'
42+
artifactId 'sma_packagemanager'
5243

53-
developerId = developerid
54-
developerName = developername
55-
developerEmail = developeremail
44+
// Add your description here
45+
name = 'sma_commonlib'
46+
description = 'Smartapps packagemanager library'
47+
url = 'https://smartapps.fr/'
5648

57-
licenseName = licensename
58-
licenseUrl = licenseurl
59-
allLicenses = alllicenses
60-
}
61-
62-
apply from: '../maven.gradle'
49+
// Set your license
50+
licenses {
51+
license {
52+
name = 'The Apache Software License, Version 2.0'
53+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
54+
}
55+
}
56+
developers {
57+
developer {
58+
id = 'smartapps'
59+
name = 'Smartapps'
60+
61+
}
62+
}
63+
scm {
64+
connection = 'https://github.com/smartguide.git'
65+
developerConnection = 'https://github.com/smartguide.git'
66+
url = 'https://github.com/smartguide.git'
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}

maven.gradle

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)