Skip to content

Commit

Permalink
Fix jitpack upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenVinouze committed Apr 30, 2016
1 parent da5a31c commit f4c9e30
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 48 deletions.
1 change: 0 additions & 1 deletion advancedrecyclerview/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions advancedrecyclerview/build.gradle

This file was deleted.

17 changes: 0 additions & 17 deletions advancedrecyclerview/proguard-rules.pro

This file was deleted.

1 change: 0 additions & 1 deletion advancedrecyclerview/src/main/AndroidManifest.xml

This file was deleted.

3 changes: 0 additions & 3 deletions advancedrecyclerview/src/main/res/values/strings.xml

This file was deleted.

13 changes: 0 additions & 13 deletions core/src/main/res/layout/section_view.xml

This file was deleted.

2 changes: 1 addition & 1 deletion core/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">AdvancedRecyclerView-Common</string>
<string name="app_name">AdvancedRecyclerView-Core</string>
</resources>
23 changes: 23 additions & 0 deletions library.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.stephenvinouze'

android {
compileSdkVersion Integer.parseInt(ANDROID_BUILD_SDK_VERSION)
Expand All @@ -22,3 +25,23 @@ android {
androidTest.java.srcDirs += 'src/androidTest/kotlin'
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
//archives javadocJar
archives sourcesJar
}
10 changes: 8 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {

defaultConfig {
applicationId "com.github.stephenvinouze.advancedrecyclerviewsample"
minSdkVersion 7
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
Expand All @@ -25,11 +25,17 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':advancedrecyclerview')
compile project(':core')
compile project(':section')
compile project(':pagination')
compile project(':gesture')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:cardview-v7:23.3.0'
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':sample', ':advancedrecyclerview', ':core', ':section', ':pagination', ':gesture'
include ':sample', ':core', ':section', ':pagination', ':gesture'

0 comments on commit f4c9e30

Please sign in to comment.