-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajuste na pipeline para enviar o código para análise do sonarqube
- Loading branch information
Showing
24 changed files
with
180 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
vertical=LoteriaCrawlersServices | ||
|
||
sonarQubeProjectKey=algarves_loteria-crawlers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
apply plugin: "org.sonarqube" | ||
|
||
def coverageExclusions = [ | ||
"**/test/java/*.java" | ||
] | ||
|
||
sonarqube { | ||
properties { | ||
property "sonar.coverage.exclusions", coverageExclusions.join(",") | ||
property "sonar.java.binaries", "$build/classes/java/main/**/*.class" | ||
property "sonar.java.libraries", "**.jar" | ||
property "sonar.projectName", rootProject.name | ||
property "sonar.organization", sonarQubeProjectKey | ||
property "sonar.organization", "algarves" | ||
property "sonar.projectKey", sonarQubeProjectKey | ||
property "sonar.host.url", 'https://sonarcloud.io/' | ||
property "sonar.host.url", 'https://sonarcloud.io' | ||
property "sonar.java.coveragePlugin", "jacoco" | ||
property "sonar.tests", "src/test" | ||
property "sonar.java.test.binaries", "build/classes/java/test" | ||
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/ueby/loteria/crawlers/exception/JsonParseErrorException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.ueby.loteria.crawlers.exception; | ||
|
||
/** | ||
* @author Algarves, Khristian | ||
*/ | ||
public class JsonParseErrorException extends RuntimeException { | ||
|
||
static final long serialVersionUID = 1L; | ||
|
||
public JsonParseErrorException(String message) { | ||
super(message); | ||
} | ||
|
||
public JsonParseErrorException(String message, Throwable throwable) { | ||
super(message, throwable); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/java/com/ueby/loteria/crawlers/IntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.ueby.loteria.crawlers; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import org.junit.jupiter.api.Tag; | ||
|
||
@Tag("integrationTest") | ||
@Target({ElementType.TYPE, ElementType.METHOD}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface IntegrationTest { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.