Skip to content

Commit

Permalink
Changes to build gradle minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Maliotis committed May 26, 2020
1 parent 17c5c71 commit 42e69a1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions iosalert/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ android {
}
}

sourceSets {
main.java.srcDirs += 'src/main/java'
main.resources.srcDirs += 'src/main/res'
androidTest.java.srcDirs += 'src/androidTest'
androidTest.resources.srcDirs += 'src/androidTest/res'
}

}

configurations {
Expand All @@ -52,3 +59,28 @@ task copyLibs(type: Copy) {
from configurations.myConfig
into 'libs'
}

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 42e69a1

Please sign in to comment.