Fork me on GitHub

The Bootstrap Paradox

From the Doctor Who episode....

Imagine you have a time traveller who loves Beethoven and decides to travel back and meet his hero. However on arriving, he discovers Beethoven has not and will not write any of the music the time traveller loves so much. The time traveller, desperate, decides to copy out all of his favourite tunes for Beethoven. The plan is successful. Several centuries later, a certain time traveller is listening to his favourite composer, Beethoven, and decides to go meet the man himself…

The question is: who really wrote Beethoven’s Fifth Symphony?

Well it's not really a paradox in this case, it's a helper file to get you up and running with gradle-fury by

  • Asking you a bunch of questions that end up in the pom
  • Modifying your build files to have the correct includes for a minimal setup
  • Removes itself from your build file

Using the bootstrap gradle file.

  1. Edit your root build.gradle file and add apply from 'https://raw.githubusercontent.com/gradle-fury/gradle-fury/master/gradle/encryption.gradle'
  2. run gradlew hackTime or gradlew bootstrap they both do the same thing
  3. it will prompt you with a number of questions that basically lets you populate the pom. Answer the questions the best you can, you can always change the responses later. They are stored in gradle.properties.

After it's done, the bootstrap plugin will alter your build files the best it can to provide you a minimal configuration for gradle fury. All modified files are backed up.

Next steps

What's next is you should check out the sample projects and how they are organized and what things gradle-fury can do for you. In many cases, your module gradle.build files can by simplified and minimized.