Closed yahavi closed 5 months ago
I'll give this a spin today @yahavi
@yahavi This works fine and I have a change locally to enable this in our plugin. Please commit and put out another version of the artifactory-gradle-plugin asap.
project.getTasks().getByName("artifactoryPublish", t -> {
((ArtifactoryTask) t).setModuleType("CPP");
});
/* Comment out the above, and enable this and it doesn't seem to work, the defaults action is empty when we call it. Wrapping it into a project.afterEvaluate() doesn't fix it either.
project.getExtensions().getByType(ArtifactoryPluginConvention.class).publish(
p -> p.defaults(
f -> f.setModuleType("CPP")));
*/
};
However, this does seem to work for us, we'll configure the artifactoryPublish task and move on from that.
@yahavi Any update on this?
Allow setting the module type manually:
And within the project scope: