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

make code more Scala 2.13 friendly #172

Merged
merged 13 commits into from
Nov 17, 2019
Merged

Conversation

pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Jun 24, 2019

Some dependencies are not yet ready with scala 2.13 jars but these code changes get a lot of the way towards supporting scala 2.13.

Relates to #171

@pjfanning
Copy link
Contributor Author

@timcharper I think the jdk7 build fails in travis because sbt 1.2 doesn't appear to support jdk7 - is it necessary to continue jdk7 support?

@dalmat36
Copy link

dalmat36 commented Jul 9, 2019

@pjfanning so you are able to get the 2.7.x version of Play JSON to work fine with op-rabbit without any changes?

When I add it as a dependency with the current 2.1.0 version it seems to cause my client to fail connecting.

@pjfanning
Copy link
Contributor Author

@dalmat36 I am using https://github.com/pjfanning/op-rabbit in production. One difference is that my op-rabbit jars are built with play-json 2.7.4.

@dalmat36
Copy link

dalmat36 commented Jul 9, 2019

Thanks @pjfanning I found my issue... it was unrelated to op-rabbit. play-json 2.7.4 works fine with the current version.

@danslapman
Copy link
Contributor

Any news on this?

@pjfanning
Copy link
Contributor Author

@danslapman I published a 2.13 compatible jar - https://github.com/pjfanning/op-rabbit#installation (I don't have commit/publish rights in this project)

@timcharper
Copy link
Member

jdk7 is not necessary. Let's remove it from the config and get Travis green and we can merge / publish a new artifact

@pjfanning
Copy link
Contributor Author

@timcharper com.spingo#scoped-fixtures_2.13;2.0.0 needs to be published if we want to support a scala 2.13 build -- SpinGo/scoped-fixtures#2

@timcharper
Copy link
Member

Can you please rebase this against the latest master? And remove CI changes?

@pjfanning
Copy link
Contributor Author

@timcharper looks like circe 0.12 does not support scala 2.11 and older versions of circe do not support scala 2.13.

@timcharper
Copy link
Member

@pjfanning I think it's probably ok to just drop 2.11 support right now. 2.12 has been out for a really long time and people have had ample time to upgrade.


projectRoot(appName)
}
new AirbrakeNotifier().notify(notice.newNotice())
} catch {
case e: Throwable => log.error("Unable to send airbrake notification for error", e)
}

private def asJavaMap(map: Map[String, String]): java.util.Map[String, Object] = {
Copy link
Member

Choose a reason for hiding this comment

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

Why is this method needed? Isn't it sufficient just to call "Map().asJava" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

asJava was returning Map<String, String> when the Airbrake APIs require Map<String, Object> so I thought it was better to create a function to produce maps of the required type

@timcharper timcharper merged commit ff9f8a2 into SpinGo:master Nov 17, 2019
@timcharper
Copy link
Member

I've published scope-fixtures 2.0.0 for Scala 2.13

@pjfanning pjfanning deleted the scala-2.13 branch November 17, 2019 23:14
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.

4 participants