stanfy / spoon-gradle-plugin

Gradle plugin for Spoon.
Apache License 2.0
353 stars 79 forks source link

About customize outputs folder #156

Open ghost opened 7 years ago

ghost commented 7 years ago

Can I keep output from .../spoon/debug/ to .../spoon/20170506/ by set ouputs var?

As follow is my code

def time() { return new Date().format("yyyyMMdd", TimeZone.getTimeZone("UTC")) }

android{ afterEvaluate { apply plugin: 'spoon' spoon { className = '...' sequential = true grantAllPermissions = true shard = true numShards = 4 shardIndex = 0 } } }

task copyTask(type: Copy) { from "build/spoon/debug" into "build/spoon/${time()}/" }

jainsahab commented 7 years ago

try this:

image

Igorshp commented 7 years ago

sweet, thanks @jainsahab