#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
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
Rogue OpenAI agents using public wikis as message boards
Andy Baio ·
Sep 4, 2026
links
openai
The revolt of the reader
The Observation Deck ·
Sep 5, 2026
LLM-authored content
Reader trust
Latent Powers
Armin Ronacher ·
Sep 5, 2026
carplay
Firmware Modification
Decoding the NEC V20 Microcode
Martypc Blogspot ·
Sep 3, 2026
Microcode Extraction
NEC V20 CPU
Rebuilding a 1995 GPS Time Server so I don't get Telstra'd
Jeff Geerling ·
Sep 4, 2026
gps
NTP Server
we have a year to fix security everywhere
jyn514 ·
Sep 4, 2026
Security
Machine Learning
Discover more posts →
AUTHOR
Sponsored
Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google