sbt-idea icon indicating copy to clipboard operation
sbt-idea copied to clipboard

Replace library dependencies with module dependencies

Open riedelcastro opened this issue 13 years ago • 8 comments
trafficstars

As discussed, this is my clone with optional "replace libraries by modules" functionality. The option to pass is "replace-libs" but of course feel free to change this.

This is my first pull request ever, so I am sure I am doing something wrong. In particular, I changed the README to reflect the changes I made, I hope this doesn't cause trouble. Likewise, there is very little extra code, but it could probably still be organized and placed better.

riedelcastro avatar Aug 13 '12 17:08 riedelcastro

Finally I got some time to look into this, sorry...

Could you please make a new pull request (or change the commits in this one, if that's possible, I don't know) which would only include commits with changes for this feature, I.e. without any formatting and project definition changes irrelevant to this feature? It would be easier to review and merge.

Also make sure that scripted tests still pass after the changes (or even better, add some test for this feature).

mpeltonen avatar Sep 06 '12 16:09 mpeltonen

Ah sure. Actually I tried to revert all formatting and irrelevant edits and thought this worked out. Not sure what happened, but I'll just try again. On Sep 6, 2012 5:57 PM, "Mikko Peltonen" [email protected] wrote:

Finally I got some time to look into this, sorry...

Could you please make a new pull request (or change the commits in this one, if that's possible, I don't know) which would only include commits with changes for this feature, I.e. without any formatting and project definition changes irrelevant to this feature? It would be easier to review and merge.

Also make sure that scripted tests still pass after the changes (or even better, add some test for this feature).

— Reply to this email directly or view it on GitHubhttps://github.com/mpeltonen/sbt-idea/pull/169#issuecomment-8339488.

riedelcastro avatar Sep 06 '12 17:09 riedelcastro

Hmm, when I look at the diff (https://github.com/mpeltonen/sbt-idea/pull/169/files) it looks like the minimal, "no-formatting changes" version with only relevant changes. Or do do you mean the README file? In that case it would probably best to just take it out of the pull (if possible), as I intended the README to describe the changes made in this clone.

Actually I didn't know about the scripted tests, let me look into this.

riedelcastro avatar Sep 07 '12 00:09 riedelcastro

Yeah, /files seems to be the end result of applying all the commits, but I'd prefer commit(s) with just relevant stuff.

mpeltonen avatar Sep 08 '12 09:09 mpeltonen

@riedelcastro you can squash all the commits so, the result commit will contain only the end result of applying all the commits

jozic avatar Sep 09 '12 04:09 jozic

Thanks for the useful pointer! I hope I get around to do this soon.

riedelcastro avatar Sep 10 '12 10:09 riedelcastro

I am sure I am missing something very obvious, but how do I run the scripted tests?

riedelcastro avatar Sep 13 '12 16:09 riedelcastro

just type "scripted" in sbt console see more here http://eed3si9n.com/testing-sbt-plugins

jozic avatar Sep 13 '12 20:09 jozic