Update Sonarqube configuration
This commit is contained in:
+17
-28
@@ -1,34 +1,27 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'application'
|
alias(libs.plugins.asciidoctorConvention)
|
||||||
id 'jacoco-report-aggregation'
|
alias(libs.plugins.applicationConvention)
|
||||||
alias(versions.plugins.asciidoctorConvention)
|
alias(libs.plugins.libraryConvention)
|
||||||
alias(versions.plugins.javaConvention)
|
id "org.sonarqube" version "4.0.0.2929"
|
||||||
alias(versions.plugins.sonarqube)
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
mavenLocal()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation versions.slf4j
|
implementation libs.slf4j
|
||||||
implementation versions.commonscli
|
implementation libs.commonscli
|
||||||
testImplementation versions.junit
|
testImplementation libs.junit
|
||||||
implementation versions.bundles.logback
|
implementation libs.bundles.logback
|
||||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.12.0'
|
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.12.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
application(MavenPublication) {
|
|
||||||
groupId = group
|
|
||||||
from components.java
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
final BUILD_DATE = new Date().format('dd.MM.yyyy').toString()
|
|
||||||
|
|
||||||
final MAIN_CLASS_NAME = 'de.thpeetz.generations.App'
|
final MAIN_CLASS_NAME = 'de.thpeetz.generations.App'
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
//sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
@@ -41,20 +34,16 @@ jar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
spotbugs {
|
sonar {
|
||||||
ignoreFailures = true
|
|
||||||
}
|
|
||||||
|
|
||||||
sonarqube {
|
|
||||||
properties {
|
properties {
|
||||||
property "sonar.projectKey", "tpeetz_generations_AYB--ei2Uw4Nr911AV3u"
|
property "sonar.projectKey", "tpeetz_generations_AYB--ei2Uw4Nr911AV3u"
|
||||||
property "sonar.qualitygate.wait", true
|
property "sonar.qualitygate.wait", true
|
||||||
property "sonar.host.url", "https://sonar.thpeetz.de"
|
property "sonar.host.url", "https://sonar.thpeetz.de"
|
||||||
property "sonar.login", "92ff8e7c02747a905df2c49de874ce3db001bd37"
|
property "sonar.token", "squ_c05f5c2a7c2b7f6bf43769eebb9162b484c7edb6"
|
||||||
property "sonar.sourceEncoding", "UTF-8"
|
property "sonar.sourceEncoding", "UTF-8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapper {
|
wrapper {
|
||||||
gradleVersion = "7.5"
|
gradleVersion = libs.versions.gradle.get()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -1 +1,29 @@
|
|||||||
|
pluginManagement {
|
||||||
|
plugins {
|
||||||
|
}
|
||||||
|
resolutionStrategy {
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "GitHubPackages"
|
||||||
|
url = uri("https://maven.pkg.github.com/cimt-ag/convention-plugins")
|
||||||
|
credentials(PasswordCredentials)
|
||||||
|
}
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencyResolutionManagement {
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = 'GitHubPackages'
|
||||||
|
url = uri("https://maven.pkg.github.com/cimt-ag/version-catalog")
|
||||||
|
credentials(PasswordCredentials)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
versionCatalogs {
|
||||||
|
libs {
|
||||||
|
from("de.cimt:version-catalog:1.0.0-SNAPSHOT")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
rootProject.name="generations"
|
rootProject.name="generations"
|
||||||
|
|||||||
Reference in New Issue
Block a user