RepositoryGroovy
Codearte

Codearte/gradle-nexus-staging-plugin

Automatize releasing Gradle projects to Maven Central.

175sao
23fork
10issue
3lượt xem

🚀 Tự động hóa phát hành Gradle lên Maven Central

Đóng và phát hành repository chỉ bằng một lệnh Gradle, không cần truy cập Nexus GUI.

Gradle Nexus Staging plugin (io.codearte.nexus-staging) cung cấp các task Gradle để đóng (close) và phát hành (release) các repository đã được tải lên Sonatype OSSRH (Open Source Software Repository Hosting). Dự án giúp tự động hóa toàn bộ quy trình phát hành lên Maven Central mà không cần thao tác thủ công qua giao diện web của Nexus.

✨ Điểm nổi bật

  • Tự động hóa toàn bộ quy trình: Đóng và phát hành repository chỉ bằng một lệnh ./gradlew closeAndReleaseRepository.
  • Hỗ trợ cấu hình đa dự án: Chỉ cần áp dụng plugin ở dự án gốc, tất cả module con đều được xử lý.
  • Hỗ trợ cú pháp plugins {}: Áp dụng plugin thông qua khối plugins trong build.gradle một cách đơn giản.
  • Cơ chế retry tích hợp: Tự động thử lại khi gọi API Nexus nếu quá trình đóng hoặc phát hành chưa hoàn tất.
  • Tương thích với nhiều plugin đăng ký: Hoạt động cùng với maven, maven-publish hoặc nexus plugin.
  • Task chẩn đoán: getStagingProfile giúp lấy ID của staging profile để cấu hình chính xác.

💡 Vì sao đáng chú ý

Plugin này giúp giảm đáng kể công sức thủ công trong quy trình phát hành phần mềm lên Maven Central, đặc biệt hữu ích trong môi trường CI/CD như Travis CI. Tuy nhiên, dự án hiện đã ở chế độ bảo trì và khuyến nghị chuyển sang gradle-nexus-publish-plugin – giải pháp thế hệ mới kết hợp cả hai bước đăng ký và phát hành.


#Gradle #Nexus #MavenCentral #CI-CD #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJava
gocd/gocd

GoCD - Continuous Delivery server main repository

7.4k
Oct 16, 2026
RepositoryKotlin
GradleUp/shadow

Gradle plugin for creating fat/uber JARs, transforming files, relocating packages, and optimizing with R8/ProGuard. The Gradle counterpart to Maven Shade Plugin.

4.2k
Oct 20, 2026
RepositoryGroovy
ihub-pub/plugins

A set of Gradle plugins that greatly simplify project management / 一套极大简化项目管理的Gradle插件集

706
Oct 16, 2026
RepositoryGroovy
ansible-ThoTeam/nexus3-oss

Ansible role to install and provision sonatype nexus3-oss

302
Jul 2, 2026
RepositoryGo
harness/harness

Harness Open Source is an end-to-end developer platform with Source Control Management, CI/CD Pipelines, Hosted Developer Environments, and Artifact Registries.

38.7k
Oct 23, 2026
RepositoryJava
jenkinsci/jenkins

Jenkins automation server

26.7k
Oct 25, 2026
RepositoryGo
argoproj/argo-cd

Declarative Continuous Deployment for Kubernetes

24.5k
Oct 26, 2026
RepositoryGo
concourse/concourse

Concourse is a container-based automation system written in Go. It's mostly used for CI/CD.

7.9k
Oct 26, 2026
RepositoryPython
Flagsmith/flagsmith

Flagsmith is an open-source feature flag platform with remote config, experimentation, and self-hosted or cloud deployment options.

6.6k
Oct 20, 2026