Skip to content

Instantly share code, notes, and snippets.

@kdabir
Last active March 7, 2018 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdabir/0dbf62e16e5af8ef55b43442148f0fe5 to your computer and use it in GitHub Desktop.
Save kdabir/0dbf62e16e5af8ef55b43442148f0fe5 to your computer and use it in GitHub Desktop.
TattleTale Gradle

TattleTale Gradle plugin

Add to build.gradle

apply from:'https://gist.githubusercontent.com/kdabir/0dbf62e16e5af8ef55b43442148f0fe5/raw/depTree.gradle'

And Run

$ gradle tattletaleReport

configurations { tattletale }
repositories { mavenCentral() }
dependencies {
tattletale 'org.jboss.tattletale:tattletale-ant:1.2.0.Beta2'
tattletale 'org.javassist:javassist:3.22.0-GA', {force = true}
}
ant.taskdef(name: "tattletaleReport",
classname: "org.jboss.tattletale.ant.ReportTask",
classpath: configurations.tattletale.asPath
)
// More options at:
// https://docs.jboss.org/tattletale/userguide/1.2/en-US/html_single/#ant
task tattletaleReport {
doLast {
ant.tattletaleReport(source: '.', destination: 'build/report/')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment