ihub-publish
...大约 1 分钟
ihub-publish
插件说明
ihub-publish
插件用于集成组件发布相关插件环境,配置发布仓库以及其他默认配置。
信息 | 描述 |
---|---|
插件ID | pub.ihub.plugin.ihub-publish |
插件名称 | 发布插件 |
插件类型 | Project [1] |
扩展名称 | iHubPublish |
插件依赖 | ihub、maven-publish、io.freefair.github.pom(OnGithub ) |
扩展属性
Extension | Description | Default | Ext[2] | Prj[3] | Sys[4] | Env[5] |
---|---|---|---|---|---|---|
publishNeedSign | 组件发布是否需要签名 | false | ✔ | ✔ | ✔ | ❌ |
signingKeyId | 签名key | ❌ | ✔ | ✔ | ✔ | ✔ |
signingSecretKey | 签名密钥 | ❌ | ✔ | ✔ | ✔ | ✔ |
signingPassword | 签名密码 | ❌ | ✔ | ✔ | ✔ | ✔ |
publishSources | 是否发布源码 | true | ✔ | ✔ | ✔ | ❌ |
publishDocs | 是否发布文档 | false | ✔ | ✔ | ✔ | ❌ |
applyGithubPom | 是否应用GithubPom插件 | false | ✔ | ✔ | ✔ | ❌ |
插件安装
Kotlin
plugins {
id("pub.ihub.plugin.ihub-publish")
}
Groovy
plugins {
id 'pub.ihub.plugin.ihub-publish'
}
配置示例
Kotlin
iHubPublish {
publishNeedSign.set(true)
publishDocs.set(true)
}
Groovy
iHubPublish {
publishNeedSign = true
publishDocs = true
}
默认配置
提示
dependencies {
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
}