This message was deleted.
# community-support
s
This message was deleted.
z
the error I get is:
Copy code
Cannot convert the provided notation to an object of type ConfigurablePublishArtifact: file collection.
The following types/formats are supported:
  - Instances of ConfigurablePublishArtifact.
  - Instances of PublishArtifact.
  - Instances of AbstractArchiveTask, for example jar.
  - Instances of Provider<RegularFile>.
  - Instances of Provider<Directory>.
  - Instances of Provider<File>.
  - Instances of RegularFile.
  - Instances of Directory.
  - Instances of File.
  - Maps with 'file' key
Should I
Sync
this
FileCollection
into a
Provider<Directory>
?
or should I zip these files into a
sources.jar
and then unzip them on the consumer side?
t
I'd share the root directory/directories containing the source files. That's what I do for Java files to be used with GWT, but the consumer needs the files to be in their expected package tree structure so sharing directories works better for my usecase anyway.
👍 1
v
You can also look how the jacoco report aggregation plugin does it, or actually apply that one for that use-case, as it provides the sources as consumable configuration.
👍 1