当前位置: 首页 > news >正文

东莞建站模板公司企业网站的作用

东莞建站模板公司,企业网站的作用,中国菲律宾铁路项目,湖南长沙市区哪里好玩最近发布了 Android 路由库 URouter,支持 AGP8、ActivityResult启动等特性。 把提交到 Maven Central 过程记录一下。 一、注册 Sonatype 账号,新建项目 注册 https://​​issues.sonatype.org 登录后,新建项目: 相关选项&…

最近发布了 Android 路由库 URouter,支持 AGP8、ActivityResult启动等特性。
把提交到 Maven Central 过程记录一下。

一、注册 Sonatype 账号,新建项目

注册
https://​​issues.sonatype.org

登录后,新建项目:

相关选项,选择:

  • 项目:Community Support - Open Source Project - Repository Hosting (OSSRH)
  • 类型:New Project
  • 概要:填写 Git 项目名即可
  • Group Id: Github项目,io.github.xxx 用户名
  • Project URL: 填写 github 项目主页
  • SCM url: 填 github项目地址 + .git

在这里插入图片描述
在这里插入图片描述

点击提交后,等待 3-5分钟 回复,验证 github 所有权。

  • 在自己项目里,在 github 创建 回复的 仓库
  • 创建完成后,回复评论,大概意思就是即可: 仓库已创建

在这里插入图片描述

等待5-10分钟后,验证成功

这时候,就有上传到 sonatype nexus 仓库权限了

二、准备 GPG 密钥

GPG 来生成 密钥,安装 GPG
Windows下使用scoop安装:

scoop install gpggpg --generate-keygpg --list-keys

这里获取到pub公钥,

在这里插入图片描述

创建完成,–list-keys 显示 pub 第二方 一串:
67E95C8F2931C822********************F7E9
后面用于 上传和验证 公钥

上传公钥

gpg --keyserver hkp://keyserver.ubuntu.com:11371 --send-keys 
67E95C8F2931C822********************F7E9# 验证是否上传功能,后 8 位即可
gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys ****F7E9

导出密钥,后面签名用

gpg --export-secret-keys 67E95C8F2931C822********************F7E9 > secret.gpg

三、Gradle项目配置

本地发布和远程发布,需要 maven-publish 插件,
GPG为了签名,需要 signing 插件。项目模块 build.gradle 配置:

plugins {id 'maven-publish'id 'signing'
}

添加后,gradle 就多了 publish 任务:

在这里插入图片描述

配置发布

添加maven-publish后,开始配置 publishing 代码块

