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

Removes Sbt-org-policies Dependency #465

Merged
merged 9 commits into from
Apr 9, 2020

Conversation

juanpedromoreno
Copy link
Member

The Github actions workflows are now providing what the sbt plugin was doing until now.

It also:

  • Removes the binary dependency with itself. It has been necessary to add the transitive binary dependencies of sbt-microsites at the plugins.sbt level. We have now some SBT duplicated code, but hopefully, @scala-steward will take care of the dependencies.
  • Migrates some files from the sbt-org-policies plugin: Exceptions, Config.scala, GitHubOps.scala, FileReader.scala, FileWriter.scala, IOUtils.scala, and YamlFormats.scala .
  • In the case of the GitHubOps algebra, apart from copying-paste, I've simplified it removing all the EitherT types, apart from upgrading to the latest version of github4s. Original version 🔗 .

Note: the microsite step will fail once this is merged in master, but that's expected (the solution is still in progress).

@juanpedromoreno juanpedromoreno added the breaking-change A breaking change that needs to be treated with consideration label Apr 9, 2020
Copy link
Contributor

@BenFradet BenFradet left a comment

Choose a reason for hiding this comment

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

Looks good overall, however we're missing a few apache headers 👍

src/main/scala/microsites/Exceptions.scala Show resolved Hide resolved
src/main/scala/microsites/Exceptions.scala Outdated Show resolved Hide resolved
src/main/scala/microsites/MicrositeKeys.scala Outdated Show resolved Hide resolved
src/main/scala/microsites/MicrositeKeys.scala Outdated Show resolved Hide resolved
src/main/scala/microsites/github/Config.scala Show resolved Hide resolved
build.sbt Outdated Show resolved Hide resolved
@BenFradet
Copy link
Contributor

Also, I'm thinking there might be an existing library to perform all this file I/O?

@juanpedromoreno
Copy link
Member Author

@BenFradet

Also, I'm thinking there might be an existing library to perform all this file I/O?

Yeah, that would make sense, and I'm sure it exists something. However, I didn't want to make this PR too complicated needed to migrate the existing code in sbt-microsites to the potential new library.

@BenFradet
Copy link
Contributor

yes definitely, it was more a general remark than one specific to this PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change A breaking change that needs to be treated with consideration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants