Set extra properties from plugin written in Java

I’m working on a plugin (written in Java, cause I am more familiar with it than I am with Groovy) to allow people to simply add an online ZIP archive as a dependency that will be extracted to a specific folder. I found the [TeamCity-dependency-gradle-plugin on GitHub](] and it adds a “function” that can be used within the dependencies block (see TeamCityDependenciesPlugin.groovy). Unfortunately I can’t seem to find ‘’‘ext’’’ within the Java API for ‘’‘org.gradle.api.Project’’’. Does anyone know how I can achieve this with Java?

Or perhaps someone knows of a plug-in/workaround to achieve the wanted functionality (or a better way to setup the plugin to do this)… Suggestions are more than welcome!

Kind regards, Arno Moonen


If you haven’t already, make sure to check out the Gradle Build Language Reference.