Skip to content

Conversation

@LexManos
Copy link
Member

@LexManos LexManos commented Jan 10, 2026

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, and log.
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.

newLine = false
}

dependencies {
Copy link
Contributor

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?

Copy link
Member Author

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 (*)

LexManos and others added 2 commits January 11, 2026 11:12
Co-authored-by: Paint_Ninja <PaintNinja@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants