ihub
...Less than 1 minute
ihub
plugin description
ihu
plugin is basic plugin to configurecomponent repositoryand some otherextension attributes, configuration andbuild.gradle
.
Information | Description |
---|---|
Plugin ID | pub.ihub.plugin |
Plugin Name | Base Plugin |
Plugin Type | Project [^Project] |
Extension Name | iHub |
Plugin Dependencies | ihub-git-hooks,ihub-bom,ihub-version |
plugin functionality
- Configure Component Repository, repository detailsSee
- When the main project does not havejava-platformandversion-catalogplugins will import
ihub-bom
plugins by default - If the project contains a subproject, the subproject will also introduce this plugin
Extended Properties
Extension | Description | Default | Ext[^Ext] | Prj[^Prj] | Sys[^Sys] | Env[^Env] |
---|---|---|---|---|---|---|
mavenLocalEnabled | Enable local repository | false | ✔ | ✔ | ❌ | ❌ |
mavenAliYunEnabled | Enable Aliyun Proxy Repository | false | ✔ | ✔ | ✔ | ✔ |
mavenPrivateEnabled | Enable private repository (Component Publish Repository) | true | ✔ | ✔ | ✔ | ✔ |
releaseRepoUrl | Official Repository | ❌ | ✔ | ✔ | ❌ | ❌ |
snapshotRepoUrl | Snapshot Repository | ❌ | ✔ | ✔ | ❌ | ❌ |
repoAllowInsecureProtocol | Whether to allow the insecure protocol (whether http) | false | ✔ | ✔ | ❌ | ❌ |
repoIncludeGroup | Repository contains groups (used to limit repository range) | ❌ | ✔ | ✔ | ❌ | ❌ |
repoIncludeGroupRegex | Repository contains group regular (used to limit repository range) | .* | ✔ | ✔ | ❌ | ❌ |
repoUsername | Repository Username | ❌ | ✔ | ✔ | ✔ | ✔ |
repoPassword | Repository Password | ❌ | ✔ | ✔ | ✔ | ✔ |
customizeRepoUrl | Custom Repository | ❌ | ✔ | ✔ | ❌ | ❌ |
profile | Configuration files, multiple configurations are separated by commas, priority from right to left | ❌ | ❌ | ✔ | ✔ | ❌ |
Plugin Installation
Kotlin
plugins {
id("pub.ihub.plugin")
}
Groovy
plugins {
id 'pub.ihub.plugin'
}
Configuration Example
iHub.mavenLocalEnabled=true
iHub.mavenAliYunEnabled=true
Component Repository
Configure component warehouses for adaptation to the domestic network environment as follows:
Name | Description | Url |
---|---|---|
ProjectDirs | Project Local Component | {rootProject.projectDir}/libs |
MavenLocal | Local Repository | {local}/.m2/repository |
AliYunPublic | Aliyun Aggregate Repository | https://maven.aliyun.com/repository/public artifactUrls: https://repo1.maven.org/maven2 |
ReleaseRepo | Private Release Repository | https://repo.xxx.com/release |
SnapshotRepo | Private Snapshot repository | https://repo.xxx.com/snapshot |
CustomizeRepo | Custom repository | https://repo.xxx.com/repo |
MavenRepo | Maven Central Repository |