Hi Team,
In my build.gradle file, I have 2 jsonSchema2pojo sections, each of which having source,target, targetPackage.
I have 2 questions,
-
can I use 2 sections of jsonSchema2pojo in same build.gradle with 2 different targetPackages and source directories?
-
My parent package name is com.testresource.
Under this I have another package called data.
So now I need to generate java classes from schema under data package.
If I give targetPackage name as ‘data’, then it is generating java classes with package name data.but my expectation here is com.testresource.data.
If I give fully qualified name in targetPackage like com.testresource.data then the classes are generating with duplicate package names because my parent package have same name
Could you please help me to resolve the above issue.