Skip to content

Commit

Permalink
updates tp verstion 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickfav committed Jan 20, 2017
1 parent 9fc99d5 commit b2c9cb4
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 21 deletions.
27 changes: 10 additions & 17 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,16 @@ dependencies {

testCompile "junit:junit:$rootProject.ext.dependencies.junit"

// debugCompile("at.favre.lib.hood:hood-extended:$rootProject.ext.versionNameDep")
// releaseCompile("at.favre.lib.hood:hood-extended:$rootProject.ext.versionNameDep")
//
// releaseNoopCompile("at.favre.lib.hood:hood-extended:$rootProject.ext.versionNameDep") {
// exclude group: 'at.favre.lib.hood', module: 'hood-core'
// compile(group: 'at.favre.lib.hood', name: 'hood-core', version: rootProject.ext.versionNameDep,
// classifier: 'noop', ext: 'aar', transitive: true)
// }

// compile("at.favre.lib.hood:hood-extended:$rootProject.ext.versionNameDep")

// releaseNoopCompile("at.favre.lib.hood:hood-extended:$rootProject.ext.versionNameDep") {
// exclude group: 'at.favre.lib.hood', module: 'hood-core'
// compile(group: 'at.favre.lib.hood', name: 'hood-core', version: rootProject.ext.versionNameDep,
// classifier: 'noop', ext: 'aar', transitive: true)
// }
compile project(path: ':hood-extended')
debugCompile("at.favre.lib.hood:hood-extended:$rootProject.ext.versionNameDep")
releaseCompile("at.favre.lib.hood:hood-extended:$rootProject.ext.versionNameDep")

releaseNoopCompile("at.favre.lib.hood:hood-extended:$rootProject.ext.versionNameDep") {
exclude group: 'at.favre.lib.hood', module: 'hood-core'
releaseNoopCompile(group: 'at.favre.lib.hood', name: 'hood-core', version: rootProject.ext.versionNameDep,
classifier: 'noop', ext: 'aar', transitive: true)
}

// compile project(path: ':hood-extended')
}

def String getGitRev() {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ task clean(type: Delete) {
}

ext {
versionNameApp = "0.2.2"
versionNameApp = "0.2.3"
versionNameLib = "$versionNameApp"
versionCode = 2
versionNameDep = "0.2.2"
versionNameDep = "0.2.3"


compileSdkVersion = 25
Expand Down
16 changes: 15 additions & 1 deletion hood-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

android {
publishNonDefault true
publishNonDefault false
defaultPublishConfig "release"

compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

Expand All @@ -29,6 +31,18 @@ android {
consumerProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

// libraryVariants.all { variant ->
// println "xxxv base: " + variant.getBaseName()
// variant.outputs.each { output ->
// if (variant.name == "release") {
// output.outputFile = new File(
// output.outputFile.parent,
// output.outputFile.name.replace(("-release.aar"), ".aar"))
// }
// }
// }

}

android.variantFilter { variant ->
Expand Down
2 changes: 1 addition & 1 deletion hood-extended/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
compile "com.android.support:appcompat-v7:$rootProject.ext.dependencies.support"
compile "com.android.support:design:$rootProject.ext.dependencies.support"

compile project(path: ':hood-core', configuration: 'release')
compile project(path: ':hood-core')

testCompile "junit:junit:$rootProject.ext.dependencies.junit"
}
Expand Down
8 changes: 8 additions & 0 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ install {
found.type = "aar"
}
}
println "xxxx: " + new File(project.buildDir, "outputs/aar")
}
}

Expand Down Expand Up @@ -78,6 +79,13 @@ bintray {
key = properties.getProperty("bintray.apikey")

configurations = ['archives']
filesSpec { //When uploading any arbitrary files ('filesSpec' is a standard Gradle CopySpec)
from new File(project.buildDir, "outputs/aar")
include '*-noop.aar'
into "$group/$rootProject.ext.versionNameLib/"
rename { name -> "hood-core-$rootProject.ext.versionNameLib-noop.aar" }
}

dryRun = false
publish = true //Whether version should be auto published after an upload
override = false //[Default: false] Whether to override version artifacts already published
Expand Down

0 comments on commit b2c9cb4

Please sign in to comment.