I’m trying to run a kotlin script to start a test container as part of my maven build using the the kotlin maven plugin goal script
. I was following the example here:executeKotlinScriptFile.
It seems to work, but I am having trouble finding an example of accessing the project properties in the script from the maven project. i.e.
val dbTag = project.properties.getProperty("dbTag")
.... do some stuff ...
project.properties.setProperty("db.url", jdbcUrl)
The above code results in Unresolved reference project
. I tried with Project
but that didn’t help
Is there any examples of getting and setting the project properties from the script?
Thanks