Comments (4)
@mgladdish please feel free to submit a PR. Currently play-json is added for the Reads[EmailAddress] & Writes[EmailAddress] impls, re. https://github.com/hmrc/emailaddress/blob/master/src/main/scala/uk/gov/hmrc/emailaddress/EmailAddress.scala#L25
from emailaddress.
It's a provided dependency, so it shouldn't be required unless you want to use the formats.
Having said that, I suspect there may be an issue with the object initialisation that stops the library from working without play. I'll try and look at this later - do you experience that?
from emailaddress.
Yes, that’s the issue; I’ve already tried using it without the optional dependency. Even though the format member is lazy, the class loader still attempts to reference all, er, references.
from emailaddress.
I suspect that it's the type of the lazy val at https://github.com/hmrc/emailaddress/blob/master/src/main/scala/uk/gov/hmrc/emailaddress/EmailAddress.scala#L22 that's causing the classloader to try to load Play classes. I can't look at this now but will try to come up with a fix later today or tomorrow.
from emailaddress.
Related Issues (10)
- Email address with apostrophe is treated as invalid HOT 5
- Artifacts are not propagating to Maven Central HOT 3
- Support for Scala 2.12 HOT 1
- version 3.0.0 is not published on bintray HOT 1
- Artefacts for scala 2.12 are not available
- Scala 2.13 support HOT 1
- Distribution that includes test code
- ⚠ Artifacts download error on Bintray ⚠ HOT 3
- Dependency on Play HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emailaddress.