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

GWT compiler not working #7

Open
JonBunator opened this issue Mar 28, 2021 · 2 comments
Open

GWT compiler not working #7

JonBunator opened this issue Mar 28, 2021 · 2 comments

Comments

@JonBunator
Copy link

I am trying to compile TNoodle into JavaScript code. But I can't get it to work. I always get this error:

> Task :tnoodlejs-compiler:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':tnoodlejs-compiler:compileJava'.
> Could not resolve all files for configuration ':tnoodlejs-compiler:compileClasspath'.
   > Could not find org.worldcubeassociation.tnoodle:tnoodle-scrambles:0.15.0.
     Searched in the following locations:
       - file:/C:/Users/JonBunator/.m2/repository/org/worldcubeassociation/tnoodle/tnoodle-scrambles/0.15.0/tnoodle-scrambles-0.15.0.pom
       - https://repo.maven.apache.org/maven2/org/worldcubeassociation/tnoodle/tnoodle-scrambles/0.15.0/tnoodle-scrambles-0.15.0.pom
       - https://dl.bintray.com/thewca/tnoodle-lib/org/worldcubeassociation/tnoodle/tnoodle-scrambles/0.15.0/tnoodle-scrambles-0.15.0.pom
     Required by:
         project :tnoodlejs-compiler
   > Could not find org.worldcubeassociation.tnoodle:tnoodle-utils:0.15.0.
     Searched in the following locations:
       - file:/C:/Users/JonBunator/.m2/repository/org/worldcubeassociation/tnoodle/tnoodle-utils/0.15.0/tnoodle-utils-0.15.0.pom
       - https://repo.maven.apache.org/maven2/org/worldcubeassociation/tnoodle/tnoodle-utils/0.15.0/tnoodle-utils-0.15.0.pom
       - https://dl.bintray.com/thewca/tnoodle-lib/org/worldcubeassociation/tnoodle/tnoodle-utils/0.15.0/tnoodle-utils-0.15.0.pom
     Required by:
         project :tnoodlejs-compiler

It's probably because bintray doesn't host the right dependencies anymore.
grafik

I dont't know if this repository is still being maintained. But any help is much appreciated.

@gregorbg
Copy link
Member

Hey there! The repository itself is being maintained, but unfortunately tnoodle-js via GWT is not. The main problem is that GWT itself is not actively maintained (last release May 13, 2020) and struggling with Java 8+

Currently there are long-term(!!) plans to revamp the codebase of tnoodle-lib entirely, including JVM and JS compilation targets. This will be done by the end of this year at the earliest.

I'd recommend looking for alternative scramblers in JS, for example https://github.com/cubing/jsss. If you have a good reason why you specifically need TNoodle in your web project, reply to this issue and state your reason. Then I can consider explaining to you how to hack your way through GWT 😉

@JonBunator
Copy link
Author

Thanks for the quick response. That's what I suspected. I will take a look at the scrambler you mentioned. Should be sufficient for now. Thank you! It would be nice if you add a comment to the readme stating the problem. That way other people know whats up and don't get frustrated :)

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

2 participants