50 lines
1.2 KiB
Groovy
50 lines
1.2 KiB
Groovy
|
apply plugin: 'com.android.library'
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion 29
|
||
|
defaultConfig {
|
||
|
minSdkVersion 21
|
||
|
targetSdkVersion 28
|
||
|
versionCode 1
|
||
|
versionName "1.0"
|
||
|
}
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha01'
|
||
|
|
||
|
testCompile 'junit:junit:4.12'
|
||
|
testCompile "org.mockito:mockito-core:1.9.5"
|
||
|
testCompile "org.robolectric:robolectric:3.0"
|
||
|
}
|
||
|
|
||
|
|
||
|
// Running from Gradle tab in IDE would create liboverscroll/build/lib/liboverscroll-sources.jar
|
||
|
task sourcesJar(type: Jar) {
|
||
|
from android.sourceSets.main.java.srcDirs
|
||
|
classifier = 'sources'
|
||
|
}
|
||
|
|
||
|
task javadoc(type: Javadoc) {
|
||
|
failOnError false
|
||
|
source = android.sourceSets.main.java.srcDirs
|
||
|
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
||
|
}
|
||
|
|
||
|
// Running from Gradle tab in IDE would create liboverscroll/build/lib/liboverscroll-javadoc.jar
|
||
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
||
|
classifier = 'javadoc'
|
||
|
from javadoc.destinationDir
|
||
|
}
|
||
|
|
||
|
artifacts {
|
||
|
archives javadocJar
|
||
|
archives sourcesJar
|
||
|
}
|