architectury-plugin icon indicating copy to clipboard operation
architectury-plugin copied to clipboard

Test source module does not include transformer agent/runtime libraries

Open robotgryphon opened this issue 2 years ago • 0 comments

As title states; setting up a test source set (in my case for game tests) does not include the agent and runtime libraries required for launching the game.

Workaround: Adding the following to the dependencies block is a temporary workaround; run the ideaSyncTask after.

dependencies {
    testRuntimeOnly("dev.architectury", "architectury-transformer", "5.2.72", classifier = "agent")
    testRuntimeOnly("dev.architectury", "architectury-transformer", "5.2.72", classifier = "runtime")
}

robotgryphon avatar Feb 26 '23 11:02 robotgryphon