How would I include a properties file in Gradle?
For example in Ant, I could do the following:
What you propably are looking for is something like:
Properties props = new Properties()
props.load(new FileInputStream("$project.rootDir/profile/"+"$environment"+".properties"))
props.each { prop ->
project.ext.set(prop.key, prop.value)
}
Your properties should then be accessible directly through their name. I.e.:
println "$jdbcURL"
println project.jdbcURL
Theres probably a reason (shadowing?) why its a bad idea to do this? Not sure why its not supported out of the box or can be found somewhere else.