examples

SonarQube Build Breaker example

Лицензия

Лицензия

Категории

Категории

Dagger Библиотеки уровня приложения Dependency Injection
Группа

Группа

com.github.daggerok.sonar
Идентификатор

Идентификатор

examples
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

pom
Описание

Описание

examples
SonarQube Build Breaker example
Организация-разработчик

Организация-разработчик

Maksim Kostromin aka daggerok open source projects sets

Скачать examples

Имя Файла Размер
examples-1.0.1.pom 780 bytes
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.daggerok.sonar/examples/ -->
<dependency>
    <groupId>com.github.daggerok.sonar</groupId>
    <artifactId>examples</artifactId>
    <version>1.0.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.daggerok.sonar/examples/
implementation 'com.github.daggerok.sonar:examples:1.0.1'
// https://jarcasting.com/artifacts/com.github.daggerok.sonar/examples/
implementation ("com.github.daggerok.sonar:examples:1.0.1")
'com.github.daggerok.sonar:examples:pom:1.0.1'
<dependency org="com.github.daggerok.sonar" name="examples" rev="1.0.1">
  <artifact name="examples" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.daggerok.sonar', module='examples', version='1.0.1')
)
libraryDependencies += "com.github.daggerok.sonar" % "examples" % "1.0.1"
[com.github.daggerok.sonar/examples "1.0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • sonar-breaker-demo
  • sonar-breaker-maven-plugin-demo

SonarQube 💥 Build Breaker Build Status Download Maven Central

SonarQube Build Breaker designed to fail SonarQube analysis during CI pipeline build if quality grates not passed

SonarQube 💥 Build Breaker

Easy as 1-2-3

Maven plugin quick start

  1. add sonar-breaker-maven-plugin in your project pom.xml file:

    <project>
        <build>
            <plugins>
                <plugin>
                    <groupId>com.github.daggerok.sonar</groupId>
                    <artifactId>sonar-breaker-maven-plugin</artifactId>
                    <version>1.0.1</version>
                    <!--
                    <configuration>
                        <delay>1</delay>
                        <retry>100</retry>
                        <standalone>false</standalone>
                        <allowFailure>false</allowFailure>
                        <projectBaseDir>${maven.multiModuleProjectDirectory}</projectBaseDir>
                        <metadataFilePath>${maven.multiModuleProjectDirectory}/target/sonar/report-task.txt</metadataFilePath>
                        <metricsExcludes>new_coverage</metricsExcludes>
                    </configuration>
                    -->
                </plugin>
            </plugins>
        </build>
    </project>

    see sonar-breaker-maven-plugin pom.xml file

  2. NOTE: Do not forget setup sonar-maven-plugin as well, sonar-breaker will be use analysis metadata generated by sonar:sonar goal execution

  3. build project, run sonar analysis and run sonar-breaker analyzer:

    mvn clean install sonar:sonar sonar-breaker:analyze 

Sonar Breaker standalone quick start

  • build project and examin sonar analysis:

    mvn install sonar:sonar 
  • download latest sonar-breaker executable jar file.

    wget -O sb.jar https://repo1.maven.org/maven2/com/github/daggerok/sonar/sonar-breaker/1.0.1/sonar-breaker-1.0.1.jar
  • finally run sonar-breaker analysis:

    java -jar sb.jar target/sonar/report-task.txt

see examples

enjoy your bugs free code! 👍

Версии библиотеки

Версия
1.0.1
1.0.0
0.1.5
0.1.4