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 +5
-3
lines changed
main/java/com/itsaky/androidide/gradle
test/java/com/itsaky/androidide/gradle Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ internal val Project.isTestEnv: Boolean
3838 _PROPERTY_IS_TEST_ENV ).toString().toBoolean()
3939
4040internal fun depVersion (testEnv : Boolean ): String {
41- return if (testEnv ) {
41+ return if (testEnv && ! System .getenv( " CI " ).toBoolean() ) {
4242 BuildInfo .VERSION_NAME_SIMPLE
4343 } else {
4444 BuildInfo .VERSION_NAME_DOWNLOAD
Original file line number Diff line number Diff line change 1818package com.itsaky.androidide.gradle
1919
2020import com.itsaky.androidide.buildinfo.BuildInfo
21+ import com.itsaky.androidide.tooling.api.LogSenderConfig._PROPERTY_IS_TEST_ENV
22+ import com.itsaky.androidide.tooling.api.LogSenderConfig._PROPERTY_MAVEN_LOCAL_REPOSITORY
2123import com.itsaky.androidide.utils.FileProvider
2224import org.gradle.testkit.runner.BuildResult
2325import org.gradle.testkit.runner.GradleRunner
@@ -55,8 +57,8 @@ internal fun buildProject(
5557 val args = mutableListOf (
5658 " :app:tasks" , // run any task, as long as it applies the plugins
5759 " --init-script" , initScript.pathString,
58- " -Pandroidide.plugins.internal.isTestEnv =true" , // plugins should be published to maven local first
59- " -Pandroidide.plugins.internal.mavenLocalRepositories =$repositories " ,
60+ " -P $_PROPERTY_IS_TEST_ENV =true" , // plugins should be published to maven local first
61+ " -P $_PROPERTY_MAVEN_LOCAL_REPOSITORY =$repositories " ,
6062 " --stacktrace"
6163 )
6264
You can’t perform that action at this time.
0 commit comments