Adam
04/11/2025, 10:12 AMincludeBuild
the directory in our settings script
This works fine, however, I want to add all these plugins to the project classpath as such by adding them to the root project build script
plugins {
alias(libs.plugins.internal.company.plugin) apply false
alias(libs.plugins.internal.company.otherPlugin) apply false
// etc
}
When I do this, it works fine until I include the build for local iteration. I basically can’t sync because of the following error Error resolving plugin [id: 'plugin.name', version: '1.0.43'] > The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
I’m guessing this happens because when I include the build, gradle seems to add the plugins in it to the classpath with an unknown
version, but then also tries to grab the latest published versions since I’m also trying to add them to the classpath, thus creating a conflict. Is there any way to work around this or will I have to resort to just commenting out my plugins from the plugins
block whenever I want to work on them locally?Vampire
04/11/2025, 10:17 AMPhilip W
04/11/2025, 10:33 AMVampire
04/11/2025, 10:40 AMincludeBuild
without any problems.Adam
04/11/2025, 12:07 PMVampire
04/11/2025, 12:09 PMno
04/22/2025, 2:56 PMcom.emergetools.android
and we want to test it against another repository as a sort of integration test.
https://github.com/EmergeTools/hackernews/blob/main/android/build.gradle.kts
We removed our plugin (com.emergetools.android
) from the build.gradle.kts in the other repository to be able to run this integration test without experiencing the issue that Adam explained.no
04/22/2025, 3:01 PMalias(libs.plugins.emerge) apply false
to plugins
block in hackernews/android/build.gradle.kts
cd hackernews/android && ./gradlew :app:emergeUploadSnapshotBundleDebug --include-build ../../emerge-android/gradle-plugin
Vampire
04/23/2025, 1:56 PMAdam
04/28/2025, 9:12 AM