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
compatibility with sbt 1.4.7 and scala 2.12.13 #376
Conversation
@@ -17,13 +17,16 @@ libraryDependencies ++= Seq( | |||
|
|||
TaskKey[Unit]("verify-classpath-xml") := { | |||
val dir = baseDirectory.value | |||
val repo = "/.cache/coursier/v1/https/repo1.maven.org/maven2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this work on Macs?
my coursier cache lives in ~/Library/Caches/Coursier/v1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only really relevant while building and testing the plug-in prior to its release. of course if you are doing just that it will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yah I figured it might be an issue because im on a Mac M1 and wanted to help diagnose the failing test
can you provide some guidance on how to reproduce the failed test?
|
It is actually the integration test that is failing. You have to run |
thanks. I see it now
|
I have added the path mapping for macOS, so you should be left with less issues (assuming the path is correct :) |
🌞 |
The only remaining failure appears to be due to a relative/absolute path difference expected
actual
also the lib and path attributes are reversed... I'm not sure if its checking for exact string matches or just that they're semantically equivalent. |
whatever is creating the Lib (EclipseClasspathEntry) objects is passing an absolute path into the constructor.
console:
I can't tell where those EclipseClasspathEntry objects are being created. edit: I see they're being created here: https://github.com/sbt/sbteclipse/blob/master/src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala |
is this PR delaying the generation of the 6.0 release? |
@normana400 this project isn't really maintained anymore (last activity was over 2 years ago). |
I am pretty sure I know were the problem is and just need to find some time to finally make sbteclipse work with latest sbt 1.4+. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I merged a bunch of scala-steward changes, so you don't need a lot of the changes to the project setup files like build.sbt
anymore
It might be nice to break this PR into a few like refactoring out the method to get the artifact home directory. Upgrading first to sbt 1.3. And then upgrading to sbt 1.4
@@ -8,15 +8,15 @@ Installation and Basic Usage | |||
|
|||
- Open your plugin definition file (or create one if doesn't exist). You can use either: | |||
|
|||
- the global file (for version 0.13 and up) at *~/.sbt/SBT_VERSION/plugins/plugins.sbt* | |||
- the global file (for version 1.0 and up) at *~/.sbt/SBT_VERSION/plugins/plugins.sbt* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this statement wrong?
@@ -1,6 +1,6 @@ | |||
import _root_.bintray.BintrayPlugin.bintrayPublishSettings | |||
|
|||
val baseVersion = "6.0.0-SNAPSHOT" | |||
val baseVersion = "6.0.0-M1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not change this. I think it's handled by the release process and it will throw things off if it's manually changed
@benmccann I can work on this soon, it's not difficult to fix. btw, are you still using Play? |
Hey, I'm not really using Play anymore. I got a new computer a year or two ago and I just started trying to get an old personal project that's using Play running on it and happened to notice there was a bit of a backlog here. I don't really have time to devote to this project, but figured I'd merge all the PRs since they were just easy library upgrades. I just setup a CI to make it easier to merge PRs without worrying about breaking things. A few of them seemed to work on my computer, but not on the CI, so I had to revert a couple of the upgrades I just merged. I'd recommend rebasing this PR against master so that it runs against the CI before merging anything. |
Closing in favor of #402 |
As suggested in #375 here is a PR for my changes.