- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Enforcing Scala version with Maven
Tue, 2009-06-09, 18:50
Folks,
Is there any way we can use Maven to enforce Scala versions such that libraries compiled with a certain version of Scala can only be used with the same version of Scala?
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
Is there any way we can use Maven to enforce Scala versions such that libraries compiled with a certain version of Scala can only be used with the same version of Scala?
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
Wed, 2009-06-10, 10:07
#2
Re: Enforcing Scala version with Maven
Josh,
The parameter will *not* make the build fail but only log with a leading "error" instead of a leading "warning". The Mojo should additionally throw an Exception. I did this locally and it worked. If you give me access to the repo I will patch it.
Heiko
2009/6/10 Josh Suereth <joshua.suereth@gmail.com>
--
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: www.scalamodules.org
Lift, the simply functional web framework: liftweb.net
The parameter will *not* make the build fail but only log with a leading "error" instead of a leading "warning". The Mojo should additionally throw an Exception. I did this locally and it worked. If you give me access to the repo I will patch it.
Heiko
2009/6/10 Josh Suereth <joshua.suereth@gmail.com>
Yes, there is a configuration parameter to do this. Unfortunately, a lot of libraries have scala-library listed as a "provided" dependency, which does not get enforced.
I believe Heiko already sent the configuration parameter you can use.
Sent from my iPhone
On Jun 9, 2009, at 1:50 PM, David Pollak <feeder.of.the.bears@gmail.com> wrote:
Folks,
Is there any way we can use Maven to enforce Scala versions such that libraries compiled with a certain version of Scala can only be used with the same version of Scala?
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
--
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: www.scalamodules.org
Lift, the simply functional web framework: liftweb.net
Wed, 2009-06-10, 10:37
#3
Re: Enforcing Scala version with Maven
Np!
DavidB, want your ok before adding Heiko as a committee
Sent from my iPhone
On Jun 10, 2009, at 5:06 AM, Heiko Seeberger <heiko.seeberger@googlemail.com> wrote:
DavidB, want your ok before adding Heiko as a committee
Sent from my iPhone
On Jun 10, 2009, at 5:06 AM, Heiko Seeberger <heiko.seeberger@googlemail.com> wrote:
Josh,
The parameter will *not* make the build fail but only log with a leading "error" instead of a leading "warning". The Mojo should additionally throw an Exception. I did this locally and it worked. If you give me access to the repo I will patch it.
Heiko
2009/6/10 Josh Suereth < (joshua [dot] suereth [at] gmail [dot] com>Yes, there is a configuration parameter to do this. Unfortunately, a lot of libraries have scala-library listed as a "provided" dependency, which does not get enforced.
I believe Heiko already sent the configuration parameter you can use.
Sent from my iPhone
On Jun 9, 2009, at 1:50 PM, David Pollak < (feeder [dot] of [dot] the [dot] bears [at] gmail [dot] com> wrote:
Folks,
Is there any way we can use Maven to enforce Scala versions such that libraries compiled with a certain version of Scala can only be used with the same version of Scala?
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
--
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: www.scalamodules.org
Lift, the simply functional web framework: liftweb.net
I believe Heiko already sent the configuration parameter you can use.
Sent from my iPhone
On Jun 9, 2009, at 1:50 PM, David Pollak <feeder.of.the.bears@gmail.com> wrote: