This repository was archived by the owner on Oct 18, 2024. It is now read-only.
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 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() {
70
70
}
71
71
72
72
dependencies {
73
- classpath '${mavenGroupId.get()} :gradle-plugin:${downloadVersion.get()} '
73
+ classpath('${mavenGroupId.get()} :gradle-plugin:${downloadVersion.get()} ') {
74
+ setChanging(false)
75
+ }
74
76
}
75
77
}
76
78
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
22
22
import com.itsaky.androidide.tooling.api.LogSenderConfig._PROPERTY_MAVEN_LOCAL_REPOSITORY
23
23
import org.gradle.StartParameter
24
24
import org.gradle.api.Plugin
25
+ import org.gradle.api.artifacts.ExternalModuleDependency
25
26
import org.gradle.api.artifacts.dsl.RepositoryHandler
26
27
import org.gradle.api.initialization.Settings
27
28
import org.gradle.api.invocation.Gradle
@@ -50,7 +51,13 @@ class AndroidIDEInitScriptPlugin : Plugin<Gradle> {
50
51
target.rootProject { rootProject ->
51
52
rootProject.buildscript.apply {
52
53
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)
54
61
}
55
62
56
63
repositories.addDependencyRepositories(rootProject.gradle.startParameter)
You can’t perform that action at this time.
0 commit comments