Slackbot
01/17/2024, 4:03 PMmelix
01/17/2024, 4:03 PMAdam
01/17/2024, 8:06 PMcopy = p.copy();
Is p
a Project instance?melix
01/17/2024, 8:56 PMProjectDependency
melix
01/17/2024, 8:57 PMprojects.micronautServiceSpec
Adam
01/17/2024, 9:41 PMSome types, such as Publication or Dependency are not serializable, but could be. We may, if necessary, allow these to be used as task inputs directly.which is not so helpful...
Anze Sodja
01/17/2024, 10:54 PMval specGroup = serviceApiExtension.getSpecGroup()
val specName = serviceApiExtension.getSpecName()
openApiExtension.getSpecificationFile().fileProvider(
specConsumer.getIncoming()
.getArtifacts()
.getArtifactFiles()
.getElements()
.map(fileSystemLocations -> {
var specsDir = fileSystemLocations.iterator().next().getAsFile();
return new File(specsDir, specGroup.get() + "/" + specName.get() + ".yaml");
}));
?melix
01/18/2024, 9:08 AMmelix
01/18/2024, 9:08 AMmelix
01/18/2024, 9:11 AMCould not load the value of field `provider` of `org.gradle.configurationcache.serialization.codecs.ProviderBackedFileCollectionSpec` bean found in field `__specs__` of task `:micronaut-service-spec:preprocessSpecs` of type `xxxxxxx.specs.tasks.SpecPreprocessorTask`.
> java.lang.reflect.InvocationTargetException (no error message)
melix
01/18/2024, 10:08 AMprivate static Provider<List<RegularFile>> lazySpecsProvider(OciSpecsExtension extension) {
var specNames = extension.getSpecNames();
var specsDir = extension.getSpecsDir();
return specsDir.zip(specNames, (dir, names) -> names.stream()
.map(dir::file)
.toList()
);
}
where there's nothing magic in there. specNames
is a SetProperty<String>
and specsDir
is a DirectoryProperty
melix
01/18/2024, 10:09 AMCaused by: java.io.InvalidObjectException: null array
at java.base/java.util.CollSer.readResolve(ImmutableCollections.java:1491)
... 184 more
melix
01/18/2024, 10:09 AMAdam
01/19/2024, 8:29 AM