Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.24 KB

README.md

File metadata and controls

46 lines (40 loc) · 1.24 KB

Gear version auto-manage

Why you need it?

After Mar 27, 2018. All of Gear release was definned by a kind of version of Gear-dependencies. If you use multi-Gear jar in your system, use this pom which can avoid mix-version of Gear family jars in you projection

How to use it

For Maven

Adding these in your maven pom.xml file It can manage Gear version automaticly. You will do not worry about the Gear version control in the projection.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.github.Andy-Shao</groupId>
      <artifactId>Gear-dependencies</artifactId>
      <version>${your-version}</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>

For Gradle

You should use io.spring.dependency-management plugin. The basic build.gradle demo is that:

plugins {
  id 'io.spring.dependency-management' version '1.0.4.RELEASE'
  id 'java'
}

repositories {
  mavenCentral()
}

dependencyManagement {
  imports {
    mavenBom 'com.github.Andy-Shao:Gear-dependencies:1.0.1.RELEASE'
  }
}

dependencies {
  compile 'com.github.Andy-Shao:Gear'
}