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
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>
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'
}