Skip to content

Commit 98f1ba5

Browse files
committed
Removed Jackson Dependency
1 parent 53d2ca5 commit 98f1ba5

File tree

5 files changed

+1
-27
lines changed

5 files changed

+1
-27
lines changed

pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
<artifactId>freemarker</artifactId>
2222
<version>2.3.30</version>
2323
</dependency>
24-
<dependency>
25-
<groupId>com.fasterxml.jackson.core</groupId>
26-
<artifactId>jackson-databind</artifactId>
27-
<version>2.11.0</version>
28-
</dependency>
2924
</dependencies>
3025
<build>
3126
<plugins>

src/main/java/in/erail/cli/af/Create.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package in.erail.cli.af;
22

3-
import com.fasterxml.jackson.databind.ObjectMapper;
43
import freemarker.template.TemplateException;
54
import in.erail.cli.af.model.Project;
65
import java.io.IOException;
@@ -44,13 +43,11 @@ public class Create implements Callable<Integer> {
4443
@Option(names = {"-h", "--helm"}, order = 7, description = "Create Helm Chart")
4544
private boolean createHelmChart;
4645

47-
private final ObjectMapper mapper = new ObjectMapper();
48-
4946
@Override
5047
public Integer call() throws Exception {
5148

5249
//Create POM
53-
Project config = mapper.readValue(Utils.getResource("/files/pom.json"), Project.class);
50+
Project config = new Project();
5451
config
5552
.setGroupId(groupId)
5653
.setArtifactId(artifactId)

src/main/resources/META-INF/native-image/in.erail.cli/af/reflect-config.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
[
2-
{
3-
"name":"com.fasterxml.jackson.databind.ext.Java7HandlersImpl",
4-
"methods":[{"name":"<init>","parameterTypes":[] }]
5-
},
6-
{
7-
"name":"com.fasterxml.jackson.databind.ext.Java7SupportImpl",
8-
"methods":[{"name":"<init>","parameterTypes":[] }]
9-
},
102
{
113
"name":"freemarker.core._Java8Impl",
124
"fields":[{"name":"INSTANCE"}]
@@ -26,10 +18,7 @@
2618
},
2719
{
2820
"name":"in.erail.cli.af.model.Project",
29-
"allDeclaredFields":true,
30-
"allDeclaredMethods":true,
3121
"allPublicMethods":true,
32-
"allDeclaredConstructors":true,
3322
"allPublicConstructors":true
3423
},
3524
{

src/main/resources/META-INF/native-image/in.erail.cli/af/resource-config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"resources":[
33
{"pattern":"\\Qfiles/chart.zip\\E"},
4-
{"pattern":"\\Qfiles/pom.json\\E"},
54
{"pattern":"\\Qfreemarker/ext/beans/DefaultMemberAccessPolicy-rules\\E"},
65
{"pattern":"\\Qfreemarker/version.properties\\E"},
76
{"pattern":"\\Qtemplate/DeliveryOptions.properties.tpl\\E"},

src/main/resources/files/pom.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)