Skip to content

Correct installation dependencies into Gradle project #1402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 22, 2022

Conversation

EgorkaKulikov
Copy link
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