aboutsummaryrefslogtreecommitdiff
path: root/website/setup/android.html
diff options
context:
space:
mode:
authordodgex <kujanssen@freenet.de>2014-05-01 17:52:57 +0200
committerdodgex <kujanssen@freenet.de>2014-05-01 17:52:57 +0200
commit1996b7e58fabe5e73a9454af359e65c39130033b (patch)
tree0c638114f209c687ddcd259cb8d9866e40253635 /website/setup/android.html
parent428edaa1a5b749b084a676ad064358c4d0742c21 (diff)
downloadlombok-1996b7e58fabe5e73a9454af359e65c39130033b.tar.gz
lombok-1996b7e58fabe5e73a9454af359e65c39130033b.tar.bz2
lombok-1996b7e58fabe5e73a9454af359e65c39130033b.zip
Add Android Studio / Gradle instructions
Diffstat (limited to 'website/setup/android.html')
-rw-r--r--website/setup/android.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/website/setup/android.html b/website/setup/android.html
index 9aeddfc5..8bd99197 100644
--- a/website/setup/android.html
+++ b/website/setup/android.html
@@ -76,6 +76,32 @@ java -jar lombok.jar publicApi</pre>
(which you can modify in that project's properties page) with <code>lombok-api.jar</code>, as produced in the procedure explained for <em>Eclipse</em>,
above.
</div>
+ <h3>Gradle &amp; Android Studio</h3>
+ <div>
+ While there might be other ways, this is how I got lombok working for Gradle and Android Studio.
+
+ <h4>Gradle Setup</h4>
+ <ul>
+ <li>First of all make sure that the version of your android plugin is <code>&gt;= 0.4.3</code></li>
+ <li>Then you need <a href="https://bitbucket.org/hvisser/android-apt">android-apt</a>, follow the instructions on thier site</li>
+ <li>Add Lombok to your Apps <code>dependencies</code>-Block
+<pre>
+ provided "org.projectlombok:lombok:1.12.6"
+ apt "org.projectlombok:lombok:1.12.6"
+</pre>
+ </li>
+ <li>Now you should be able to compile your App using Lombok Annotations</li>
+ </ul>
+ <h4>Android Studio</h4>
+ While the Gradle build already works, Android Studio is not able to see the generated methods. To fix this, you have to install the <a href="http://plugins.jetbrains.com/plugin/6317">Lombok Plugin</a> for IntelliJ IDEA/Android Studio.
+ <ul>
+ <li>Go to <code>File &gt; Settings &gt; Plugins</code></li>
+ <li>Click on <code>Browse repositories...</code></li>
+ <li>Search for <code>Lombok Plugin</code></li>
+ <li>Click on <code>Install plugin</code></li>
+ <li>Restart Android Studio &amp; Profit!</li>
+ </ul>
+ </div>
<div class="endBar">
</div>
<div class="footer">