Configuring plugins versions
See original GitHub issueTo apply a plugin, we can use the plugins DSL https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block
plugins {
id 'com.github.jk1.dependency-license-report' version '1.9'
}
The problem is replacing the hard-coded version 1.9
with Versions.gradle_license_report
does not work for Groovy files.
Is there a workaround to be able to use buildSrcVersions for managing plugin dependencies as well as Library dependencies?
This is already done for the special case of buildSrcVersions itself (https://github.com/jmfayard/buildSrcVersions/issues/47) , although that only works in .kts files.
plugins {
- id("de.fayard.buildSrcVersions") version "0.4.2"
+ buildSrcVersions
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (11 by maintainers)
Top Results From Across the Web
Guide to Configuring Plug-ins - Apache Maven
All plugins should have minimal required information: groupId , artifactId and version . Important Note: Always define the version of each ...
Read more >Using Gradle Plugins
The plugin version is loaded from gradle.properties and configured in the settings script, allowing the plugin to be added to any project without...
Read more >Managing Plugins - Jenkins
The simplest and most common way of installing plugins is through the Manage Jenkins > Manage Plugins view, available to administrators of a...
Read more >Versions Maven Plugin – Plugin Documentation - MojoHaus
Goal Report? Description
versions:revert No Restores the pom from the initial backup.
versions:set‑scm‑tag No Updates the current project's SCM tag.
versions:use‑next‑versions No Replaces any version with...
Read more >7.1. Configuring Maven Plugins - Sonatype Help
Maven plugins are configured using properties that are defined by goals within a plugin. If you look at a goal like the compile...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good to know! I edited your ticket so that it can serve as documentation for people facing the same issue.
Maybe we can generate code that helps with this if we detect that Versions.currentGradleVersion >= 5.6. I will have to think about it.
@nkiesel @tadfisher @tadfisher @sigurdurrafn Check out the brand new
$ ./gradlew :refreshVersions
introduced in version 0.6.0 It generates gradle.properties with versions and available updates and from there you can set the plugins versions!https://github.com/jmfayard/buildSrcVersions/issues/77