bjoernQ / unmock-plugin

Gradle plugin to be used in combination with the new unit testing feature of the Gradle Plugin / Android Studio to use real classes for e.g. SparseArray.
Apache License 2.0
323 stars 22 forks source link

New gradle how to config #80

Open herenxue opened 1 year ago

herenxue commented 1 year ago

the new gradle is like this to config odle classpath plugin.so how I do config? I config like this but error: plugins { id 'com.github.bjoernq.unmock' version '0.7.9' apply false } Plugin [id: 'com.github.bjoernq.unmock', version: '0.7.9', apply: false] was not found in any of the following sources:

cbalster commented 1 year ago

Ran into the same issue and it seems it's not possible to use the new plugins {...} syntax with plugins not on gradle's PluginPortal: https://github.com/gradle/gradle/issues/1541 So basically keep using the old buildscript method is the only solution unless @bjoernQ decides to move to/also publish to gradle's plugin portal. For me it's no big deal and I'm happy sticking with the old method