Skip to content

Instantly share code, notes, and snippets.

Avatar

markrichardscs

View GitHub Profile
@markrichardscs
markrichardscs / transitive-dependency-check.sh
Last active Nov 16, 2017
Check for upgrades to transitive dependencies in Maven
View transitive-dependency-check.sh
#!/bin/bash
{ echo "<project><modelVersion>4.0.0</modelVersion><groupId>com.mycompany.app</groupId><artifactId>my-app</artifactId><version>1</version><dependencies>"; mvn dependency:list -DoutputFile=/dev/stdout| tr -d ' ' | grep "^[^\[][^:]*:[^:]" | awk -F "\"*:\"*" '{print "<dependency><groupId>"$1"</groupId>","<artifactId>"$2"</artifactId>","<version>"$4"</version></dependency>"}' -; echo "</dependencies></project>";} | mvn versions:display-dependency-updates -f /dev/stdin
View keybase.md

Keybase proof

I hereby claim:

  • I am markrichardscs on github.
  • I am markrichardscs (https://keybase.io/markrichardscs) on keybase.
  • I have a public key ASACTyrnKnY6E_QJ9snu1qNTLBnmzPypK2-8TqGWz04XFwo

To claim this, I am signing this object: