-
-
Notifications
You must be signed in to change notification settings - Fork 23
Split ASMAPI into a seperate artifact #73
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
base: master
Are you sure you want to change the base?
Conversation
| newLine = false | ||
| } | ||
|
|
||
| dependencies { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the coremods-api should be added here as an api to avoid accidental breaking changes from forgetting to manually add it when updating?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not possible to do, it creates a circular dependency. If @Jonathing has an idea on how to make gradle happy, I dont know of one.
* What went wrong:
Circular dependency between the following tasks:
:classes
\--- :compileJava
\--- :coremods-api:jar
+--- :coremods-api:classes
| \--- :coremods-api:compileJava
| +--- :jar
| | +--- :classes (*)
| | \--- :compileJava (*)
| \--- :coremods-api:jar (*)
\--- :coremods-api:compileJava (*)
Co-authored-by: Paint_Ninja <PaintNinja@users.noreply.github.com>
505ccab to
e22e38b
Compare
Quick pass to split ASMAPI into its own jar for use in Forge when not using JavaScript coremods.
There are 3 methods that call into the JavaScript coremoding manager,
loadFile,loadData, andlog.These methods are expected to throw exceptions if invoked from a non-JS transformer. So it should be fine.
For old versions that ship the JS engine, they will now need to ship the ASMAPI artifact as well.