Skip to content
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

gradle-mirah-plugin is incompatible with the android gradle plugin #5

Open
felixvf opened this issue Nov 17, 2016 · 2 comments
Open

Comments

@felixvf
Copy link
Collaborator

felixvf commented Nov 17, 2016

Consider this build.gradle

buildscript {
	repositories {
		jcenter()
	}
	dependencies {
		classpath 'com.android.tools.build:gradle:2.2.0'
	}
}

plugins {
  id 'org.mirah.lang' version '0.9'
}

apply plugin: 'com.android.application'

android {
	compileSdkVersion 22
	buildToolsVersion "22.0.1"
}

It should run, but it does not. It fails with

com.android.build.gradle.internal.BadPluginException: The 'java' plugin has been applied, but it is not compatible with the Android plugins.

See an example project in https://github.com/felixvf/mirah-android-example-hello/commits/591c31d3ed478beaa72efd092c6e825cee1c5df8 , which fails just due to adding

plugins {
  id 'org.mirag.lang' version '0.9'
}

and succeeds otherwise.

The android gradle plugin may be cumbersome, but because it is so important (else Mirah developers cannot be Android developers), we may need fix or work around this problem.

@ysb33r
Copy link
Collaborator

ysb33r commented Nov 17, 2016

We'll need to work together on this one I think. Maybe create we need to have a org.mirah.android plugin id to inititate slightly different behaviour.

@felixvf
Copy link
Collaborator Author

felixvf commented Nov 18, 2016

This is nearly fixed. There is now a Gradle Android Mirah Plugin: https://github.com/felixvf/gradle-android-mirah-plugin/commits/m2.2.0. It builds on your gradle-mirah-plugin, once #6 is merged and a new version of the gradle-mirah-plugin including that feature is released.

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

No branches or pull requests

2 participants