android - Gradle Dependency using Make -
i decided give gradle shot in latest project featuring graphics create using gimp.
i use git project , refuse commit exportet .png-graphics in repository. instead want save gimps .xcf files in order able edit graphics later on.
however android application need them .png files , there whole lot of them , trying automate build-process want gradle build .png-graphics .xcf files when executing gradle build
.
there plugin featuring imagemagick gradle not work produces images transparency-issues. example:
this image created gradle:
and how should (exportet gimp):
there no hidden layers , not have opacity.
build.gradle:
buildscript { repositories { mavencentral() } dependencies { classpath 'com.eowise:gradle-imagemagick:0.4.0' } } task build(type: com.eowise.imagemagick.tasks.magick) { convert 'xcf/', { include '*.xcf' } 'png/' actions { -alpha('on') -background('none') inputfile() -flatten() outputfile { filename, extension -> "${filename}.png" } } } task clean() { filetree tree = filetree (dir: "xcf/"); tree.each { file file -> file pngfile = new file("png/" + file.name.replacefirst(~/\.[^\.]+$/, '') + ".png") pngfile.delete() } }
the problems seem related imagemagick (source: google), having issues .xcf-files. (i run command on commandline , produces images same issues.)
xcftools
there toolbox called xcftools can export images correctly.
however provided git repository hosted on github , built using gnu build system. (./configure && make
).
as assume no 1 building project has xcftools installed , not available distributions.
which why love have dependency leads me question:
how add git-repositories gradle dependency (or repository)?
how make gradle build compile time , use it?
Comments
Post a Comment