Skip to content

Instantly share code, notes, and snippets.

Avatar
🇺🇦

Slava medvedev

🇺🇦
View GitHub Profile
@medvedev
medvedev / dependabot-merge.sh
Last active Jan 19, 2021
Merge all dependabot dependencise into current branch
View dependabot-merge.sh
#!/bin/bash
set -e
git pull -q
git branch -r | grep "origin/dependabot" | while read branchName ; do
echo "About to auto-merge branch $branchName"
git merge --no-edit $branchName
echo -e "Done\n"
done
@medvedev
medvedev / build.gradle
Last active Sep 7, 2021
Gradle task that prints total dependencies size and (dependency+(size in kb)) list sorted by size desc
View build.gradle
...
/* Tested with Gradle 6.3 */
tasks.register("depsize") {
description = 'Prints dependencies for "default" configuration'
doLast() {
listConfigurationDependencies(configurations.default)
}
}