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

migrate to sbt 1.0.2 #77

Merged
merged 2 commits into from
Oct 28, 2017
Merged

migrate to sbt 1.0.2 #77

merged 2 commits into from
Oct 28, 2017

Conversation

larsrh
Copy link
Contributor

@larsrh larsrh commented Oct 25, 2017

Gets rid of this funny "compile-time" hack because sbt 1.0.x complains about something.

I have it on good notice that "provided" should be Good Enough™.

@codecov-io
Copy link

codecov-io commented Oct 25, 2017

Codecov Report

Merging #77 into master will increase coverage by 0.27%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
+ Coverage   84.63%   84.91%   +0.27%     
==========================================
  Files          18       18              
  Lines         358      358              
  Branches       21       21              
==========================================
+ Hits          303      304       +1     
+ Misses         55       54       -1

build.sbt Outdated
logBuffered in Test := false,

headers := Map(

Choose a reason for hiding this comment

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

Where did these go on the upgraded versions of sbt-header?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is auto-detected from other settings now.

@dwijnand
Copy link

I think provided will keep it in pom.xml while compile-time won't. I think.

@alexandru
Copy link
Member

alexandru commented Oct 27, 2017

@dwijnand isn't compile-time the default, aka the strongest dependency possible?

AFAIK when you want to exclude something from the pom.xml, you have to do a pomPostProcess — not sure how well it works in SBT 1.x

Here's what I did for scoverage:

  pomPostProcess := { (node: xml.Node) =>
    new RuleTransformer(new RewriteRule {
      override def transform(node: xml.Node): Seq[xml.Node] = node match {
        case e: Elem
          if e.label == "dependency" && e.child.exists(child => child.label == "groupId" && child.text == "org.scoverage") => Nil
        case _ => Seq(node)
      }
    }).transform(node).head
},

provided definitely keeps the dependency in the pom.xml file

@dwijnand
Copy link

What do you mean by "the default, aka the strongest dependency possible"?

It's an ad-hoc configuration created in this build (and cats).

It's an alternative to doing pomPostProcess, with, I think, the added value that it also works for ivy.xml (if publishing ivy style).

@larsrh
Copy link
Contributor Author

larsrh commented Oct 28, 2017

It is true that macro-compat is still in the POM, but clients won't be pulling in the library, because it's in the provided scope. If this is a contentious issue, I can just change it back.

@ghost
Copy link

ghost commented Oct 28, 2017

If this is a contentious issue

Well, I think it was in cats - typelevel/cats#1638, sbt/sbt#2503

perhaps this would help typelevel/cats#1889 ?

@larsrh
Copy link
Contributor Author

larsrh commented Oct 28, 2017

I have reinstated the configuration now.

@djspiewak djspiewak merged commit 4f6b880 into typelevel:master Oct 28, 2017
@larsrh larsrh deleted the topic/sbt-1 branch October 28, 2017 18:05
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.

6 participants