Skip to content

Correct installation dependencies into Gradle project#1402

Merged
EgorkaKulikov merged 8 commits into
mainfrom
egor/disabled_android_plugin
Nov 22, 2022
Merged

Correct installation dependencies into Gradle project#1402
EgorkaKulikov merged 8 commits into
mainfrom
egor/disabled_android_plugin

Conversation

@EgorkaKulikov
Copy link
Copy Markdown
Collaborator

Description

There were two problems with dependencies installation into Gradle project:

  • if Android plugin is disabled, UtAndroidGradleProjectModelModifier crashed; a new wrapper modifier is introduced, it checks if current project is Android or not and visits real modifier only if required
  • UtProjectModelModifier could not install module dependency into Gradle project; in case of this build system we use non-module dependency installer.

Fixes # (1300)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual Scenario

Verify that dependency installation into Intellij, Maven, Gradle and Android Studio projects is correct.

@EgorkaKulikov EgorkaKulikov merged commit 4d0973c into main Nov 22, 2022
@EgorkaKulikov EgorkaKulikov deleted the egor/disabled_android_plugin branch November 22, 2022 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UTBot cannot add mocks to Gradle project when Android plugin is disabled

2 participants