mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +00:00
Our maven/ivy instructions also apply to gradle; updated docs to reflect this.
This commit is contained in:
1 parent
df7be9752a
commit
65d89f077e
2 files changed
+9
-5
No files matched your search
@@ -44,7 +44,7 @@
|
||||
<div class="edgeLink">Feeling adventurous? Download the latest <a href="download-edge.html">snapshot</a> release.</div>
|
||||
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td class="platform">Maven or Ivy</td>
|
||||
<tr><td class="platform">Maven, Ivy or Gradle</td>
|
||||
<td class="instruction">Lombok is in maven central. <a href="mavenrepo/index.html">More…</a></td></tr>
|
||||
|
||||
<tr><td class="platform">Javac</td>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
</style>
|
||||
</head><body>
|
||||
<div class="meat">
|
||||
<h1>Use Lombok via Maven or ivy</h1>
|
||||
<h2>Maven</h1>
|
||||
<div>
|
||||
You can use lombok with maven by adding the following to your <strong>pom.xml</strong>:
|
||||
<div class="snippet"><dependencies>
|
||||
@@ -55,15 +55,19 @@
|
||||
</dependency>
|
||||
</dependencies></div>
|
||||
</div>
|
||||
<h2>Ivy</h2>
|
||||
<div>
|
||||
You can use lombok with ivy by adding the following to your <strong>ivy.xml</strong>:
|
||||
<div class="snippet"><dependency org="org.projectlombok" name="lombok" rev="@VERSION@" conf="build" /></div>
|
||||
</div>
|
||||
<h2>Gradle</h2>
|
||||
<div>
|
||||
<em><strong>CAREFUL:</strong></em> lombok requires using the javac v1.6 compiler or higher.
|
||||
You can use lombok with gradle by adding the following to your <strong>build.gradle</strong> in the <strong>dependencies</strong> block:
|
||||
<div class="snippet">provided "org.projectlombok:lombok:@VERSION@"</div>
|
||||
</div>
|
||||
<div>
|
||||
<em>NOTE:</em> You'll still need to download lombok, or doubleclick on the lombok.jar file downloaded by maven / ivy / gradle, to install lombok into your eclipse installation.
|
||||
</div>
|
||||
That's all there is to it!<br />
|
||||
<em>note:</em> You'll still need to download lombok, or doubleclick on the lombok.jar file downloaded by maven, to install lombok into your eclipse installation.<br />
|
||||
<a id="downloadLink" href="http://projectlombok.googlecode.com/files/lombok.jar">Download lombok.jar</a>
|
||||
</div>
|
||||
<div class="backLink">
|
||||
|
||||
Reference in new issue
Block a user