Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19870

How can I represent configuration of artifactory plugin from my custom plugin in Kotlin?

$
0
0

If I have the correct plugin code, it uses the old-style/deprecated “conventions” rather than the newer extension concept. I think this is the code that creates that convention.
You should be able to get a reference to that convention using the Convention interface:

ArtifactoryPluginConvention art = project.getRootProject().getConvention().[get|find]Plugin(ArtifactoryPluginConvention.class)

Viewing all articles
Browse latest Browse all 19870

Trending Articles