This repository was archived by the owner on Oct 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
build-logic/plugins/src/main/java/com/itsaky/androidide/plugins/tasks
gradle-plugin/src/main/java/com/itsaky/androidide/gradle Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ abstract class GenerateInitScriptTask : DefaultTask() {
7070 }
7171
7272 dependencies {
73- classpath '${mavenGroupId.get()} :gradle-plugin:${downloadVersion.get()} '
73+ classpath('${mavenGroupId.get()} :gradle-plugin:${downloadVersion.get()} ') {
74+ setChanging(false)
75+ }
7476 }
7577 }
7678
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import com.itsaky.androidide.tooling.api.LogSenderConfig._PROPERTY_IS_TEST_ENV
2222import com.itsaky.androidide.tooling.api.LogSenderConfig._PROPERTY_MAVEN_LOCAL_REPOSITORY
2323import org.gradle.StartParameter
2424import org.gradle.api.Plugin
25+ import org.gradle.api.artifacts.ExternalModuleDependency
2526import org.gradle.api.artifacts.dsl.RepositoryHandler
2627import org.gradle.api.initialization.Settings
2728import org.gradle.api.invocation.Gradle
@@ -50,7 +51,13 @@ class AndroidIDEInitScriptPlugin : Plugin<Gradle> {
5051 target.rootProject { rootProject ->
5152 rootProject.buildscript.apply {
5253 dependencies.apply {
53- add(" classpath" , rootProject.ideDependency(" gradle-plugin" ))
54+ val gradlePluginDep = rootProject.ideDependency(" gradle-plugin" )
55+ if (gradlePluginDep is ExternalModuleDependency ) {
56+ // SNAPSHOT versions of gradle-plugin do not change
57+ gradlePluginDep.isChanging = false
58+ }
59+
60+ add(" classpath" , gradlePluginDep)
5461 }
5562
5663 repositories.addDependencyRepositories(rootProject.gradle.startParameter)
You can’t perform that action at this time.
0 commit comments