Commit f67e7324 authored by Narendar Vakiti's avatar Narendar Vakiti

added sonarqube dependency

parent c0b35bf1
...@@ -54,7 +54,21 @@ ...@@ -54,7 +54,21 @@
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.8.6</version> <version>2.8.6</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
<dependency>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.3.0.603</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin -->
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
......
...@@ -38,8 +38,6 @@ public class BookStoreController { ...@@ -38,8 +38,6 @@ public class BookStoreController {
@HystrixCommand(fallbackMethod = "getBooksFallback") @HystrixCommand(fallbackMethod = "getBooksFallback")
public String getBooks() { public String getBooks() {
logger.info("Started getBooks()");
String uri = "http://localhost:8083/getbookdetails"; String uri = "http://localhost:8083/getbookdetails";
logger.info("API URI "+uri); logger.info("API URI "+uri);
String response = null; String response = null;
...@@ -54,7 +52,6 @@ public class BookStoreController { ...@@ -54,7 +52,6 @@ public class BookStoreController {
} catch (Exception e) { } catch (Exception e) {
logger.error(e.getMessage()); logger.error(e.getMessage());
} }
logger.info("End getBooks()");
return response; return response;
} }
...@@ -78,7 +75,6 @@ public class BookStoreController { ...@@ -78,7 +75,6 @@ public class BookStoreController {
*/ */
@GetMapping("/getauthor") @GetMapping("/getauthor")
public String getAuthor() { public String getAuthor() {
logger.info("Started getAuthor()");
String uri = "http://localhost:8083/getauthordetails"; String uri = "http://localhost:8083/getauthordetails";
logger.info("API URI "+uri); logger.info("API URI "+uri);
String response = null; String response = null;
...@@ -93,13 +89,11 @@ public class BookStoreController { ...@@ -93,13 +89,11 @@ public class BookStoreController {
} catch (Exception e) { } catch (Exception e) {
logger.error(e.getMessage()); logger.error(e.getMessage());
} }
logger.info("End getAuthor()");
return response; return response;
} }
@PostMapping("/addbooks") @PostMapping("/addbooks")
public String addBooks(@RequestBody BookDetails bookDetails) { public String addBooks(@RequestBody BookDetails bookDetails) {
logger.info("Started addBooks()");
String uri = "http://localhost:8083/addbookdetails"; String uri = "http://localhost:8083/addbookdetails";
logger.info("API URI "+uri); logger.info("API URI "+uri);
String response = null; String response = null;
...@@ -117,7 +111,6 @@ public class BookStoreController { ...@@ -117,7 +111,6 @@ public class BookStoreController {
} catch (Exception e) { } catch (Exception e) {
logger.error(e.getMessage()); logger.error(e.getMessage());
} }
logger.info("End addBooks()");
return response; return response;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment