-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yuriy Budiyev
committed
Feb 18, 2022
1 parent
d62a187
commit ccc2616
Showing
4 changed files
with
134 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,53 @@ | ||
buildscript { | ||
|
||
repositories { | ||
|
||
google() | ||
jcenter() | ||
|
||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.2.1' | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' | ||
|
||
classpath 'com.android.tools.build:gradle:7.0.4' | ||
} | ||
} | ||
|
||
allprojects { | ||
|
||
repositories { | ||
|
||
google() | ||
jcenter() | ||
|
||
mavenCentral() | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'maven-publish' | ||
|
||
ext { | ||
libraryName = 'CircularProgressBar' | ||
libraryDescription = 'Circular progress bar' | ||
libraryVersion = '1.2.2' | ||
artifact = 'circular-progress-bar' | ||
developerId = 'yuriy-budiyev' | ||
developerName = 'Yuriy Budiyev' | ||
developerEmail = '[email protected]' | ||
libraryVersion = '1.2.3' | ||
publishedGroupId = 'com.budiyev.android' | ||
siteUrl = 'https://github.com/yuriy-budiyev/circular-progress-bar' | ||
gitUrl = 'https://github.com/yuriy-budiyev/circular-progress-bar.git' | ||
bintrayRepo = 'maven' | ||
bintrayName = 'circular-progress-bar' | ||
licenseName = 'MIT License' | ||
allLicenses = ['MIT'] | ||
} | ||
|
||
group = publishedGroupId | ||
version = libraryVersion | ||
|
||
android { | ||
compileSdkVersion 28 | ||
compileSdkVersion 31 | ||
buildToolsVersion '31.0.0' | ||
|
||
defaultConfig { | ||
minSdkVersion 14 | ||
targetSdkVersion 28 | ||
versionCode 23 | ||
targetSdkVersion 31 | ||
versionCode 24 | ||
versionName libraryVersion | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_6 | ||
targetCompatibility JavaVersion.VERSION_1_6 | ||
sourceCompatibility JavaVersion.VERSION_1_7 | ||
targetCompatibility JavaVersion.VERSION_1_7 | ||
} | ||
|
||
buildTypes { | ||
|
@@ -63,89 +59,40 @@ android { | |
} | ||
|
||
dependencies { | ||
api 'androidx.annotation:annotation:1.0.1' | ||
} | ||
|
||
group = publishedGroupId | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom { | ||
project { | ||
packaging 'aar' | ||
groupId publishedGroupId | ||
artifactId artifact | ||
name libraryName | ||
description libraryDescription | ||
url siteUrl | ||
|
||
licenses { | ||
license { | ||
name licenseName | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id developerId | ||
name developerName | ||
email developerEmail | ||
} | ||
} | ||
|
||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
} | ||
} | ||
} | ||
} | ||
api 'androidx.annotation:annotation:1.3.0' | ||
} | ||
|
||
version = libraryVersion | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
archiveClassifier.set('sources') | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
options.charSet = 'UTF-8' | ||
failOnError false | ||
source = android.sourceSets.main.java.sourceFiles | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
failOnError = false | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.getDestinationDir() | ||
archiveClassifier.set('javadoc') | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
|
||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
|
||
bintray { | ||
user = properties.getProperty('bintray.user') | ||
key = properties.getProperty('bintray.apikey') | ||
configurations = ['archives'] | ||
|
||
pkg { | ||
repo = bintrayRepo | ||
name = bintrayName | ||
desc = libraryDescription | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = allLicenses | ||
publish = true | ||
|
||
version { | ||
desc = libraryDescription | ||
vcsTag = 'v' + libraryVersion | ||
afterEvaluate { | ||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
from components.release | ||
artifactId = 'circular-progress-bar' | ||
groupId = publishedGroupId | ||
version = libraryVersion | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.