I have written some code and exported it as a jar file. In this jar there is a file named automation.properties
with defaults that I'm loading using
val automationPropertiesFileURL = getClass.getResource("/automation.properties")
if (automationPropertiesFileURL != null) {
val source = Source.fromURL(automationPropertiesFileURL)
config = new Properties()
config.load(source.bufferedReader())
}
But when this jar file gets added as a gradle
dependency in C:\User\abc\.gradle
and I want to read automation.properties
from my current project, how can I override the location and read the file from my project and not from the jar file itself?