{"id":22326520,"url":"https://github.com/thecodesmith/artifactory-badges","last_synced_at":"2025-06-13T06:02:19.646Z","repository":{"id":84776692,"uuid":"250078544","full_name":"thecodesmith/artifactory-badges","owner":"thecodesmith","description":"Pretty artifact version badges for Artifactory","archived":false,"fork":false,"pushed_at":"2020-05-06T21:04:44.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T07:40:35.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodesmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-25T20:00:05.000Z","updated_at":"2023-10-24T19:45:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2a47917-92ec-42b1-84b9-06bfa91b9763","html_url":"https://github.com/thecodesmith/artifactory-badges","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodesmith%2Fartifactory-badges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodesmith%2Fartifactory-badges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodesmith%2Fartifactory-badges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodesmith%2Fartifactory-badges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodesmith","download_url":"https://codeload.github.com/thecodesmith/artifactory-badges/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245598316,"owners_count":20641884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T02:18:00.625Z","updated_at":"2025-03-26T06:13:23.680Z","avatar_url":"https://github.com/thecodesmith.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Artifactory Badge Service\n\n_Pretty artifact version badges for Artifactory_\n\n## Features\n\nThis microservice uses the [Artifactory REST\nAPI](https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-ArtifactLatestVersionSearchBasedonLayout)\nand [shields.io](https://shields.io) to generate version badges that look like\nthis: ![version badge example](https://img.shields.io/badge/version-1.2.3-blue).\n\nThe Artifactory API is used to find the latest version of a specified artifact,\nand [shields.io](https://shields.io) generates the badge in SVG format.\n\n## Usage\n\nTo run the service using the Docker image:\n\n    docker run \\\n        -p 8080:8080 \\\n        -e ARTIFACTORY_HOST=\u003cyour artifactory server\u003e \\\n        -e ARTIFACTORY_PORT=\u003cport\u003e \\\n        -e ARTIFACTORY_USER=\u003cuser\u003e \\\n        -e ARTIFACTORY_TOKEN=\u003ctoken\u003e \\\n        thecodesmith/artifactory-badges\n\nThen test it using the `/badge` endpoint on badge service API:\n\n    curl localhost:8080/badge/\u003crepo\u003e/\u003cgroupId\u003e/\u003cartifactId\u003e\n\nTo use the service in a Markdown document, use this syntax:\n\n    ![Latest Version](http://localhost:8080/badge/\u003crepo\u003e/\u003cgroupId\u003e/\u003cartifactId\u003e)\n\n## Development\n\n### Run the app\n\nRun the project via Gradle:\n\n    ./gradlew run\n\nBuild the app (compile and run tests):\n\n    ./gradlew build\n\nCreate a runnable fat jar with all dependencies:\n\n    ./gradlew shadowJar\n\nThe jar will be in `build/libs/artifactory-badges-\u003cversion\u003e-all.jar` and can be\nrun like this:\n\n    java -jar build/libs/artifactory-badges-\u003cversion\u003e-all.jar\n\n### Configuration\n\nSet the Artifactory connection properties using one of Micronaut's\n[configuration methods](https://docs.micronaut.io/latest/guide/config.html). The\nsimplest way is with environment variables or system properties. Below are the connection properties which need to be configured.\n\nSystem Property     | Environment Variable | Example\n---------------     | -------------------- | -------\n`artifactory.host`  | `ARTIFACTORY_HOST`   | `https://artifactory.company.com`\n`artifactory.port`  | `ARTIFACTORY_PORT`   | `443`\n`artifactory.user`  | `ARTIFACTORY_USER`   | `my-service-account`\n`artifactory.token` | `ARTIFACTORY_TOKEN`  | `iOiIyIiwid...`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodesmith%2Fartifactory-badges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodesmith%2Fartifactory-badges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodesmith%2Fartifactory-badges/lists"}