gradle-retrolambda icon indicating copy to clipboard operation
gradle-retrolambda copied to clipboard

Plugin id 'com.android.application' not found in no-android projects in 3.2.3

Open WeAthFoLD opened this issue 10 years ago • 2 comments
trafficstars

I'm trying to use RetroLambda with my Minecraft mod. (here), when using version 3.1.0 everything is fine. But when I bumped the version to 3.2.3 I get this error:

A problem occured evaluating root project `AcademyCraft`.
> Plugin with id 'com.andoid.application' not found.

Also, is default methods supported in 3.1.0? I get runtime error using default methods with JRE8 and had to change some interfaces to abstract class.

WeAthFoLD avatar Oct 26 '15 04:10 WeAthFoLD

I'll look into it, plain java modules should be supported, have you compared what you are doing to the sample java module? Default methods are supported but they are not enabled by default because they aren't compatible with incremental compilation. You just have to do

retrolambda {
    defaultMethods true
}

evant avatar Oct 31 '15 18:10 evant

Well, building MC(actually, MinecraftForge) mods is really different from building plain java projects. We typically use ForgeGradle to assist building. It does a bunch of additional stuffs such as build-time obfuscation, so I can't be really sure which part is breaking the build. I don't think we used more customizations other than that.

Also I think it should be a build-time error if default methods are present but the settings are not enabled.

WeAthFoLD avatar Nov 01 '15 15:11 WeAthFoLD