Skip to content

Commit 582afe1

Browse files
committed
Experimental support for Dependency Updates task enhancement
This works by configuring all instances of `DependencyUpdatesTask` to use a custom version reporter from GradleUtils. It respects whatever was set by the project, so if another custom reporter is already set, this won't do anything. Currently, the only supported format is "text".
1 parent ba15d27 commit 582afe1

File tree

4 files changed

+449
-12
lines changed

4 files changed

+449
-12
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ dependencies {
5858
// JavaDoc Links Plugin
5959
compileOnly libs.gradle.javadoc.links
6060

61+
// Versions Plugin
62+
compileOnly libs.gradle.versions
63+
6164
// GitHub Actions Workflows
6265
implementation libs.yaml
6366
}

settings.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ include 'gradleutils-shared'
2323

2424
dependencyResolutionManagement {
2525
repositories {
26-
//mavenLocal()
2726
mavenCentral()
27+
gradlePluginPortal()
2828
maven gradleutils.forgeMaven
2929
maven { url = 'https://maven.moddinglegacy.com' } // Gradle API
30+
//mavenLocal()
3031
}
3132

3233
versionCatalogs {
3334
register('libs') {
3435
version 'gradle-javadoc-links', '8.14'
36+
version 'gradle-versions', '0.52.0'
3537

3638
plugin 'licenser', 'net.minecraftforge.licenser' version '1.2.0' // https://plugins.gradle.org/plugin/net.minecraftforge.licenser
3739
plugin 'changelog', 'net.minecraftforge.changelog' version '3.0.6' // https://plugins.gradle.org/plugin/net.minecraftforge.changelog
@@ -53,6 +55,9 @@ dependencyResolutionManagement {
5355
// JavaDoc Links Plugin
5456
library 'gradle-javadoc-links', 'io.freefair.javadoc-links', 'io.freefair.javadoc-links.gradle.plugin' versionRef 'gradle-javadoc-links'
5557

58+
// Versions Plugin
59+
library 'gradle-versions', 'com.github.ben-manes.versions', 'com.github.ben-manes.versions.gradle.plugin' versionRef 'gradle-versions'
60+
5661
// GitHub Actions Workflows
5762
library 'yaml', 'org.yaml', 'snakeyaml' version '2.4'
5863
}

0 commit comments

Comments
 (0)