GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - corgibytes/dependency-history-maven: Library for retrieving release history for a package that's published in a Maven repository

BranchesTags
Open more actions menu

Latest commit

 

History

142 Commits
142 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
gradle
gradle
 
 
src
src
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 
version.properties
version.properties
 
 

Repository files navigation

Dependency History Maven

This project is a small library that knows how to retrieve the release history for a package that is published in a Maven repository.

Usage

Gradle

dependencies {
    implementation("com.corgibytes:dependency-history-maven:2.0.+")
}

Maven

<dependencies>
    <dependency>
        <groupId>com.corgibytes</groupId>
        <artifactId>dependency-history-maven</artifactId>
        <version>[2.0.0,)</version>
    </dependency>
</dependencies>

Example

val service = ReleaseHistoryService()

val actualResults = service.getVersionHistory("org.apache.maven", "apache-maven")

println(actualResults["2.0.10"])
// outputs: 2009-02-10T02:57:59Z

Changing the Maven repository

By default the ReleaseHistoryService uses Maven Central to retrieve release history information. To use another repository pass the value into the constructor.

For example, here's how to create an instance of the service that communicates with the repository used by the Spring project.

val service = ReleaseHistoryService("https://repo.spring.io/artifactory/release/")

⚠️ When you specify an alternative repository, Maven Central will still be contacted to retrieve the information that it has for the package in question. This works around issues with some Maven repository proxies not preserving release history information. For each package version that is queried, the oldest date will be used.

About

The library is used by the Freshli family of projects to provide support for working with Maven repositories.

About

Library for retrieving release history for a package that's published in a Maven repository

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.