LibGDX Gradle task to export android project in a jar -


i'm using android studio libgdx , i'm trying create gradle task export android project jar. have added following code default build.gradle file under android project folder:

task exportmylib(type: jar){     android.sourcesets.main.java.srcdirs } 

that orks fine export source files. need export compiled classes - how can that?

maybe interesting else out there -i have come this:

task exportmylib(dependson: build, type: jar) {     android.sourcesets.main.java.srcdirs     from('build/intermediates/classes/release/')     project(':core').sourcesets.main.output.classesdir     project(':core').sourcesets.main.allsource } 

i don't fact uses hardcoded path instead of variable, not figure out otherwise.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -