scala-ide/scala-refactoring

published jars

fommil opened this issue · 15 comments

ensime seems to depend on unmanaged versions of this project, I presume because you are not publishing on maven.org.

Do you have any plans to release official jars?

Also, I've noticed that you're not yet on 2.10.4 in master.

Actually, they are published to Sonatype, snapshots every night:
https://oss.sonatype.org/content/repositories/snapshots/org/scala-refactoring/org.scala-refactoring.library_2.10/0.6.2-SNAPSHOT/
But you're right that I should do a new release, we recenly merged a lot of new refactorings that would deserve a proper release against 2.10.4 and 2.11.0.

excellent! Supporting the 2.9 branch is also important for ensime, so please include it in the release.

I fear I'll have to disappoint you regarding 2.9 support, the scala compiler is changing so much that I had to drop support for 2.9 some time ago.

ok, I thought it was still supported because your master still has a 2.9 build script.

If you could please dist a release for 2.9 with the most recent changes that worked that would be great... ensime is bundling a binary snapshot and it would be good to remove that file from their repo.

To be more clear on what I mean:

http://search.maven.org/#artifactdetails%7Corg.scala-refactoring%7Corg.scala-refactoring.library%7C0.6.1%7Ceclipse-plugin

seems to differ significantly from the snapshot:

https://oss.sonatype.org/content/repositories/snapshots/org/scala-refactoring/org.scala-refactoring/

and the snapshot for 0.6.1 is no longer available because the parent pom has been purged.

Therefore it's not really possible to depend on the 2.9 branch from way back when.

actually it looks like ensime were depending on 0.5.0-SNAPSHOT, which never made it to maven central. https://github.com/ensime/ensime-src/tree/master/lib_2.9.2

When I tried to compile with the 0.6.1 release, it failed with the following (which works with the 0.6.2-SNAPSHOT for scala 2.10, and presumably 0.5.0 for scala 2.9.2)

[error] /home/fommil/.emacs.d/ensime/src/main/scala/org/ensime/server/Refactoring.scala:67: class file needed by CompilerAccess is missing.
[error] reference type AbstractFile of object scala.tools.nsc.io.package refers to nonexisting symbol.
[error]     refactoring.compilationUnitOfFile(af) match {
[error]                 ^

Hm, I see. I didn't know that anybody was still using scala-refactoring from 2.9. I've pushed a snapshot for 2.9.3, could you check if this works for you?

https://oss.sonatype.org/content/repositories/snapshots/org/scala-refactoring/org.scala-refactoring.library_2.9.3/

cool! I'll try that tonight. I stay right up to date in my OSS work with the latest scala releases, but my experience of big industry is that they are still stuck on old versions of java 6 and are riddled with internal dependency problems regarding scala 2.9... so I have a lot of sympathy with people who want 2.9 support.

Just to be really awkward, can you please push a 2.9.2 build? :-) We're stuck to that version at my work and ensime is also using it. Unfortunately 2.9.2 -> 2.9.3 is actually quite a big update that introduces new libraries and broke binary compatibility :-(

Ah yes, I remember... I've published a version for 2.9.2 as well!

fantastic, that seems to work! :-D looking forward to some permanent releases on maven.org so that these don't disappear on us.

still just snapshots on maven central. Any chance of permanently staged releases?

Sorry about that, I thought I had published it, but something must have gone wrong... but now it's here: http://search.maven.org/#search|ga|1|org.scala-refactoring.library

awesome! I'll update ensime