Skip to content

Commit 14d4fe3

Browse files
committed
Tweak renovate configuration and spotlight
1 parent d9971ae commit 14d4fe3

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

build-tools-internal/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,15 @@ tasks.named("jar") {
384384
exclude("classpath.index")
385385
}
386386

387+
spotless {
388+
java {
389+
// IDEs can sometimes run annotation processors that leave files in
390+
// here, causing Spotless to complain. Even though this path ought not
391+
// to exist, exclude it anyway in order to avoid spurious failures.
392+
toggleOffOn()
393+
}
394+
}
395+
387396
def resolveMainWrapperVersion() {
388397
new URL("https://raw.githubusercontent.com/elastic/elasticsearch/main/build-tools-internal/src/main/resources/minimumGradleVersion").text.trim()
389398
}

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/DockerBase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ public enum DockerBase {
2929
CLOUD_ESS(null, "-cloud-ess", "apt-get"),
3030

3131
// Chainguard based wolfi image with latest jdk
32+
// This is usually updated via renovatebot
33+
// spotless:off
3234
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:90888b190da54062f67f3fef1372eb0ae7d81ea55f5a1f56d748b13e4853d984",
3335
"-wolfi",
3436
"apk"
3537
),
38+
// spotless:on
3639

3740
// Based on WOLFI above, with more extras. We don't set a base image because
3841
// we programmatically extend from the Wolfi image.

renovate.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
"extends": [
44
"github>elastic/renovate-config:only-chainguard"
55
],
6+
"labels": [">non-issue", ":Delivery/Packaging", "Team:Delivery"],
7+
"packageRules": [
8+
{
9+
"groupName": "wolfi (versioned)",
10+
"groupSlug": "wolfi-versioned",
11+
"description": "Override the `groupSlug` to create a non-special-character branch name",
12+
"matchDatasources": [
13+
"docker"
14+
],
15+
"matchPackagePatterns": [
16+
"^docker.elastic.co/wolfi/chainguard-base$"
17+
]
18+
}
19+
],
620
"customManagers": [
721
{
822
"description": "Extract Wolfi images from elasticsearch DockerBase configuration",

0 commit comments

Comments
 (0)