npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

merge-gradle-conf

v0.0.17

Published

Merge Gradle Configuration Files

Downloads

1

Readme

Merge Gradle Configuration files

How to install the package

yarn add global merge-gradle-conf or npm install -g merge-gradle-conf

How to run the package

In order to run the command you have to specify at least 2 parameters, i.e.: merge-gradle-conf --currentBranch=master --comparedToBranch=maintenance

In case that you would like to run the command where working directory is not the current directory, it can be also provided via the parameter: merge-gradle-conf --currentBranch=master --comparedToBranch=maintenance --workDir=/the/location/of/the/project

How the package works

The purpose of this library is to handle conflicts of gradle/dependencies.conf file across different branches. Merging happens with the next logic:

  • It preserves all keys. If one of the branches has more key/value pairs than other, merge will keep all key/value pairs. For example:
dependencyManagement {
  versions {
    pluginA = "0.0.1"
    pluginC = "0.0.2"
  }
}

and

dependencyManagement {
  versions {
    pluginD = "0.0.4"
  }
}

The result of merge is:

dependencyManagement {
  versions {
    pluginA = "0.0.1"
    pluginC = "0.0.2"
    pluginD = "0.0.4"
  }
}
  • Merge happens line by line and it's looking at a key as a subject of comparison. Value for this key is taken from the branch, which has higher ranking based on SemVer rules. For example, if 2 files are provided, like
dependencyManagement {
  versions {
    pluginA = "1.0.0"
    pluginB = "2.0.0"
  }
}

and

dependencyManagement {
  versions {
    pluginB = "1.2.0"
    pluginA = "1.5.0"
  }
}

The order of properties doesn't matter, pluginA will be compared against pluginA, the result of merge is:

dependencyManagement {
  versions {
    pluginA = "1.5.0"
    pluginB = "2.0.0"
  }
}

As merge is finished, gradle/dependencies.conf is going to be overwritten with a merged content in provided working directory (by default this this a current folder).

Committing and pushing of the final merge has to be performed by a user.