Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

How to use android-maven-gradle-plugin with gradle-experimental-0.8.2+? #58

Open
henhal opened this issue Mar 7, 2017 · 0 comments
Open

Comments

@henhal
Copy link

henhal commented Mar 7, 2017

Hi,

After migrating from stable gradle to experiemental-gradle-0.8.2 (for NDK reasons) I am unable to create the needed tasks for sourcesJar, javadocJar etc. The gradle-experimental plugin introduces a new syntax with model blocks surrounding android blocks, and I am unable to get tasks referencing e.g. the sourceSets properties to work:

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

Could you help me understand how to create this task, and also how to reference e.g. android.defaultConfig.versionName with the new syntax? My gradle skills are failing me miserably.

See also SO: http://stackoverflow.com/questions/42647390/android-maven-gradle-plugin-gradle-experimental

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant