Help find conflict in gradle.

Overview

Dependency Conflict Analyzer Gradle Plugin

This plugin scans dependencies during gradle build. Throws an error if there is a possible dependency conflict. In the current version, the plugin relies on major versions of artifacts. This may happen when Uses the default Gradle dependency resolution strategy because it uses artifact with the highest version.

GitHub Workflow Status GitHub Gradle Plugin Portal

Usage in Groovy

Using the plugins DSL

On your build.gradle add:

plugins {
  id "io.github.solneo.dependency-conflict-analyzer" version "1.0.2"
}

Using legacy plugin application

On your build.gradle add:

apply plugin: 'io.github.solneo.dependency-conflict-analyzer'

In order to use this plugin, you will also need to add the following to your buildscript classpath:

classpath 'com.dchernyaev.dca:dependency-conflict-analyzer:1.0.2'

Usage in KTS

Using the plugins DSL

On your build.gradle.kts add:

plugins {
    id("io.github.solneo.dependency-conflict-analyzer") version "1.0.2"
}

Using legacy plugin application

On your build.gradle.kts add:

apply(plugin = "io.github.solneo.dependency-conflict-analyzer")

In order to use this plugin, you will also need to add the following to your buildscript classpath:

classpath("io.github.solneo:dependency-conflict-analyzer:1.0.2")

Configuration

You can use failOnConflict extension for enable error in sync gradle:

In groovy:

dependencyConflictAnalyzer {
   failOnConflict = false
}

In KTS:

dependencyConflictAnalyzer {
   failOnConflict.set(false)
}

Also you can exclude artifact group or concrete library:

In groovy:

dependencyConflictAnalyzer {
   excludeCheckingLibrariesGroup = Arrays.asList("com.example.code.group")
   excludeCheckingLibraries = Arrays.asList("com.example.code.group:artifact")
}

In KTS:

dependencyConflictAnalyzer {
   excludeCheckingLibrariesGroup.set(listOf("com.example.code.group"))
   excludeCheckingLibrariesset(listOf("com.example.code.group:artifact"))
}

This displays a report to the console.

Text Report
--------- Warning! ---------
Danger conflict with com.google.code.gson:gson between:
- version 1.7.1 from --- project :app
- version 2.8.9 from --- redis.clients:jedis:4.1.0

Note: dependencies used only fo log example

You might also like...
A Kotlin Mobile Application to help solo Travellers on the same route during the trip

TravelMate 🧳 🗺️ 📱 A Kotlin Mobile Application to help solo Travellers on the same route during the trip. Like what you see ? Give the repo a ⭐ Trav

Backend aio - A project made to help all newbie programmers that are approaching backend development

BackendAIO A ktor based ready to use backend BackendAIO is a project made to hel

DSU-Sideloader - A simple app made to help users easily install GSIs via DSU's Android feature
DSU-Sideloader - A simple app made to help users easily install GSIs via DSU's Android feature

DSU Sideloader A simple app made to help users easily install GSIs via DSU's And

Web Container: A simple web container library for Android to help fellow developer to open WebView easily

WebContainer Description Web Container is a simple web container library for And

Ktorm KSP extension to help generate boilerplate code.
Ktorm KSP extension to help generate boilerplate code.

Ktorm KSP extension to help generate boilerplate code. It can automatically generate Table objects through entity classes, while making entities defined by data classes easier to use, and supports custom extension code generation logic.

A sample Music Player project that help you learn about Compose in Android
A sample Music Player project that help you learn about Compose in Android

Music App Compose UI A sample Music Player project that help you learn about Compose in Android. Note that this app only contain UI and has no logic.

Android library to help enter, and more importantly, leave, android "Immersive Mode".

Immersive Lock Android has various ways to full screen an application including locking the screen to prevent accidentally leaving the app. This is pa

Simple FOSS android app to help you plan and manage your savings goals easily and establish the habit of saving money.
Simple FOSS android app to help you plan and manage your savings goals easily and establish the habit of saving money.

GreenStash GreenStash is a simple FOSS android app to help you plan and manage your savings goals easily and establish the habit of saving money. 🤙 S

A very simple Android app which shows you random memes with the help of meme-api which you can share with your friends!
A very simple Android app which shows you random memes with the help of meme-api which you can share with your friends!

Meme Share A very simple Android app which shows you random memes with the help of meme-api which you can share with your friends! Tech stack 100% wri

Releases(v1.0.2)
  • v1.0.2(Sep 9, 2022)

Owner
Daniil Ch.
Daniil Ch.
This is a practice app. An app that you can find random recipes and choose the ones you like.

A food suggestion app like Tinder This is a practice app. In this app, you can find random recipes and choose the ones you like. This is main menu. Yo

Yunus Emre OCAK 4 May 25, 2022
Android Project to find FatMax in real time with a Polar H10

FatMaxxer According to recent research (see below) the FatMaxxer Android app may help you to exercise at the optimum effort level for fat burning, mea

null 37 Dec 28, 2022
An library to help android developers working easly with activities and fragments (Kotlin version)

AFM An library to help android developer working easly with activities and fragments (Kotlin) Motivation Accelerate the process and abstract the logic

Massive Disaster 12 Oct 3, 2022
Identify email addresses or domains names that belong to colleges or universities. Help automate the process of approving or rejecting academic discounts.

swot JetBrains uses this swot repository to grant free licenses for JetBrains tools to students and teachers worldwide. If your email is in one of the

JetBrains 1.4k Jan 5, 2023
This is a template to help you get started building amazing Kotlin applications and libraries.

Welcome to the Starter This is a template to help you get started building amazing Kotlin applications and libraries. Over time, examples will be comp

Backbone 8 Nov 4, 2022
A toy port scanner to help me (and you!) learn Kotlin + Akka.

kotlin-akka-portscan A toy program to help me (and you!) learn Kotlin + Akka. butwhy.gif When I want to learn a new language, I've found it helpful to

Jeremi M Gosney 4 Jul 23, 2022
To help to promote your android app by prompting users to rate your app in a bottom Sheet.

RateBottomSheet This an Android library to help to promote your Android App by prompting users to rate your app in the Google Play Store with a materi

Farham Hosseini 5 Jul 8, 2022
A funny project to help you test your BNF syntax

Readme The idea of this project is to implement a BNF expression compiler. We could use BNF to design some syntax like Arithmetic expression. <factor>

Jack Chen 4 Dec 21, 2022
Repo: Programming problems with solutions in Kotlin to help avid Kotlin learners to get a strong hold on Kotlin programming.

Kotlin_practice_problems Repo: Programming problems with solutions in Kotlin to help avid Kotlin learners to get a strong hold on Kotlin programming.

Aman 0 Oct 14, 2021
LinkHub is a simple and effective link management application that can help you to easily manage your app with no ads!

LinkHub LinkHub is a simple and effective link management application that can help you to easily manage your own links with no ads! Download Screensh

Amr Hesham 71 Dec 17, 2022