Skip to content

Commit

Permalink
Making build file jitpack-able
Browse files Browse the repository at this point in the history
  • Loading branch information
dandalf committed May 22, 2015
1 parent b14055d commit eeafc1b
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions ion/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}

repositories {
mavenCentral()
}

apply plugin: 'com.android.library'
apply plugin: 'android-maven'

group = 'co.ribl'

dependencies {
compile 'com.android.support:palette-v7:+'
Expand All @@ -9,9 +26,13 @@ dependencies {
// for when i wanna test this against gms conscrypt
androidTestCompile 'com.google.android.gms:play-services:+'
// mockito nom nom oh god im drunk
androidTestCompile "org.mockito:mockito-core:1.+"
androidTestCompile "com.google.dexmaker:dexmaker:1.2"
androidTestCompile "com.google.dexmaker:dexmaker-mockito:1.2"
androidTestCompile 'com.google.dexmaker:dexmaker:1.0'
androidTestCompile ('com.google.dexmaker:dexmaker-mockito:1.0') {
exclude module: 'hamcrest-core'
exclude module: 'objenesis'
exclude module: 'mockito-core'
}
androidTestCompile 'org.mockito:mockito-all:1.9.5'
}

android {
Expand Down Expand Up @@ -41,23 +62,10 @@ android {
buildToolsVersion '22.0.1'
}

// upload to maven task
if (System.getenv().I_AM_KOUSH == 'true') {
apply from: 'https://raw.githubusercontent.com/koush/mvn-repo/master/maven.gradle'

apply plugin: 'maven'
apply plugin: 'signing'

afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
pom*.whenConfigured { pom ->
pom.dependencies.removeAll { dep -> dep.artifactId == 'support-v4' }
pom.dependencies.removeAll { dep -> dep.artifactId == 'palette-v7' }
}
}
}
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives sourcesJar
}

0 comments on commit eeafc1b

Please sign in to comment.