-
Notifications
You must be signed in to change notification settings - Fork 568
Q: How to reuse target sourceSet for another target? (MPP) #2577
Comments
You could point their |
Well, it can be a solution probably. But it would make all android sources ( |
I had a similar problem in a project of mine. You could do one of two things. Have android and jvm share a source folder, then android can have another specific source folder and jvm can have another source folder. |
@Dominaezzz That should work. The whole difficulty for me is still the same - how to add sourceset for platform target. Now it's just "add shared between jvm and android targets sourceset instead of just jvm's sourceset". Can you please share |
Sharing a source set.
or Sharing a source directory.
Both of these should work but the first one might play nicer with the IDE. |
That worked (Groovy):
Thanks, @Dominaezzz ! |
I need to reuse
jvm
sourceSet forandroid
target.In 1.3.11 it worked:
In 1.3.20 it stopped working:
BTW i believe it should be by default: android target to use jvm sourceSet (and overrides) existing source if present.
I've tried to add
jvm
default source set toandroid
target but no luck:Actual impl not found for expected class.
Bug/feature? How can i do it?
The text was updated successfully, but these errors were encountered: