Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace submodule by jar inclusion to reference editorconfig-java #32

Open
mickaelistria opened this issue May 25, 2016 · 5 comments
Open

Comments

@mickaelistria
Copy link

Currently, the code copies the source of editorconfig-java to build. This is not safe because remote code can change and break the build. It seems better to consume directly the jar of a specific version using Maven.

@ncjones
Copy link
Owner

ncjones commented May 25, 2016

I agree in principle but last time I checked the editorconfig Java project will require adding OSGi manifest. The submodule is a hack but it is pinned to a commit id so it is not unsafe.

@mickaelistria
Copy link
Author

MANIFEST.MF isn't necessarily. If we have it has a jar in a Maven repository, it's only a matter of:

  • Using maven-dependency-plugin in pom to fetch it at build-time
  • Adding it to the build.properties to have it included in plugin jar
  • Adding it to a Bundle-Classpath directive in editorconfig-eclipse to have it visible at runtime

@ncjones
Copy link
Owner

ncjones commented May 25, 2016

OK that's great. I think the jar wasn't in maven central at the time I started this project.
On 26 May 2016 2:06 a.m., Mickael Istria [email protected] wrote:MANIFEST.MF isn't necessarily. If we have it has a jar in a Maven repository, it's only a matter of:

Using maven-dependency-plugin in pom to fetch it at build-timeAdding it to the build.properties to have it included in plugin jarAdding it to a Bundle-Classpath directive in editorconfig-eclipse to have it visible at runtime

—You are receiving this because you commented.Reply to this email directly or view it on GitHub

@mickaelistria
Copy link
Author

OK that's great. I think the jar wasn't in maven central at the time I started this project.

Apparently, it's still not published: editorconfig/editorconfig-core-java#6

@ppalaga
Copy link

ppalaga commented Dec 22, 2017

@ncjones you might be interested in looking at ec4j [1] (a new .editorconfig Java parser) that was just released to central [2]

[1] https://github.com/ec4j/ec4j
[2] http://central.maven.org/maven2/org/ec4j/core/ec4j-core/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants