Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 1de93e8

Browse files
committed
Change lib module name, add bintray deployment files.
1 parent 0c3b634 commit 1de93e8

File tree

18 files changed

+172
-37
lines changed

18 files changed

+172
-37
lines changed
File renamed without changes.

android-ui-toolkit/bintray.gradle

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apply plugin: 'com.jfrog.bintray'
2+
3+
version = libraryVersion
4+
5+
/*
6+
* Comment the following part if you only want to distribute .aar files.
7+
* (For example, your source code is obfuscated by Proguard and is not shown to outsite developers)
8+
* Without source code .jar files, you only can publish on bintray respository but not jcenter.
9+
*/
10+
11+
/*--------------------------------*/
12+
if (project.hasProperty("android")) {
13+
task sourcesJar(type: Jar) {
14+
classifier = 'sources'
15+
from android.sourceSets.main.java.srcDirs
16+
}
17+
18+
task javadoc(type: Javadoc) {
19+
source = android.sourceSets.main.java.srcDirs
20+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
21+
}
22+
} else { // Java libraries
23+
task sourcesJar(type: Jar, dependsOn: classes) {
24+
classifier = 'sources'
25+
from sourceSets.main.allSource
26+
}
27+
}
28+
29+
task javadocJar(type: Jar, dependsOn: javadoc) {
30+
classifier = 'javadoc'
31+
from javadoc.destinationDir
32+
}
33+
34+
artifacts {
35+
archives javadocJar
36+
archives sourcesJar
37+
}
38+
/*--------------------------------*/
39+
40+
// Bintray
41+
Properties properties = new Properties()
42+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
43+
44+
bintray {
45+
user = properties.getProperty("bintray.user")
46+
key = properties.getProperty("bintray.apikey")
47+
48+
configurations = ['archives']
49+
pkg {
50+
repo = bintrayRepo
51+
name = bintrayName
52+
desc = libraryDescription
53+
websiteUrl = siteUrl
54+
vcsUrl = gitUrl
55+
licenses = allLicenses
56+
publish = true
57+
publicDownloadNumbers = true
58+
version {
59+
desc = libraryDescription
60+
gpg {
61+
sign = true
62+
passphrase = properties.getProperty("bintray.gpg.password")
63+
}
64+
}
65+
}
66+
}

android-ui-toolkit/build.gradle

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
apply plugin: 'com.android.library'
2+
3+
android {
4+
compileSdkVersion 26
5+
6+
7+
8+
defaultConfig {
9+
minSdkVersion 16
10+
targetSdkVersion 26
11+
versionCode 1
12+
versionName "1.0"
13+
14+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
15+
16+
}
17+
18+
buildTypes {
19+
release {
20+
minifyEnabled false
21+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
22+
}
23+
}
24+
25+
}
26+
27+
dependencies {
28+
implementation fileTree(dir: 'libs', include: ['*.jar'])
29+
30+
implementation 'com.android.support:appcompat-v7:26.1.0'
31+
testImplementation 'junit:junit:4.12'
32+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
33+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
34+
}
35+
36+
ext {
37+
38+
bintrayRepo = 'maven'
39+
bintrayName = 'android-ui-toolkit'
40+
41+
publishedGroupId = 'io.supernova'
42+
libraryName = 'android-ui-toolkit'
43+
artifact = 'android-ui-toolkit'
44+
45+
libraryDescription = 'Set of Android SDK extensions to make things where the SDK is not enough.'
46+
47+
siteUrl = 'https://github.com/Supernova-Studio/android-ui-toolkit'
48+
gitUrl = 'https://github.com/Supernova-Studio/android-ui-toolkit.git'
49+
50+
libraryVersion = '1.0.0'
51+
52+
developerId = 'supernova-studio'
53+
developerName = 'Supernova Studio'
54+
developerEmail = 'accounts.tech@supernova.studio'
55+
56+
licenseName = 'The Apache Software License, Version 2.0'
57+
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
58+
allLicenses = ["Apache-2.0"]
59+
60+
}
61+
62+
apply from: 'install.gradle'
63+
apply from: 'bintray.gradle'

android-ui-toolkit/install.gradle

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apply plugin: 'com.github.dcendents.android-maven'
2+
3+
group = publishedGroupId // Maven Group ID for the artifact
4+
5+
install {
6+
repositories.mavenInstaller {
7+
// This generates POM.xml with proper parameters
8+
pom.project {
9+
packaging 'aar'
10+
groupId publishedGroupId
11+
artifactId artifact
12+
13+
name libraryName
14+
description libraryDescription
15+
url siteUrl
16+
17+
licenses {
18+
license {
19+
name licenseName
20+
url licenseUrl
21+
}
22+
}
23+
developers {
24+
developer {
25+
id developerId
26+
name developerName
27+
email developerEmail
28+
}
29+
}
30+
scm {
31+
connection gitUrl
32+
developerConnection gitUrl
33+
url siteUrl
34+
35+
}
36+
}
37+
38+
}
39+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)