{"id":43786097,"url":"https://github.com/coditory/gradle-manifest-plugin","last_synced_at":"2026-02-05T19:04:03.316Z","repository":{"id":54328583,"uuid":"250088548","full_name":"coditory/gradle-manifest-plugin","owner":"coditory","description":"Gradle plugin that generates project metadata to META-INF/MANIFEST.MF","archived":false,"fork":false,"pushed_at":"2025-08-14T22:12:11.000Z","size":331,"stargazers_count":19,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-15T00:12:49.603Z","etag":null,"topics":["gradle-plugin","manifest","metadata"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/coditory.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["coditory"]}},"created_at":"2020-03-25T20:51:08.000Z","updated_at":"2025-08-14T22:10:01.000Z","dependencies_parsed_at":"2023-10-17T04:30:53.198Z","dependency_job_id":"7e5d44ed-ba22-4798-8662-828e534b1bc1","html_url":"https://github.com/coditory/gradle-manifest-plugin","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/coditory/gradle-manifest-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-manifest-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-manifest-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-manifest-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-manifest-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coditory","download_url":"https://codeload.github.com/coditory/gradle-manifest-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-manifest-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29130113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T18:55:47.139Z","status":"ssl_error","status_checked_at":"2026-02-05T18:55:04.010Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gradle-plugin","manifest","metadata"],"created_at":"2026-02-05T19:04:03.245Z","updated_at":"2026-02-05T19:04:03.296Z","avatar_url":"https://github.com/coditory.png","language":"Kotlin","readme":"# Manifest Gradle Plugin\n\n[![Build](https://github.com/coditory/gradle-manifest-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/coditory/gradle-manifest-plugin/actions/workflows/build.yml)\n[![Coverage](https://codecov.io/gh/coditory/gradle-manifest-plugin/branch/main/graph/badge.svg)](https://codecov.io/gh/coditory/gradle-manifest-plugin)\n[![Gradle Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/com.coditory.manifest)](https://plugins.gradle.org/plugin/com.coditory.manifest)\n\n\n**Single responsibility** gradle plugin for generating project metadata\nto [jar manifest file](https://docs.oracle.com/javase/tutorial/deployment/jar/manifestindex.html).\n\n- Runs `manifest` task\n  after [`processResources`](https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_tasks)\n- `manifest` task creates manifest file in `build/resources/main/META-INF/MANIFEST.MF`\n\n## Installing the plugin\n\nAdd to your `build.gradle.kts`:\n\n```gradle\nplugins {\n  id(\"com.coditory.manifest\") version \"1.1.0\"\n}\n```\n\n## Generated manifest\n\nSample `MANIFEST.MF` generated for default configuration:\n\n```\nManifest-Version: 1.0\nMain-Class: com.coditory.Application\nImplementation-Title: sample-project\nImplementation-Group: com.coditory\nImplementation-Version: 0.0.1-SNAPSHOT\nBuilt-By: john.doe\nBuilt-Host: john-pc\nBuilt-Date: 2020-03-25T20:46:59Z\nBuilt-OS: Linux 4.15.0-91-generic amd64\nBuilt-JDK: 12.0.2 AdoptOpenJDK\nSCM-Repository: git@github.com:coditory/gradle-manifest-plugin.git\nSCM-Branch: refs/heads/master\nSCM-Commit-Message: Very important commit\nSCM-Commit-Hash: ef2c3dcabf1b0a87a90e098d1a6f0341f0ae1adf\nSCM-Commit-Author: John Doe \u003cjohn.doe@acme.com\u003e\nSCM-Commit-Date: 2020-03-24T19:46:03Z\n```\n\n## Usage\n\nThis plugin automatically adds metadata to manifest file after processResources. There is nothing you need to do.\n\nFor debug purposes you can run `manifest` task with some flags:\n\n```sh\n# Generates manifest file to build/resources/main/META-INF/MANIFEST.MF\n./gradlew manifest\n\n# Generates manifest and prints its content\n./gradlew manifest --print\n\n# Generates manifest to src/main/resources/META-INF/MANIFEST.MF\n./gradlew manifest --main\n```\n\n## Overriding generated attributes\n\nTo disable or override generated manifest attributes configure the plugin in `build.gradle`\n\n```gradle\nmanifest {\n    buildAttributes = false\n    implementationAttributes = true\n    scmAttributes = false\n    attributes = [\n        \"Custom-1\": \"Custom-Value\",\n        \"Custom-2\": 123\n    ]\n}\n```\n\n## Generating classpath attribute\n\nTo generate class path attribute with all compile dependencies prefixed with a custom directory use `classpathPrefix`:\n\n```gradle\nmanifest {\n    classpathPrefix = \"my-jars\"\n}\n```\n\nSee Java tutorial\non [Adding Classes and Jars to Jar File's Classpath](https://docs.oracle.com/javase/tutorial/deployment/jar/downman.html)\n\n## Reading `MANIFEST.MF` from project\n\nTake a look at a [gradle-manifest-plugin-sample](https://github.com/coditory/gradle-manifest-plugin-sample).\nYou can copy [ManifestReader.java](https://github.com/coditory/gradle-manifest-plugin-sample/blob/master/src/main/java/com/coditory/sandbox/ManifestReader.java) (with [tests](https://github.com/coditory/gradle-manifest-plugin-sample/blob/master/src/test/groovy/com/coditory/sandbox/ManifestReaderTest.groovy)) to you own project.\n\nReading `MANIFEST.MF` is tricky. There can be multiple `MANIFEST.MF` files on the classpath that comes from libraries.\nTo read the correct `MANIFEST.MF` you need to filter them. Most often `Implementation-Title` is used to find the correct one.\n\n","funding_links":["https://github.com/sponsors/coditory"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditory%2Fgradle-manifest-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoditory%2Fgradle-manifest-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditory%2Fgradle-manifest-plugin/lists"}