You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ An example project can be found in the directory `examples/maven-example`.
77
77
* Run `mvn clean install` in that project
78
78
* Expand the `examples/maven-example` directory
79
79
* Right-click on the file `pom.xml` in that directory and select `Add as a Maven Project`
80
-
*Enable annotation processing for this project under `Settings`>`Build, Execution, Deployment`>`Compiler`>`Annotation Processors`>`Maven default annotation processors profile`>`json-parser-maven-example`>Enable Annotation Processing`
80
+
*[Make sure you set up your IDE correctly](#ide-specific-configuration)
81
81
* Run `TestClass` in `examples/maven-example/src/main/java/io/github/danthe1st/json_compile/test/TestClass`
82
82
83
83
### Supported types
@@ -90,14 +90,30 @@ An example project can be found in the directory `examples/maven-example`.
90
90
* Enums
91
91
* Wrapper classes for supported primitive types
92
92
* Objects of classes annotated with `@GenerateJSON`
93
-
*`Collection`s if they are not part of other collections or arrays
93
+
*`Collection`s if they are not part of other collections or arrays, `Collections` of classes annotated with `@GenerateJSON` that contain collections are supported, however
94
94
* Arrays
95
95
96
96
### Limitations
97
97
* It is not possible to create an array/collection of collections
98
98
* Objects annotated with `@GenerateJSON` need to have a no-args-constructor
99
99
* Collections need to be initialized in the constructor
100
100
* Generic objects are not supported (except generic collections)
101
-
* Eclipse may not detect the annotation processor
102
-
* Compile-time JSON-parser is not yet published to maven central so you will have to build it by yourself.
101
+
* Compile-time JSON-parser is not yet published to maven central, so you will have to build it by yourself.
103
102
* Configuration is not supported
103
+
104
+
### IDE-specific configuration
105
+
106
+
### Eclipse
107
+
* Install the [m2e-apt plugin](https://marketplace.eclipse.org/content/m2e-apt)
108
+
[](http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1216155"Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client")
* Right-click the project, open `Properties`>`Java Compiler`>`Annotation Processing`> and select `Enable Project Specific Settings` and `Enable processing in Editor`
0 commit comments