Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbt-freestyle cross sbt versioned #28

Merged
merged 2 commits into from
Oct 6, 2017

Conversation

juanpedromoreno
Copy link
Collaborator

Plugin is now cross-versioned to sbt 1.0.1 and 0.13.16.

Copy link
Contributor

@fedefernandez fedefernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@juanpedromoreno juanpedromoreno merged commit 94a8e94 into master Oct 6, 2017
@juanpedromoreno juanpedromoreno deleted the feature/sbt-freestyle-cross-sbt-versioned branch October 6, 2017 10:30
val sourceFile = (baseDirectory in LocalRootProject).value / "README.md"
val targetFile = crossTarget.value / s"${name.value}-javadoc.jar"

IO.copy(Seq(sourceFile -> targetFile), CopyOptions().withOverwrite(true)).toSeq

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

@juanpedromoreno juanpedromoreno Oct 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CopyOptions is also available in any other location?

Copy link

@dwijnand dwijnand Oct 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No CopyOptions is sbt 1 only. What I meant is you could use

IO.copy(Seq(sourceFile -> targetFile), overwrite = true).toSeq

in both sbt 0.13 and sbt 1 and avoid the extra source code files/directories.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it.

However, now I recall why I had to split them up into different pieces of code. IO.copy method signature are not compatible among sbt 0.13 and 1.x.

Am I missing something?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Sorry for the noise.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, thanks anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants