Incompatible with gradle plugin version 5.4.1
AdnanTheEntertainer opened this issue · 4 comments
Throwing error while compiling in gradle version 5.4.1
How to solve below error
The 'java' plugin has been applied, but it is not compatible with the Android plugins.
Thank you for the issue report! I want more information for investigation.
Could you let me know the following information?
- JVM version
- Paste the result of
./gradlew --version
orgradle --version
.
- Paste the result of
- Content of build.gradle
- Of course, you can omit sensitive information in the file.
I'm not sure, as I'm not familiar with Android development, but it might be caused by applying Java plugin inside this plugin, which is not compatible with Android plugins.
https://github.com/kamatama41/gradle-git-release-plugin/blob/0.3.0/src/main/kotlin/com/github/kamatama41/gradle/gitrelease/GitReleasePlugin.kt#L26
ref: https://stackoverflow.com/questions/41642538/java-plugin-is-not-compatible-with-the-android-plugins
- gradle --versio
Gradle 5.4.1
Build time: 2019-04-26 08:14:42 UTC
Revision: 261d171646b36a6a28d5a19a69676cd098a4c19d
Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 12.0.2 (Oracle Corporation 12.0.2+10)
OS: Windows 10 10.0 amd64
Gradle file content
gitRelease {
groupId = "com.test"
artifactId = "sdk_prefs"
repoUri = "git@github.com:AdnanTheEntertainer/sdk-prefs-remote.git"
}
Thank you for the information @AdnanTheEntertainer
Unfortunately this plugin is strongly depending on the Java plugin so Android project seems not to be applicable. And it's hard for me to make it compatible with the Android because, as I said before, I'm not familiar with Android development. But PR is welcome if you are interested 😃
The issue and the commit might be helpful for the purpose.
nebula-plugins/gradle-lint-plugin#36
nebula-plugins/gradle-lint-plugin@8f3ec5f