Skip to content

Instantly share code, notes, and snippets.

@savishy
Last active September 27, 2018 09:42
Show Gist options
  • Save savishy/e20ae47155ac6b99a6a2d106552aa1a2 to your computer and use it in GitHub Desktop.
Save savishy/e20ae47155ac6b99a6a2d106552aa1a2 to your computer and use it in GitHub Desktop.
Build Automation Tips, Tricks and CheatSheet
Key Value
Main Build Scripts build.gradle - project and tasks configuration.
settings.gradle - useful in multi-project builds.
gradle.properties - key-valuen pair containing build properties.
Projects, Tasks A Build contains one or more Projects that are composed of Tasks. Multi-Project builds need to have a top level settings.gradle describing all the projects that are part of the build.
Tasks Similar to Maven Goals. E.g. Compile / Run etc.
Plugins Gradle Plugins can make new tasks available to a project.
Syntax: apply plugin: 'foo'
apply plugin: 'com.foo.bar'

gradle tasks - list all tasks available to project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment