Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

(backwards incompatible) Model subst map in Gradle extension #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

delego-wlritchi
Copy link
Contributor

It's much cleaner to put these substitutions in the buildscript than to put them in a file to be loaded from buildSrc.

Replaces the modelSubstitute option (resource file name) with a modelSubstitutions option (map of fromClass name to toClass name).

This PR probably shouldn't be accepted until someone (me, if I get time) adds some documentation updates. It also should probably be scheduled for the next major version bump, seeing as how it's backwards-incompatible.

It's much cleaner to put these substitutions in the buildscript than to
put them in a file to be loaded from buildSrc.
@gigaSproule
Copy link
Owner

Is there a matching issue for this?

@delego-wlritchi
Copy link
Contributor Author

None filed yet; just figured it was better to share the changes I'd made. If you'd prefer a new issue to keep discussion about the problem separate from discussion about this particular proposed solution, feel free to create one.

@gigaSproule
Copy link
Owner

Just making sure I've not missed something

@gigaSproule
Copy link
Owner

gigaSproule commented Feb 17, 2019

It would probably make sense to make the file map to the new map, so it can at least, if we choose, to deprecate this in a future version. Would be a bit jarring for people who use a file to all of a sudden not be able to use the plugin without changes.

Also, sorry for the late reply. I don't have much spare time anymore.

@gigaSproule gigaSproule force-pushed the master branch 3 times, most recently from 765f1d7 to 8170522 Compare July 28, 2020 22:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants