#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
一行搞定开源库发布到 Maven Central
·
Johnson Lee
·
Oct. 7, 2021, midnight
Summary
发布过开源库的同学肯定深有感触,想要将一个开源库发布到 Maven Central 对于开发者来说并不简单,尤其是通过 Sonatype 来发布,需要满足一系列的条件,而且对于 Gradle 工程来说,尽管都是用 maven-publish 插件来进行发布,但不同的类型的工程,其发布所需的配置还有些不太一样,比如:Gradle Plugin__,__Androdi Library 和 __Java Library__,尤其是多模块的 Gradle 工程,要为每个模块写一堆看起来相似又不完全相同的 DSL 很是麻烦,而且 Gradle 的 DSL 对于新手来说,简直是一脸懵逼。 Sonatype Sonatype 提供了自动同步到 Maven Central 的功能,但想要往 Sonatype 上发布开源库,需要先要经过一系列的步骤: 申请账号 提交新建项目的 JIRA 工单 回复第 2 步提交的 JIRA 工单,证明 groupId 对应的域名空间是有管理权限的 生成 GPG 密钥 然后配置 Gradle 工程,保证上传的内容满足以下条件 源代码 JAR 文件 文件 Java...
Read full post on johnsonlee.io →
MORE POSTS LIKE THIS
In Search of a Compositional Theory of Self-Stabilization
Murat Demirbas ·
Sep 21, 2026
fault tolerance
metastability
Twenty-Five Years Upstream
Igalia ·
Sep 21, 2026
News
igalia
Sandboxing with minimal effort
YorickPeterse ·
Sep 21, 2026
Containerization
Application Security
What I believe about the future of software development
Thorsten Ball ·
Sep 20, 2026
automation
software development
From Spring Boot to Rust: Rewriting a Live Marketplace
özkan pakdil ·
Sep 21, 2026
Software Architecture
deployment-pipelines
Danylo Piliaiev: Turnip’s evolution over the years, supporting flat-screen and VR games
Blogs Igalia ·
Sep 21, 2026
Open Source
game development
Discover more posts →
AUTHOR
Advertise
Sponsor diff.blog
Put your product in front of developers who read and write about their craft. One exclusive sponsor at a time.
Become a sponsor →
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.