{"id":15638379,"url":"https://github.com/manusa/gradle-api-maven-plugin","last_synced_at":"2026-02-17T07:40:34.516Z","repository":{"id":185634129,"uuid":"444310006","full_name":"manusa/gradle-api-maven-plugin","owner":"manusa","description":"Add any Gradle distribution as a dependency to your Maven project","archived":false,"fork":false,"pushed_at":"2025-01-21T08:39:45.000Z","size":147,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T06:11:28.299Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manusa.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":"2022-01-04T06:26:55.000Z","updated_at":"2025-01-21T08:39:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"da04be32-0314-4cd4-9a35-4b8500b473bf","html_url":"https://github.com/manusa/gradle-api-maven-plugin","commit_stats":null,"previous_names":["manusa/gradle-api-maven-plugin"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Fgradle-api-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Fgradle-api-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Fgradle-api-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Fgradle-api-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manusa","download_url":"https://codeload.github.com/manusa/gradle-api-maven-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248558453,"owners_count":21124289,"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-10-03T11:21:23.177Z","updated_at":"2026-02-17T07:40:29.468Z","avatar_url":"https://github.com/manusa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gradle API Maven Plugin\n\nMaven plugin that registers a Maven extension that will automatically add all Gradle dependencies for a given version to your Project.\n\nThis is especially useful since Gradle no longer publishes its artifacts to Maven Central.\n\n## Usage\n\nAdd a _fake_ dependency to your project with the version of Gradle you want to use.\n\n```xml\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003eorg.gradle\u003c/groupId\u003e\n    \u003cartifactId\u003egradle-all\u003c/artifactId\u003e\n    \u003cversion\u003e${version.gradle}\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\nAdd the plugin with the `extensions` option enabled.\n\n```xml\n\u003cbuild\u003e\n  \u003cplugins\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003ecom.marcnuri.plugins\u003c/groupId\u003e\n      \u003cartifactId\u003egradle-api-maven-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e0.0.6\u003c/version\u003e\n      \u003cextensions\u003etrue\u003c/extensions\u003e\n    \u003c/plugin\u003e\n  \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\n\u003e [!IMPORTANT]\n\u003e Please make sure to provide the `\u003cextensions\u003etrue\u003c/extensions\u003e` option for the plugin.\n\n\u003e [!NOTE]\n\u003e It's likely that you'll also need to add a dependency for `org.codehaus.groovy:groovy-all` to your project.\n\nWith these settings, you should now be able to import and make use of the Gradle API types.\n\n## Frequently Asked Questions (FAQ)\n\n### How to use behind an HTTPS proxy with authentication?\n\nYou can configure the proxy by passing the following properties to the Maven build:\n\n```shell\nmvn -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=8080 -Dhttps.proxyUser=proxyuser -Dhttps.proxyPassword=proxypass\n```\n\nIn addition, you can also leverage the `settings.xml` file to configure the proxy as you would do for Maven:\n\n```xml\n\u003csettings\u003e\n  \u003cproxies\u003e\n    \u003cproxy\u003e\n      \u003cid\u003eexample-proxy\u003c/id\u003e\n      \u003cactive\u003etrue\u003c/active\u003e\n      \u003cprotocol\u003ehttps\u003c/protocol\u003e\n      \u003chost\u003eproxy.example.com\u003c/host\u003e\n      \u003cport\u003e8080\u003c/port\u003e\n      \u003cusername\u003eproxyuser\u003c/username\u003e\n      \u003cpassword\u003eproxypass\u003c/password\u003e\n      \u003cnonProxyHosts\u003elocalhost|*.example.com\u003c/nonProxyHosts\u003e\n    \u003c/proxy\u003e\n  \u003c/proxies\u003e\n\u003c/settings\u003e\n```\n\n## Developing\n\n### Integration test\n\nThere are integration tests to verify that the plugin works as expected.\nThe tests rely on the Maven Invoker Plugin to run a Maven build with the plugin applied.\n\nYou can use the tests to debug the project in your IDE.\nStart the project compilation with the following command:\n```shell\nmvn -Pit-debug verify\n```\nThen, configure your IDE to perform a remote debug connection to port `8000`.\n\n### Release Process\n\n#### Release to Maven Central\n\nTo release a new version automatically:\n\n```shell\nmake release V=X.Y.Z VS=X.Y\n```\n- `V`: New version to release.\n- `VS`: New SNAPSHOT version for Maven.\n\nTo release a new version manually:\n\n1. Update the version in the `pom.xml` file.\n   ```shell\n   mvn versions:set -DnewVersion=X.Y.Z -DgenerateBackupPoms=false\n   ```\n2. Commit and tag the release with the  `pom.xml` version.\n   ```shell\n   git add .\n   git commit -m \"[RELEASE] vX.Y.Z released\"\n   git tag vX.Y.Z\n   git push origin vX.Y.Z\n   ```\n3. Update the version in the `pom.xml` file to the next snapshot version.\n   ```shell\n   mvn versions:set -DnewVersion=X.Y-SNAPSHOT -DgenerateBackupPoms=false\n   ```\n4. Commit the changes with the following message:\n   ```shell\n   git add .\n   git commit -m \"[RELEASE] v0.0.6 released, prepare for next development iteration\"\n   git push origin master\n   ```\n\n#### Create GitHub Release\n\nOnce the release is published to Maven Central, create a new [GitHub release](https://github.com/manusa/gradle-api-maven-plugin/releases/new) for the released tag.\n\n### License Headers\n\nWhenever a new file is created, the license header must be added. To add the license header to all files:\n\n```shell\nmake license\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanusa%2Fgradle-api-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanusa%2Fgradle-api-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanusa%2Fgradle-api-maven-plugin/lists"}