luaj / luaj

Lightweight, fast, Java-centric Lua interpreter written for JME and JSE, with string, table, package, math, io, os, debug, coroutine & luajava libraries, JSR-223 bindings, all metatags, weak tables and unique direct lua-to-java-bytecode compiling.
http://luaj.sourceforge.net/
MIT License
919 stars 175 forks source link

Maven is not updated #37

Open SuSeu1414 opened 5 years ago

SuSeu1414 commented 5 years ago

This doesn't work

<dependency>
    <groupId>org.luaj</groupId>
    <artifactId>luaj-jse</artifactId>
    <version>3.0.2</version>
</dependency>

But this one does

<dependency>
    <groupId>org.luaj</groupId>
    <artifactId>luaj-jse</artifactId>
    <version>3.0.1</version>
</dependency>
lagagain commented 5 years ago

I guess because this repo is not total same with original (host on SourceForge), and this repo maintain can't contact the maintain of original. (There are an explanation on README)

But, this repo has released jar file (luaj-jme-3.0.2.jar and luaj-jse-3.0.2.jar) on release page. I think you can download the jar files to your maven project (directly use jar file).

Mikhael-Danilov commented 5 years ago

Maybe it worth to introduce new package?

binkley commented 4 years ago

Confirming that 3.0.1 is most recent version in Maven Central: https://search.maven.org/artifact/org.luaj/luaj-jse

After looking through README.md, I see the ownership issues. Does this prevent publishing to 3.0.2 to Maven Central? Since one may download 3.0.2 jar directly, it isn't clear to me how one is ok (downloading the jar), and the other isn't (downloading from Maven Central). I'm not up-to-date on how such matters work.

Perhaps it would be helpful in the GitHub README.md to include instructions and/or link for using local jars as dependencies.

This StackOverflow answer seems relevant: https://stackoverflow.com/a/22300875

Also, the download link(s) on README.md seem to point to 3.0.1. Does this mean 3.0.2 needs to be built from source to use it?

acanthite1855 commented 4 years ago

Hey. How about jitpack.io? It works the way, that it downloads the source from repo, builds it somewhere on their servers. It supports sources and javadoc. You can use the built lib by specifying dependency like this:

<dependency>
    <!-- user -->
    <groupId>com.github.luaj</groupId> 
    <!-- repo -->
    <artifactId>luaj</artifactId>
    <!-- tag or branch -->
    <version>3.0.2</version> 
</dependency>

Unfortunately it cannot build jar from 3.0.2 tag for some reason. It May be related to the build script/tests. I'm not really sure what's going on by just looking at the logs.

lorenzos commented 1 year ago

Using jitpack.io would be a nice solution, but the reason it doesn't work with 3.0.2 is that JitPack encounters an error while trying to build it, here's the log: https://jitpack.io/com/github/luaj/luaj/v3.0.2/build.log

Also, beware that the release tag in this repository is named v3.0.2, so you have to use it exactly as it is:

<dependency>
    <groupId>com.github.luaj</groupId> 
    <artifactId>luaj</artifactId>
    <version>v3.0.2</version> 
</dependency>
implementation 'com.github.luaj:luaj:v3.0.2'