Skip to content

Commit

Permalink
try jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
brnhffmnn committed Mar 7, 2015
1 parent 9a567c1 commit 2fbce0b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 5 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ Contents
- [RotatedDrawable](de/slowpoke/androidtank/graphics/drawable/RotatedDrawable.java): a `Drawable` that can be programmatically rotated


Usage
======

repositories {
maven { url "https://jitpack.io" }
}

dependencies {
compile 'com.github.panzerfahrer:android-tank:1.0.0'
}

License
=======

Expand All @@ -38,7 +49,7 @@ License
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}

allprojects {
repositories {
jcenter()
}
}
29 changes: 25 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
apply plugin: 'com.android.library'

repositories {
jcenter()
}
apply plugin: 'com.github.dcendents.android-maven'

android {
compileSdkVersion 21
buildToolsVersion '21.1.2'

defaultConfig {
minSdkVersion 14
targetSdkVersion 21
versionCode 100000
versionName "1.0.0"
}
}

// build a jar with source files
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives sourcesJar
}

android.libraryVariants.all { variant ->
def name = variant.buildType.name
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
artifacts.add('archives', task);
}

0 comments on commit 2fbce0b

Please sign in to comment.