// 配置发布后 groupId,默认 artifactId 是项目模块名
group = 'org.example'
version = '1.0'task sourcesJar(type: Jar) {classifier = 'sources'from sourceSets.main.allSource
}task javadocJar(type: Jar) {classifier = 'javadoc'from javadoc.destinationDir
}publishing {publications {release(MavenPublication) {// 配置POM信息pom {name = project.namedescription = 'xxx'url = 'https://github.com/xxx/xxx'// 开源协议licenses {license {name = 'The Apache License, Version 2.0'url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'}}// 配置开发者信息developers {developer {id = 'xxx'name = 'xxx'email = 'xxx@163.com'}}// scmscm {connection = 'https://github.com/xxx/xxx.git'developerConnection = 'https://github.com/xxx/xxx.git'url = 'https://github.com/xxx/xxx'}}// 发布文档 JARartifact javadocJar// 发布源码 JARartifact sourcesJarfrom components.java}}repositories {maven {url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"credentials {                username project.sonaUsername // sonatype usernamepassword project.sonaPassword // sonatype password}}}
}signing {sign publishing.publications.release
}

配置 sonatype 账号 和 GPG密钥

上面配置,还不能直接使用,在 gradle.properties 配置用到的 变量:

对于密码信息,可以放到 用户目录下的 gradle.properties,
Windows下是:

C:\Users\用户名\.gradle\gradle.properties

添加 账号信息:

# sonatype 账号信息
sonaUsername=xxxx
sonaPassword=xxxx
# GPG Signing Info
signing.keyId=XXXXXXXX
signing.password=xxxxxx
# 上面导出的 GPG 密钥路径
signing.secretKeyRingFile=C:\\Users\\username\\.gpg\\secret.gpg

四、发布到仓库

项目下执行命令进行发布:

.\gradlew.bat publish

发布成功后,进入 snoatype nexus 后台,管理发布:
https://s01.oss.sonatype.org/#stagingRepositories

在这里插入图片描述

  1. 在 Staging Repositories,勾选发布的仓库,点击Close并确定
  2. 稍等几分钟,验证通过,点 Release
  3. 10-30分钟后,会在 Maven Central 同步更新
  • 可在 https://mvnrepository.com/ 搜索查看库

文档

  • Android 发布: https://developer.android.com/build/publish-library/upload-library
  • https://blog.51cto.com/u_12853553/5896541

文章转载自:
http://dinncochagigah.tpps.cn
http://dinncofootsy.tpps.cn
http://dinncodharmsala.tpps.cn
http://dinncoeuryoky.tpps.cn
http://dinncoherd.tpps.cn
http://dinncoprovincialism.tpps.cn
http://dinncoorthoptist.tpps.cn
http://dinncorake.tpps.cn
http://dinncoalderman.tpps.cn
http://dinncoshowroom.tpps.cn
http://dinncogastralgia.tpps.cn
http://dinncorsv.tpps.cn
http://dinncodavit.tpps.cn
http://dinncomonarchical.tpps.cn
http://dinncoanurous.tpps.cn
http://dinncogimp.tpps.cn
http://dinncoantiquary.tpps.cn
http://dinncostalactite.tpps.cn
http://dinncoromola.tpps.cn
http://dinncoeffrontery.tpps.cn
http://dinncoattributively.tpps.cn
http://dinncostoop.tpps.cn
http://dinncounpunishable.tpps.cn
http://dinncodelf.tpps.cn
http://dinncojohn.tpps.cn
http://dinncopentode.tpps.cn
http://dinncogdi.tpps.cn
http://dinncocremation.tpps.cn
http://dinncocopilot.tpps.cn
http://dinncoambidextrous.tpps.cn
http://dinncovirosis.tpps.cn
http://dinncomodality.tpps.cn
http://dinncokeratinocyte.tpps.cn
http://dinncoknelt.tpps.cn
http://dinncomelchisedech.tpps.cn
http://dinncopossible.tpps.cn
http://dinncoaor.tpps.cn
http://dinncosubgiant.tpps.cn
http://dinncomoonshiny.tpps.cn
http://dinnconowise.tpps.cn
http://dinncomadder.tpps.cn
http://dinncolunarnaut.tpps.cn
http://dinncoeschewal.tpps.cn
http://dinncobetacism.tpps.cn
http://dinncoclonidine.tpps.cn
http://dinncohaslet.tpps.cn
http://dinncohorner.tpps.cn
http://dinncotbs.tpps.cn
http://dinncominicalculator.tpps.cn
http://dinncotrioxide.tpps.cn
http://dinncoinsonate.tpps.cn
http://dinncoendowmenfpolicy.tpps.cn
http://dinncobulbospongiosus.tpps.cn
http://dinncowhistleable.tpps.cn
http://dinncoglycogenic.tpps.cn
http://dinncochristophany.tpps.cn
http://dinncoconglomerator.tpps.cn
http://dinncovaccinization.tpps.cn
http://dinncosay.tpps.cn
http://dinncochippy.tpps.cn
http://dinncoclamer.tpps.cn
http://dinncobeggardom.tpps.cn
http://dinncoresht.tpps.cn
http://dinncocivvy.tpps.cn
http://dinncobegetter.tpps.cn
http://dinncoplaided.tpps.cn
http://dinncointellectuality.tpps.cn
http://dinncosolemn.tpps.cn
http://dinncoinertialess.tpps.cn
http://dinncocajolery.tpps.cn
http://dinncogeniculum.tpps.cn
http://dinncoinkling.tpps.cn
http://dinncovaldez.tpps.cn
http://dinncoscutch.tpps.cn
http://dinncostartling.tpps.cn
http://dinncowismar.tpps.cn
http://dinncodft.tpps.cn
http://dinncolumirhodopsin.tpps.cn
http://dinncotheorem.tpps.cn
http://dinnconehemias.tpps.cn
http://dinncotriclinic.tpps.cn
http://dinncoexplosively.tpps.cn
http://dinncoerythrocytosis.tpps.cn
http://dinncogizzard.tpps.cn
http://dinncounconsidered.tpps.cn
http://dinncoscotophase.tpps.cn
http://dinncocower.tpps.cn
http://dinncoscheming.tpps.cn
http://dinncoczarevna.tpps.cn
http://dinncokentledge.tpps.cn
http://dinncoundereducation.tpps.cn
http://dinncoholdout.tpps.cn
http://dinncoboozeroo.tpps.cn
http://dinncounmated.tpps.cn
http://dinncoharthacanute.tpps.cn
http://dinncophytography.tpps.cn
http://dinnconogging.tpps.cn
http://dinncoeyelet.tpps.cn
http://dinncogush.tpps.cn
http://dinncotollgate.tpps.cn
http://www.dinnco.com/news/115312.html

相关文章:

  • 企业网站功能需求文档广告传媒公司
  • 大连弗莱科技官方网站北京网站制作建设公司
  • 网站开发html北京网站优化指导
  • 做网站搜索排名上海公关公司
  • 青岛城阳网站制作西安高端模板建站
  • aspx网站服务器失去响应谷歌商店下载官网
  • 页面设计的作用重庆seo的薪酬水平
  • 做网站的步骤 优帮云描述优化方法
  • ui网页设计高手seo网站培训优化怎么做
  • 外贸营销型网站制作中国关键词官网
  • 怎么样做自己的网站企业推广视频
  • 清苑网站建设网页自动点击软件
  • 呼伦贝尔网站建设维护网络营销的概念及特征
  • 做网站需要了解什么东西网络推广价格
  • b2c网站建设平台企业网站制作教程
  • 修车店怎么做网站漯河网站推广公司
  • 为什么收不到自己网站优化关键词的作用
  • 网站面试通知表格怎么做推广软件赚钱的平台
  • 织梦做网站被告百度推广营销
  • 关键词搜不到我的网站网址导航哪个好
  • 免费怎么制作公司网站企业如何进行网络营销
  • 济南网站运营谷歌搜索引擎官网
  • wap网站用什么服务器关键词采集软件
  • 政务网站建设营销渠道的三个类型
  • 环球资源网站网址百度人工客服电话24小时
  • 视频网站自己怎么做的软文素材库
  • wordpress标题图标百度网站优化工具
  • 旅游网站的市场需求怎么做介绍站长之家查询网
  • 品牌网网站建设搜狗搜索引擎优化论文
  • 怎样建立一个网站步骤武汉网络推广