Skip to content

Commit

Permalink
Refactor bintray upload to upload all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusja committed Jan 26, 2017
1 parent 2b4e28c commit 4711b82
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 27 deletions.
1 change: 1 addition & 0 deletions libaums/bintray.gradle → bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if (project.hasProperty("android")) { // Android libraries
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.javadocDeps
failOnError = false
}
} else { // Java libraries
task sourcesJar(type: Jar, dependsOn: classes) {
Expand Down
28 changes: 27 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@ buildscript {
}
}

ext {
bintrayRepo = 'maven'
bintrayName = 'libaums'

publishedGroupId = 'com.github.mjdev'
libraryName = 'libaums'

// artifact comes from module
//artifact = 'libaums'

libraryDescription = 'Android USB mass storage library with FAT32 support.'

siteUrl = 'https://github.com/mjdev/libaums'
gitUrl = 'https://github.com/mjdev/libaums.git'

libraryVersion = '0.5.0'

developerId = 'mjdev'
developerName = 'mjahnen'
developerEmail = '[email protected]'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}

allprojects {
repositories {
jcenter()
Expand All @@ -23,4 +49,4 @@ allprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}
}
9 changes: 9 additions & 0 deletions httpserver/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apply plugin: 'com.android.library'

ext {
artifact = 'libaums-http'
}

configurations {
javadocDeps
}
Expand Down Expand Up @@ -35,3 +39,8 @@ dependencies {
compile 'com.android.support:support-annotations:25.1.0'
compile project(':libaums')
}

task bintray {
apply from: '../install.gradle'
apply from: '../bintray.gradle'
}
File renamed without changes.
33 changes: 7 additions & 26 deletions libaums/build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,12 @@
apply plugin: 'com.android.library'

configurations {
javadocDeps
}

ext {
bintrayRepo = 'maven'
bintrayName = 'libaums'

publishedGroupId = 'com.github.mjdev'
libraryName = 'libaums'
artifact = 'libaums'
}

libraryDescription = 'Android USB mass storage library with FAT32 support.'

siteUrl = 'https://github.com/mjdev/libaums'
gitUrl = 'https://github.com/mjdev/libaums.git'

libraryVersion = '0.5.0'

developerId = 'mjdev'
developerName = 'mjahnen'
developerEmail = '[email protected]'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
configurations {
javadocDeps
}

android {
Expand Down Expand Up @@ -56,7 +37,7 @@ dependencies {
javadocDeps 'com.android.support:support-annotations:25.1.0'
}

if("$System.env.UPLOAD_BINTRAY".equalsIgnoreCase("1")) {
apply from: 'install.gradle'
apply from: 'bintray.gradle'
}
task bintray {
apply from: '../install.gradle'
apply from: '../bintray.gradle'
}
15 changes: 15 additions & 0 deletions storageprovider/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
apply plugin: 'com.android.library'


ext {
artifact = 'libaums-storageprovider'
}

configurations {
javadocDeps
}

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
Expand All @@ -26,3 +35,9 @@ dependencies {
compile 'org.apache.commons:commons-io:1.3.2'
compile project(':libaums')
}


task bintray {
apply from: '../install.gradle'
apply from: '../bintray.gradle'
}

0 comments on commit 4711b82

Please sign in to comment.