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
38
38
_PROPERTY_IS_TEST_ENV ).toString().toBoolean()
39
39
40
40
internal fun depVersion (testEnv : Boolean ): String {
41
- return if (testEnv ) {
41
+ return if (testEnv && ! System .getenv( " CI " ).toBoolean() ) {
42
42
BuildInfo .VERSION_NAME_SIMPLE
43
43
} else {
44
44
BuildInfo .VERSION_NAME_DOWNLOAD
Original file line number Diff line number Diff line change 18
18
package com.itsaky.androidide.gradle
19
19
20
20
import 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
21
23
import com.itsaky.androidide.utils.FileProvider
22
24
import org.gradle.testkit.runner.BuildResult
23
25
import org.gradle.testkit.runner.GradleRunner
@@ -55,8 +57,8 @@ internal fun buildProject(
55
57
val args = mutableListOf (
56
58
" :app:tasks" , // run any task, as long as it applies the plugins
57
59
" --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 " ,
60
62
" --stacktrace"
61
63
)
62
64
You can’t perform that action at this time.
0 commit comments