How to rename file in flatDir

(dinio.dinev) #1

Hi I have a dependency

reports "ala:bala:6.5.4:min@js"

I wrote

flatDir name: 'localRepository', dirs:"C:\dirRepo"

and in the dirRepo directory I put

bala.min.js How to rename the file that Gradle will take it?

(Peter Niederwieser) #2

What ‘reports’ method that accepts a dependency notation are you referring to?

(dinio.dinev) #3

reports is a configuration and then I use this js in a Copy task. What is format that flatDir espects for my js file?

(Peter Niederwieser) #4

Try ‘bala-min.js’.

(dinio.dinev) #5

Thanks, Peter. That solve my problem. You can mark these problem as solved.