gradle: fix vtm-android install + generate source jars

This commit is contained in:
Hannes Janetzek
2014-11-19 23:50:37 +01:00
parent 77f383913d
commit aaec15a66a
5 changed files with 47 additions and 11 deletions

View File

@@ -15,6 +15,14 @@ sourceSets {
main.compileClasspath += configurations.providedCompile
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
eclipse.classpath {
//you can tweak the classpath of the Eclipse project by adding extra configurations:
plusConfigurations += [ configurations.providedCompile ]