Skip to content

Commit

Permalink
Bump org.sonarqube from 4.2.1.3168 to 4.4.1.3373 (#2364)
Browse files Browse the repository at this point in the history
* Bump org.sonarsource.scanner.gradle:sonarqube-gradle-plugin

Bumps [org.sonarsource.scanner.gradle:sonarqube-gradle-plugin](https://github.com/SonarSource/sonar-scanner-gradle) from 4.2.1.3168 to 4.4.1.3373.
- [Release notes](https://github.com/SonarSource/sonar-scanner-gradle/releases)
- [Commits](https://github.com/SonarSource/sonar-scanner-gradle/commits/4.4.1.3373)

---
updated-dependencies:
- dependency-name: org.sonarsource.scanner.gradle:sonarqube-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump org.sonarqube from 4.2.1.3168 to 4.4.1.3373

Bumps org.sonarqube from 4.2.1.3168 to 4.4.1.3373.

---
updated-dependencies:
- dependency-name: org.sonarqube
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Increase max metaspace size for Gradle and replace deprecated values

Following warnings:
> The Daemon will expire after the build after running out of JVM Metaspace.

> w: file:///home/runner/work/hmpps-probation-integration-services/hmpps-probation-integration-services/buildSrc/src/main/kotlin/uk/gov/justice/digital/hmpps/plugins/ClassPathPlugin.kt:48:64 'getter for buildDir: File' is deprecated. Deprecated in Java

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcus Aspin <[email protected]>
  • Loading branch information
dependabot[bot] and marcus-bcl authored Oct 6, 2023
1 parent 2b4af5c commit aa962c0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {

val copyAgentTask = project.tasks.register<Copy>("copyAgent") {
from(agentDeps)
into("${project.buildDir}/agent")
into("${project.layout.buildDirectory}/agent")
rename("applicationinsights-agent(.+).jar", "agent.jar")
}

Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.google.cloud.tools.jib") version "3.4.0" apply false
id("org.sonarqube") version "4.2.1.3168" apply false
id("org.sonarqube") version "4.4.1.3373" apply false
`kotlin-dsl`
}

Expand All @@ -12,5 +12,5 @@ repositories {

dependencies {
implementation("com.google.cloud.tools:jib-gradle-plugin:3.4.0")
implementation("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.2.1.3168")
implementation("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.4.1.3373")
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ClassPathPlugin : Plugin<Project> {
classDirectories.files.map { project.fileTree(it) { exclude(extension.jacocoExclusions) } }
)
)
executionData.setFrom(project.fileTree(project.buildDir).include("/jacoco/*.exec"))
executionData.setFrom(project.fileTree(project.layout.buildDirectory).include("/jacoco/*.exec"))
reports {
html.required.set(true)
xml.required.set(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ class JibConfigPlugin : Plugin<Project> {
extraDirectories {
paths {
path {
setFrom("${project.rootProject.buildDir}")
setFrom("${project.rootProject.layout.buildDirectory}")
includes.add("agent/agent.jar")
}
path {
setFrom("${project.buildDir}/agent")
setFrom("${project.layout.buildDirectory}/agent")
includes.add("applicationinsights*.json")
into = "/agent"
}
Expand All @@ -45,7 +45,7 @@ class JibConfigPlugin : Plugin<Project> {
val copyAgent = project.rootProject.tasks.named("copyAgent")
val copyAppInsightsConfig = project.tasks.register<Copy>("copyAppInsightsConfig") {
from("${project.projectDir}/applicationinsights.json")
into("${project.buildDir}/agent")
into("${project.layout.buildDirectory}/agent")
}
val assemble = project.tasks.named("assemble")
project.tasks.withType<BuildImageTask>().named("jib") {
Expand All @@ -70,13 +70,13 @@ class JibConfigPlugin : Plugin<Project> {
dependsOn(copyAgent, copyAppInsightsConfig, assemble)
inputs.dir("deploy")
inputs.files(
"${project.buildDir}/agent",
"${project.buildDir}/classes",
"${project.buildDir}/generated",
"${project.buildDir}/resources",
"${project.layout.buildDirectory}/agent",
"${project.layout.buildDirectory}/classes",
"${project.layout.buildDirectory}/generated",
"${project.layout.buildDirectory}/resources",
project.configurations[jib!!.configurationName.get()].resolvedConfiguration.files
)
outputs.file("${project.buildDir}/jib-image.id")
outputs.file("${project.layout.buildDirectory}/jib-image.id")
outputs.cacheIf { true }
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx4g "-XX:MaxMetaspaceSize=384m"
org.gradle.jvmargs=-Xmx4g "-XX:MaxMetaspaceSize=1g"
systemProp.sonar.host.url=https://sonarcloud.io
systemProp.sonar.organization=ministryofjustice
systemProp.sonar.projectKey=ministryofjustice_hmpps-probation-integration-services
Expand Down

0 comments on commit aa962c0

Please sign in to comment.