{"id":19463752,"url":"https://github.com/adamko-dev/dev-publish-plugin","last_synced_at":"2026-02-17T02:42:43.898Z","repository":{"id":159873279,"uuid":"619933823","full_name":"adamko-dev/dev-publish-plugin","owner":"adamko-dev","description":"Dev Publish Plugin :: publish Gradle projects for local testing","archived":false,"fork":false,"pushed_at":"2025-03-29T11:17:50.000Z","size":340,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T12:23:38.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/adamko-dev.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":"2023-03-27T17:46:41.000Z","updated_at":"2025-03-29T11:17:02.000Z","dependencies_parsed_at":"2023-11-19T03:22:34.144Z","dependency_job_id":"66fb3f9c-49a2-4ef9-8639-51e006b1523e","html_url":"https://github.com/adamko-dev/dev-publish-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamko-dev%2Fdev-publish-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamko-dev%2Fdev-publish-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamko-dev%2Fdev-publish-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamko-dev%2Fdev-publish-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamko-dev","download_url":"https://codeload.github.com/adamko-dev/dev-publish-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250782304,"owners_count":21486432,"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-11-10T18:12:03.356Z","updated_at":"2026-02-17T02:42:43.888Z","avatar_url":"https://github.com/adamko-dev.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub license](https://img.shields.io/github/license/adamko-dev/dev-publish-plugin?style=for-the-badge)](https://github.com/adamko-dev/dev-publish-plugin/blob/main/LICENSE)\n[![Gradle Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/dev.adamko.dev-publish?logo=gradle\u0026style=for-the-badge)](https://plugins.gradle.org/plugin/dev.adamko.dev-publish)\n\n# Dev Publish Gradle Plugin\n\n[Dev Publish](https://github.com/adamko-dev/dev-publish-plugin) is a [Gradle](https://gradle.org/) plugin\nthat publishes subprojects to a project-local directory, ready for functional testing.\n\n### Why Dev Publish?\n\n* Create a project local repository for testing only your publications\n* Avoid using Maven Local\n  (see: [*\"you should avoid adding mavenLocal() as a\n  repository\"*](https://docs.gradle.org/current/userguide/supported_repository_types.html#sec:case-for-maven-local))\n* Perfect for testing Gradle plugins and\n  [Gradle Plugin Marker Artifacts](https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_markers)\n  (instead of using [TestKit + `withRuntimeClasspath()`](https://docs.gradle.org/8.0/userguide/test_kit.html#sub:test-kit-automatic-classpath-injection))\n* Avoids unnecessary re-publishing (even if using SNAPSHOT versions)\n* Compatible with Gradle Build and Configuration cache\n\n### Quick Start\n\nIf a subproject already publishes Maven artifacts, then apply DevPublish using the plugin ID `dev.adamko.dev-publish`\nand [the latest version](https://plugins.gradle.org/plugin/dev.adamko.dev-publish).\n\n```kotlin\n// build.gradle.kts\n\nplugins {\n  `maven-publish`\n  id(\"dev.adamko.dev-publish\") version \"$devPublishPluginVersion\u003e\"\n}\n```\n\nAny project can depend on publications from other subprojects\n\n```kotlin\n// build.gradle.kts\nplugins {\n  id(\"dev.adamko.dev-publish\")\n}\n\ndependencies {\n  devPublication(project(\":some-other-subproject\"))\n}\n```\n\n#### Cross-project\n\nDev Publish is great for cross-project publications.\n\nGiven multiple subprojects:\n\n```text\n.\n└── root/\n    ├── my-java-library/    \n    │   └── build.gradle.kts\n    │\n    ├── my-kotlin-application/\n    │   └── build.gradle.kts\n    │\n    └── functional-tests/\n        └── build.gradle.kts\n```\n\nBoth the 'Java library' and 'Kotlin application' subprojects publish using the\n[Maven Publish Plugin](https://docs.gradle.org/current/userguide/publishing_maven.html).\n\n```kotlin\n// my-java-library/build.gradle.kts\nplugins {\n  `java-library`\n  `maven-publish`\n  id(\"dev.adamko.dev-publish\")\n}\n```\n\n```kotlin\n// my-kotlin-application/build.gradle.kts\nplugins {\n  application\n  kotlin(\"jvm\")\n  `maven-publish`\n  id(\"dev.adamko.dev-publish\")\n}\n```\n\nThe 'functional-tests' subproject can aggregate the publications and collect them into a\nproject-local directory, ready for testing.\n\n```kotlin\n// functional-tests/build.gradle.kts\nplugins {\n  id(\"dev.adamko.dev-publish\")\n}\n\ndependencies {\n  devPublication(project(\":my-java-library\"))\n  devPublication(project(\":my-kotlin-application\"))\n}\n\ntasks.test {\n  // will publish all publications from \n  // :my-java-library and :my-kotlin-application\n  // into the `devPublish.devMavenRepo` directory\n  dependsOn(tasks.updateDevRepo)\n\n  // provide devMavenRepo for use in tests\n  environment(\n    \"MAVEN_DEV_REPO\" to devPublish.devMavenRepo.asFile.get().invariantSeparatorsPath\n  )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamko-dev%2Fdev-publish-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamko-dev%2Fdev-publish-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamko-dev%2Fdev-publish-plugin/lists"}