Skip to main content

ihub

Henry...Less than 1 minute

ihub

plugin description

ihuplugin is basic plugin to configurecomponent repositoryand some otherextension attributes, configuration andbuild.gradle.

InformationDescription
Plugin IDpub.ihub.plugin
Plugin NameBase Plugin
Plugin TypeProject[^Project]
Extension NameiHub
Plugin Dependenciesihub-git-hooks,ihub-bom,ihub-version

plugin functionality

  1. Configure Component Repository, repository detailsSee
  2. When the main project does not havejava-platformopen in new windowandversion-catalogopen in new windowplugins will importihub-bomplugins by default
  3. If the project contains a subproject, the subproject will also introduce this plugin

Extended Properties

ExtensionDescriptionDefaultExt[^Ext]Prj[^Prj]Sys[^Sys]Env[^Env]
mavenLocalEnabledEnable local repositoryfalse
mavenAliYunEnabledEnable Aliyun Proxy Repositoryfalse
mavenPrivateEnabledEnable private repository (Component Publish Repository)true
releaseRepoUrlOfficial Repository
snapshotRepoUrlSnapshot Repository
repoAllowInsecureProtocolWhether to allow the insecure protocol (whether http)false
repoIncludeGroupRepository contains groups (used to limit repository range)
repoIncludeGroupRegexRepository contains group regular (used to limit repository range).*
repoUsernameRepository Username
repoPasswordRepository Password
customizeRepoUrlCustom Repository
profileConfiguration files, multiple configurations are separated by commas, priority from right to left

Plugin Installation

Kotlin
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:

NameDescriptionUrl
ProjectDirsProject Local Component{rootProject.projectDir}/libs
MavenLocalLocal Repository{local}/.m2/repository
AliYunPublicAliyun Aggregate Repositoryhttps://maven.aliyun.com/repository/publicopen in new window
artifactUrls: https://repo1.maven.org/maven2open in new window
ReleaseRepoPrivate Release Repositoryhttps://repo.xxx.com/releaseopen in new window
SnapshotRepoPrivate Snapshot repositoryhttps://repo.xxx.com/snapshotopen in new window
CustomizeRepoCustom repositoryhttps://repo.xxx.com/repoopen in new window
MavenRepoMaven Central Repository