Slackbot
08/31/2023, 8:26 AMVampire
08/31/2023, 8:47 AMmelix
08/31/2023, 8:53 AMjava.languageVersion property which is finalized. All my plugin does is setting a convention, and it blows up when setting the convention πChris Lee
08/31/2023, 8:56 AMmelix
08/31/2023, 8:56 AMVampire
08/31/2023, 9:15 AMmelix
08/31/2023, 9:35 AMVampire
08/31/2023, 9:38 AMmelix
08/31/2023, 9:39 AMpluginManager.withPlugin("java") { ... get the java extension and set a dummy provider ... } as the first thing, my provider is ignored.Vampire
08/31/2023, 9:40 AMmelix
08/31/2023, 9:40 AMVampire
08/31/2023, 9:42 AMAbstractProperty#finalizeNow and have a condition on displayName to break for the right one?melix
08/31/2023, 9:42 AMmelix
08/31/2023, 9:43 AMmelix
08/31/2023, 9:43 AMmelix
08/31/2023, 9:44 AMlanguageVersion property is finalized, but the thread gives absolutely no context. yay.melix
08/31/2023, 9:46 AMproject.getPluginManager().apply(JavaBasePlugin.class);
Vampire
08/31/2023, 9:46 AMfinalizeValueOnRead is not the right place. It just schedules for finalization at the next read. The question is, who reads and thus finalizes it. That's why I suggested finalizeNow as hook pointmelix
08/31/2023, 9:47 AMfinalizeNowVampire
08/31/2023, 9:47 AMcool, this is the line which triggers finalization:
> project.getPluginManager().apply(JavaBasePlugin.class);π€¨
melix
08/31/2023, 9:47 AMmelix
08/31/2023, 9:48 AMmelix
08/31/2023, 9:50 AMconf.attributes(attrs -> compileClasspathAttrs.keySet().forEach(key -> {
Object attribute = compileClasspathAttrs.getAttribute(key);
//noinspection unchecked
attrs.attribute((Attribute<Object>)key, attribute);
attrs.attribute(Usage.USAGE_ATTRIBUTE, project.getObjects().named(Usage.class, JavadocAggregationUtils.AGGREGATED_JAVADOC_PARTICIPANT_DEPS));
}));
but the error message is totally unhelpful, it relates to something completely differentmelix
08/31/2023, 9:50 AMmelix
08/31/2023, 9:51 AMVampire
08/31/2023, 9:52 AMmelix
08/31/2023, 9:52 AMmelix
08/31/2023, 9:53 AMmelix
08/31/2023, 9:54 AMVampire
08/31/2023, 9:54 AMVampire
08/31/2023, 9:54 AMmelix
08/31/2023, 9:54 AM