ceylon-herd icon indicating copy to clipboard operation
ceylon-herd copied to clipboard

Force source archives to be included with legacy JAR modules

Open hwellmann opened this issue 11 years ago • 4 comments

Currently, all of the legacy JAR modules in Herd lack a source attachment, so it's impossible to debug into a JAR module (Ceylon Eclipse doesn't even let you specify a source archive manually).

Herd should refuse any uploads without a matching source attachment.

hwellmann avatar Dec 03 '13 14:12 hwellmann

We don't enforce the presence of source files even for Ceylon archives, so we won't for Java either. But we should support having source files for Java archives yes.

(Ceylon Eclipse doesn't even let you specify a source archive manually).

That's an issue you should report on the IDE.

FroMage avatar Dec 03 '13 14:12 FroMage

Here's the IDE issue: https://github.com/ceylon/ceylon-ide-eclipse/issues/782

What's the rationale for not requiring source archives? It's just a nuisance when they're missing. This is a chance for Herd to be better than Maven Central :-)

hwellmann avatar Dec 03 '13 14:12 hwellmann

I guess the rationale is that if people depend on something that is closed-source but redistributable, we shouldn't make it impossible to use it. It's certainly a debate we can have.

FroMage avatar Dec 03 '13 14:12 FroMage

By the way, if you use Java modules from Maven (through the aether repository), you'll have the sources automatically downloaded and attached to the module. It seems to me that as soon as sources are downloaded automatically along with the binary archive, we don't need to allow changing the source attachment manually. But for those that don't have sources in Maven or Herd, it would surely be useful

davidfestal avatar Dec 03 '13 16:12 davidfestal