Skip to content

Commit

Permalink
Fix gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinayMe committed Jan 9, 2019
1 parent 7289fe6 commit 3523421
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

buildscript {
repositories {
jcenter()
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
Expand All @@ -15,8 +16,10 @@ buildscript {

allprojects {
repositories {
jcenter()
mavenCentral()
google()
jcenter()
maven { url "https://jitpack.io" }
}
}

Expand Down
25 changes: 25 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,28 @@ dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.3'

}

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

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

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

task classesJar(type: Jar) {
from "$buildDir/intermediates/classes/release"
}

artifacts {
archives classesJar
archives javadocJar
archives sourcesJar
}

0 comments on commit 3523421

Please sign in to comment.