Skip to content

[7.0] AccessTransformer usage has inconsistent API #1030

@cech12

Description

@cech12

Hey!

I am working on porting my mod builds to ForgeGradle 7 (7.0.0-rc.2) and I ran into the issue that I cannot get accesstransformers to run.

The example of you says, to use the following line in the build file:

accessTransformers = true

https://github.com/MinecraftForge/MDKExamples/blob/master/AccessTransformers/fg7/build.gradle#L25

In 7.0.0-beta.55 it worked fine, but in 7.0.0-rc.2 I get this error message from gradle:

There's an extension registered with name 'accessTransformers'. You should not reassign it via a property setter.

Some research took me to this change: 42d0d8f#diff-c8d5d4dcbd588ea28bbe886ca5c8742748131908a752249d02b18658acfdc217L36-L41
You removed the setter of the accesstransformers property.

I tried to remove the line, but then the access transformation is not done.
How should I activate the access transformer instead?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions