question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency has no version

See original GitHub issue

Context: buildSrcVersions is a Gradle plugin that makes it easier to manage your dependencies inside your IDE. It extracts all your dependencies and search for available dependencies updates.

Some plugins like io.vertx.vertx-plugin pin a dependency version. In that case, buildSrcVersions generate the following code

// sample-groovy/build.gradle
plugins {
    id "io.vertx.vertx-plugin" version "0.3.1"
    id 'de.fayard.buildSrcVersions' version '0.4.0'
}
dependencies {
    implementation "io.vertx:vertx-web"
}

// Libs.kt
object Libs {
    const val vertx_core: String = "io.vertx:vertx-core"
}
// Versions.kt
object Versions {
    const val vertx_core: String = "none" // No version. See buildSrcVersions#23
} 

What follows is the problem that appears in version 0.3.2 and before in that case


Hello,

I have to say that this plugin is really cool and helpful! 😃

However, I have found a few issues related to reporting of release versions, and I couldn’t find anyone else posting about it, so I am adding this new issue.

I have a simple Spring Boot, reactive, restful web service, that I created using Spring Initializr a few weeks ago. I have properly configured my project and the Gradle-Kotin-Dsl-Libs (“GKDL”), and it generates the Libs and Versions files, as expected. However, the version information for the following items is incorrect, since it does not match the versions that I started with, nor what Spring Initializr generates. I’ve noticed that these issues appear in the first and the last two entries in the Libs file that is generated. Has anyone noticed this issue? If I can provide any more information, please let me know…

Thank you for your time,

Mike


  • org_springframework_cloud: Versions => “2.1.0.RELEASE”; Should be “Greenwich.BUILD-SNAPSHOT”;

  • spring_boot_starter_webflux: Versions => “none”; Should be “2.1.0.RELEASE”;

  • jackson_module_kotlin: Versions => “none”; Should be “2.9.7”;

VERSION INFORMATION IntelliJ: 2018.2.6 Java: 11.0.1 Kotlin: 1.3.10 Kotlin DSL: 1.0.4 Gradle: 5.0 Shadow: 4.0.2 Gradle-Kotin-Dsl-Libs: 0.2.6 Spring Boot: 2.1.0.RELEASE Spring Cloud: 2.1.0.RELEASE, but should be Greenwich.BUILD-SNAPSHOT

Files.zip

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jmfayardcommented, Jan 21, 2019

Hello, this is fixed and will be available once version 0.4.0 is released

0reactions
jmfayardcommented, Aug 21, 2019

I believe this is fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

maven dependency without version - Stack Overflow
Each maven dependency defined in the pom must have a version either directly or indirectly for example, through dependencyManagement or parent ...
Read more >
which version will be downloaded by Maven if version is not ...
Below is example from camel in action code, there is no defination for ${camel-version} and version in dependency, but maven compile and install...
Read more >
Use the Latest Version of a Dependency in Maven - Baeldung
Upgrading Maven dependencies manually has always been a tedious work, especially in projects with a lot of libraries releasing frequently.
Read more >
Introduction to the Dependency Mechanism - Apache Maven
Dependency mediation - this determines what version of an artifact will be chosen when multiple versions are encountered as dependencies. Maven ...
Read more >
Dependency Management — Dataverse.org
When declaring a direct dependency with its version managed by <dependencyManagement> , a BOM or parent POM, you may not provide one unless...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found