This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Minimal Jar

1 reply
porfirio
Joined: 2009-03-25,
User offline. Last seen 42 years 45 weeks ago.

Hi!

I am liking Scala allot as a language, it generates clean bytecode with
minimal dependencies.

A class using operators and other great features only requires ScalaObject
for example.

I'm using scala with some Java API and my own API, so i dont need mos stuff
from the runtime.

Could be possible to create a lite-jar distribution with just classes needed
by the language features like closures and tuples etc

Because the runtime is huje and includes lots of api i dont want\need if a
minimal runtime package could be created i would love :)

Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: Minimal Jar
For Maven projects, there is indeed a plug-in that will let you keep only those classes from the Scala library that you actually need, so that you can lose the scala-library jar-file dependency:
http://lafros.com/maven/plugins/proguard
2009/4/7 porfirio <porfirio.ribeiro@sapo.pt>

Hi!

I am liking Scala allot as a language, it generates clean bytecode with
minimal dependencies.

A class using operators and other great features only requires ScalaObject
for example.

I'm using scala with some Java API and my own API, so i dont need mos stuff
from the runtime.

Could be possible to create a lite-jar distribution with just classes needed
by the language features like closures and tuples etc

Because the runtime is huje and includes lots of api i dont want\need if a
minimal runtime package could be created i would love :)
--
View this message in context: http://www.nabble.com/Minimal-Jar-tp22925861p22925861.html
Sent from the Scala mailing list archive at Nabble.com.




--
Rob, Lafros.com

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland