This message was deleted.
# general
s
This message was deleted.
a
Yes, a plugin is the right way. If you want to share logic between multiple-repos, you can check this sample: https://docs.gradle.org/current/samples/sample_publishing_convention_plugins.html So basically you can write a convention plugin that is automatically translated to a plugin but looks like a normal build script. And then you publish it to your maven repository. If you want to write plugin directly in Java, you can write a normal plugin: https://docs.gradle.org/current/samples/sample_gradle_plugin.html Sample has groovy-dsl and kotlin-dsl example, but both also contain “standard” Java plugin. You can achieve the same thing with this plugin as with convention plugin and you can also publish it to your maven repository in the same way. If you just want to share logic inside the project between subprojects, you can check this sample: https://docs.gradle.org/current/samples/sample_convention_plugins.html
m
Thanks, this looks promising