Skip to content

Commit 746082e

Browse files
feat: update employee manager (#77)
Signed-off-by: Pranshu Srivastava <[email protected]>
1 parent a908989 commit 746082e

File tree

2 files changed

+21
-25
lines changed

2 files changed

+21
-25
lines changed

employee-manager/pom.xml

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
<artifactId>spring-boot-starter-data-jpa</artifactId>
3535
<version>${project.parent.version}</version>
3636
</dependency>
37+
<dependency>
38+
<groupId>io.keploy</groupId>
39+
<artifactId>keploy-sdk</artifactId>
40+
<version>1.4.7 </version>
41+
</dependency>
3742
<dependency>
3843
<groupId>org.springframework.boot</groupId>
3944
<artifactId>spring-boot-starter-web</artifactId>
@@ -56,7 +61,7 @@
5661
<artifactId>spring-boot-starter-validation</artifactId>
5762
<version>${project.parent.version}</version>
5863
</dependency>
59-
64+
6065
<!-- https://mvnrepository.com/artifact/org.springframework/spring-test -->
6166
<dependency>
6267
<groupId>org.springframework</groupId>
@@ -80,39 +85,27 @@
8085
<artifactId>spring-boot-maven-plugin</artifactId>
8186
<version>${project.parent.version}</version>
8287
</plugin>
83-
8488

85-
<!-- Plugins to attach java agent when running application using command line
89+
<!-- Jacoco Maven Plugin -->
8690
<plugin>
87-
<groupId>org.apache.maven.plugins</groupId>
88-
<artifactId>maven-dependency-plugin</artifactId>
89-
<version>3.1.1</version>
91+
<groupId>org.jacoco</groupId>
92+
<artifactId>jacoco-maven-plugin</artifactId>
93+
<version>0.8.8</version>
9094
<executions>
9195
<execution>
92-
<id>copy-dependencies</id>
93-
<phase>package</phase>
9496
<goals>
95-
<goal>copy-dependencies</goal>
97+
<goal>prepare-agent</goal>
98+
</goals>
99+
</execution>
100+
<execution>
101+
<id>report</id>
102+
<phase>test</phase>
103+
<goals>
104+
<goal>report</goal>
96105
</goals>
97106
</execution>
98107
</executions>
99108
</plugin>
100-
<plugin>
101-
<groupId>org.apache.maven.plugins</groupId>
102-
<artifactId>maven-jar-plugin</artifactId>
103-
<version>3.2.2</version>
104-
<configuration>
105-
<archive>
106-
<manifest>
107-
<addClasspath>true</addClasspath>
108-
<classpathPrefix>dependency/</classpathPrefix>
109-
<mainClass>com.example.demo.SamplesJavaApplication</mainClass>
110-
</manifest>
111-
</archive>
112-
</configuration>
113-
</plugin> -->
114109
</plugins>
115-
116110
</build>
117-
118111
</project>

employee-manager/src/main/java/com/example/demo/SamplesJavaApplication.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55
import org.springframework.context.annotation.Import;
6+
// import io.keploy.servlet.KeployMiddleware;
7+
68

79
@SpringBootApplication
810

11+
// @Import(KeployMiddleware.class)
912
public class SamplesJavaApplication {
1013
public static void main(String[] args) {
1114
SpringApplication.run(SamplesJavaApplication.class, args);

0 commit comments

Comments
 (0)