From df7be9752afb22e8d9d8eef327c10c4d85555def Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot
+ Android also does not have a complete JRE library stack; in particular, it does not have the @java.beans.ConstructorProperties
annotation, therefore you have to stop lombok from generating these:
+
suppressConstructorProperties
property can be set to false
when using @XArgsConstructor Annotations.>= 1.14.0
you can instead a lombok.config
file to the root of your project to disable ConstructorProperties
project wide. Add the following line to lombok.config
:lombok.anyConstructor.suppressConstructorProperties = true
The instructions listed below are excerpts from The
AndroidAnnotations project cookbook. You may wish to refer to that documentation for complete instructions; lombok is just
the equivalent to androidannotations-VERSION.jar
; there is no -api
aspect.
java -jar lombok.jar publicApiThen, add the
lombok-api.jar
file created by running this command
@@ -76,48 +84,38 @@ java -jar lombok.jar publicApi
(which you can modify in that project's properties page) with lombok-api.jar
, as produced in the procedure explained for Eclipse,
above.
>= 0.4.3
dependencies
-Block
+ >= 0.4.3
dependencies
block:provided "org.projectlombok:lombok:1.12.6"
apt
in the dependencies
-Block
+ apt
directive) in the dependencies
block:provided "org.projectlombok:lombok:1.12.6" apt "org.projectlombok:lombok:1.12.6"
@java.beans.ConstructorProperties
therefor you have to use the
- suppressConstructorProperties
property when using @XArgsConstructor Annotations.
- With Lombok >= 1.12.7
you can use the lombok.config
file to enable this property projectwide by adding:
- lombok.anyConstructor.suppressConstructorProperties = true-
File > Settings > Plugins
Browse repositories...
Lombok Plugin
Install plugin