releasing with gradle (gradle summit 2014)

Download Releasing with gradle (gradle summit 2014)

Post on 27-Aug-2014

736 views

Category:

Software

5 download

Embed Size (px)

DESCRIPTION

Slidedeck for "Releasing with Gradle" talk from GradleSummit 2014 in Santa Clara, CA

TRANSCRIPT

  • Releasing with Gradle snippets,puzzles,(best)practices Ren Grschke Principal Engineer, Gradleware Gradle Exchange 2014
  • Motivation #gradlesummit 3/27
  • When doing a Release #gradlesummit update your project version deal with your vcs (tagging, branching) publish/deploy the released distribution interact with your issue tracker double check your dependencies rollback if build failed ... 4/27
  • releasing manually? #gradlesummit 5/27
  • #gradlesummit 6/27
  • demo app #gradlesummit 7/27
  • project versioning declaring a project version #gradlesummit // not optimal version = "1.1-SNAPSHOT" // better version = file("version.txt").text ... BUILD.GRADLE 8/27
  • project versioning (2) put some semantics in your project version! #gradlesummit version = MyVersion.load(file("version.properties")) class MyVersion { int major, minor, bugfix, build String toString(){ "${major}.${minor}.${bugfix}.${build}" } ... } BUILD.GRADLE 9/27
  • puzzle #1a (major|minor|bugfix) release #gradlesummit 10/27
  • source versioning interacting with your vcs (option 1) #gradlesummit buildscript { repositories { jcenter() } dependencies { classpath 'org.ajoberstar:gradle-git:0.8.0' } } import org.ajoberstar.grgit.* ext.repo = Grgit.open(file('.')) task tagRelease