cask :v1 => 'intellij-idea13' do version '13.1.6' sha256 '2e4e2d71786cdcee2236731af25bd52129b2a18031b4899a3cc864ad632abce1' url "http://download.jetbrains.com/idea/ideaIU-#{version}.dmg" homepage 'https://www.jetbrains.com/idea/index.html' license :commercial app 'IntelliJ IDEA 13.app' postflight do plist_set(':JVMOptions:JVMVersion', '1.6+') end zap :delete => [ '~/Library/Application Support/IntelliJIdea13', '~/Library/Preferences/IntelliJIdea13', ] caveats <<-EOS.undent #{token} may require Java 7 (an older version), available from the caskroom-versions repository via brew cask install caskroom/versions/java7 Alternatively, #{token} can be modified to use Java 8 as described in https://github.com/caskroom/homebrew-cask/issues/4500#issuecomment-43955932 EOS end