File tree Expand file tree Collapse file tree 4 files changed +49
-4
lines changed Expand file tree Collapse file tree 4 files changed +49
-4
lines changed Original file line number Diff line number Diff line change @@ -166,3 +166,15 @@ updates:
166
166
interval : " weekly"
167
167
day : " sunday"
168
168
time : " 16:00"
169
+ - package-ecosystem : " maven"
170
+ directory : " /maven/lib/dependabot/maven/"
171
+ schedule :
172
+ interval : " weekly"
173
+ day : " sunday"
174
+ time : " 16:00"
175
+ - package-ecosystem : " docker"
176
+ directory : " /maven"
177
+ schedule :
178
+ interval : " weekly"
179
+ day : " sunday"
180
+ time : " 16:00"
Original file line number Diff line number Diff line change
1
+ # This cannot be inlined below (e.g., COPY --from=maven:...) because Dependabot does not support that syntax yet
2
+ FROM maven:3.9.9 as maven
3
+
1
4
FROM ghcr.io/dependabot/dependabot-updater-core
2
5
3
6
RUN apt-get update && apt-get install -y --no-install-recommends \
4
7
openjdk-21-jdk \
5
8
ca-certificates-java \
6
9
&& rm -rf /var/lib/apt/lists/*
7
10
8
- COPY --from=maven:3.9.9 /usr/share/maven /usr/share/maven
11
+ COPY --from=maven /usr/share/maven /usr/share/maven
9
12
10
13
ENV MAVEN_HOME=/usr/share/maven
11
14
Original file line number Diff line number Diff line change 1
- # typed: strong
1
+ # typed: strict
2
2
# frozen_string_literal: true
3
3
4
4
require "shellwords"
5
5
require "sorbet-runtime"
6
+ require "nokogiri"
6
7
7
8
module Dependabot
8
9
module Maven
9
10
module NativeHelpers
10
11
extend T ::Sig
11
- # Latest version of the plugin can be found here - https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-dependency-plugin
12
- DEPENDENCY_PLUGIN_VERSION = "3.8.1"
12
+ pom_path = File . join ( __dir__ , "pom.xml" )
13
+
14
+ version = File . open ( pom_path ) do |f |
15
+ doc = Nokogiri ::XML ( f )
16
+ doc . at_xpath ( "//project/properties/maven-dependency-plugin.version" ) &.text
17
+ end
18
+
19
+ DEPENDENCY_PLUGIN_VERSION = T . let ( version , T . nilable ( String ) )
13
20
14
21
sig do
15
22
params ( file_name : String ) . void
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project >
3
+
4
+ <!--
5
+ This build is not used directly within the native helper.
6
+ The goal is to help automate the maintenance overhead of keeping the version of maven-dependency-plugin up to date.
7
+
8
+ 1. We read the maven-dependency-plugin.version version dynamically from the native_helper
9
+ 2. We use Dependabot keep the version up to date
10
+ -->
11
+
12
+ <properties >
13
+ <maven-dependency-plugin .version>3.8.1</maven-dependency-plugin .version>
14
+ </properties >
15
+
16
+ <dependencies >
17
+ <dependency >
18
+ <groupId >org.apache.maven.plugins</groupId >
19
+ <artifactId >maven-dependency-plugin</artifactId >
20
+ <version >${maven-dependency-plugin.version} </version >
21
+ </dependency >
22
+ </dependencies >
23
+ </project >
You can’t perform that action at this time.
0 commit comments