11apply plugin : ' com.android.library'
2- // apply plugin: 'kotlin-android'
3- apply plugin : ' com.github.dcendents.android-maven'
4- // apply plugin: 'com.jfrog.bintray'
52
63android {
7- compileSdkVersion 27
4+ compileSdkVersion 30
85
96 defaultConfig {
107 minSdkVersion 14
11- targetSdkVersion 27
8+ targetSdkVersion 30
129 versionCode 1
1310 versionName " 1.0.0"
1411
@@ -29,44 +26,44 @@ android {
2926 }
3027}
3128
32- ext. artifact = [
33- ' groupId' : ' com.akylas' ,
34- ' id' : ' canvas' ,
35- ' version' : ' 1.0.0' ,
36- ' siteUrl' : ' https://github.com' ,
37- ' gitUrl' : ' https://github.com' ,
38- ' userOrg' : ' farfromrefug' ,
39- ' repo' : ' android'
40- ]
29+ // ext.artifact = [
30+ // 'groupId': 'com.akylas',
31+ // 'id' : 'canvas',
32+ // 'version': '1.0.0',
33+ // 'siteUrl': 'https://github.com',
34+ // 'gitUrl' : 'https://github.com',
35+ // 'userOrg': 'farfromrefug',
36+ // 'repo' : 'android'
37+ // ]
4138
42- version = artifact. version
43- group = artifact. groupId
39+ // version = artifact.version
40+ // group = artifact.groupId
4441
45- install {
46- repositories. mavenInstaller {
47- pom. project {
48- packaging ' jar'
49- groupId artifact. groupId
50- artifactId artifact. id
51- version artifact. version
52- name artifact. id // pom.project.name must be same as bintray.pkg.name
53- url artifact. siteUrl
54- inceptionYear ' 2018' // HARDCODED
55- licenses {
56- license { // HARDCODED
57- name ' GPL-3.0'
58- url ' https://www.gnu.org/licenses/gpl.txt'
59- distribution ' repo'
60- }
61- }
62- scm {
63- connection artifact. gitUrl
64- developerConnection artifact. gitUrl
65- url artifact. siteUrl
66- }
67- }
68- }
69- }
42+ // install {
43+ // repositories.mavenInstaller {
44+ // pom.project {
45+ // packaging 'jar'
46+ // groupId artifact.groupId
47+ // artifactId artifact.id
48+ // version artifact.version
49+ // name artifact.id
50+ // url artifact.siteUrl
51+ // inceptionYear '2018' // HARDCODED
52+ // licenses {
53+ // license { // HARDCODED
54+ // name 'GPL-3.0'
55+ // url 'https://www.gnu.org/licenses/gpl.txt'
56+ // distribution 'repo'
57+ // }
58+ // }
59+ // scm {
60+ // connection artifact.gitUrl
61+ // developerConnection artifact.gitUrl
62+ // url artifact.siteUrl
63+ // }
64+ // }
65+ // }
66+ // }
7067
7168task sourcesJar (type : Jar ) {
7269 from android. sourceSets. main. java. srcDirs
@@ -89,28 +86,6 @@ artifacts {
8986// archives javadocJar
9087}
9188
92- // Properties properties = new Properties()
93- // File propFile = "${System.properties['user.home']}/.gradle/bintray.properties" as File
94- // properties.load(propFile.newDataInputStream())
95- //
96- // bintray {
97- // user = properties.getProperty("bintray.user")
98- // key = properties.getProperty("bintray.apikey")
99- //
100- // configurations = ['archives']
101- // pkg {
102- // repo = artifact.repo
103- // name = artifact.id
104- // websiteUrl = artifact.siteUrl
105- // vcsUrl = artifact.gitUrl
106- // userOrg = artifact.userOrg
107- // licenses = ['Apache-2.0']
108- // publish = true
109- // version {
110- // name = artifact.version
111- // }
112- // }
113- // }
11489
11590dependencies {
11691 implementation " androidx.annotation:annotation:1.1.0"
0 commit comments