Allow ServiceFileTransformer to have its path be configurable #72

Closed
aalmiray opened this Issue Jul 16, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@aalmiray
Contributor

aalmiray commented Jul 16, 2014

Currently the path 'META-INF/services' is hard-coded and private. The only way to configure a similar transformer while targeting a different path is to subclass the transformer (like so https://github.com/griffon/griffon/blob/development/subprojects/gradle-griffon-plugin/src/main/groovy/org/codehaus/griffon/gradle/shadow/transformers/GriffonFileTransformer.groovy).

It would be better if ServiceFileTransformer allowed its path to be configurable, like this

shadowJar {
    transform(ServiceFileTransformer) {
        path = 'META-INF/griffon'
    }
}

The current path value would be used as default though, so no additional configuration should be made if the standard location is the target path.

@johnrengelman johnrengelman added this to the 1.0.3 milestone Jul 16, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment