15 Commits

Author SHA1 Message Date
Sofiene BEN KHEMIS
6cc3d447be Sonar Fix 2021-05-10 14:30:30 +02:00
Sofiene BEN KHEMIS
fd34b6de0c Sonar Fix 2021-05-10 14:27:33 +02:00
Sofiene BEN KHEMIS
453b54bbe5 Sonar Fix 2021-05-10 14:26:26 +02:00
Sofiene BEN KHEMIS
7e4008e949 Sonar Fix 2021-05-10 14:25:18 +02:00
Sofiene BEN KHEMIS
4e92398550 Update build.yml 2021-05-10 14:20:21 +02:00
Sofiene BEN KHEMIS
3a2061e802 Sonar Fix 2021-05-10 14:18:05 +02:00
Sofiene BEN KHEMIS
896d190e8d Remove Pom for Sonar 2021-05-10 11:18:24 +02:00
Sofiene BEN KHEMIS
dbdbc3c5d8 Remove Pom for Sonar 2021-05-10 11:17:05 +02:00
Sofiene BEN KHEMIS
975255f876 update 2021-05-10 11:13:23 +02:00
Sofiene BEN KHEMIS
96c0a81dd8 Sonar properties 2021-05-10 10:47:14 +02:00
Sofiene BEN KHEMIS
87d90c5392 removing sonar.projectKey 2021-05-10 10:41:40 +02:00
Sofiene BEN KHEMIS
94198c948a Add Sonar and GitActions 2021-05-10 10:27:02 +02:00
Sofiene BEN KHEMIS
c384c5ef4e Add server port 2021-05-09 21:18:37 +02:00
Sofiene BEN KHEMIS
461f0d5575 Update buildspec.yml 2021-05-09 21:04:13 +02:00
Sofiene BEN KHEMIS
2e14234a89 Java 8 compilation 2021-05-09 20:58:14 +02:00
6 changed files with 12 additions and 31 deletions

View File

@@ -1,9 +1,8 @@
name: SonarCloud
on:
workflow_dispatch:
push:
branches:
- sonar
- beanstalk-java8
jobs:
build:
runs-on: ubuntu-16.04
@@ -30,18 +29,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v13
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_session_token: ${{ secrets.AWS_SESSION_TOKEN }}
application_name: spring-java-11
environment_name: Springjava11-env
version_label: ${{github.SHA}}
region: us-east-1
deployment_package: ms-launcher/target/ms-launcher-1.0-SNAPSHOT.jar

View File

@@ -4,5 +4,3 @@ Code for Hands-on Hexagonal Architecture With Spring Boot Tutorial
Application's architecture :
![](https://cdn-images-1.medium.com/max/800/1*mBp-JAaetosptDisZe1gPg.jpeg)
Full article: [Hands-on Hexagonal Architecture With Spring Boot](https://medium.com/javarevisited/hands-on-hexagonal-architecture-with-spring-boot-ca61f88bed8b)

View File

@@ -38,9 +38,4 @@ public class BookController {
public void deleteBookByID(@PathVariable long id) {
bookServicePort.deleteBookById(id);
}
@GetMapping("/health")
public String health() {
return "HEALTH CHECK OK";
}
}

View File

@@ -63,6 +63,16 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

View File

@@ -2,7 +2,6 @@ package org.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
@SpringBootApplication
public class LibraryApplication {
@@ -11,9 +10,4 @@ public class LibraryApplication {
SpringApplication.run(LibraryApplication.class, args);
}
@GetMapping("/")
public String health() {
return "HEALTH CHECK OK!";
}
}

View File

@@ -21,7 +21,7 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<java.version>11</java.version>
<java.version>8</java.version>
</properties>
</project>