|
@@ -1,19 +1,10 @@
|
|
|
import java.text.SimpleDateFormat
|
|
|
|
|
|
-buildscript {
|
|
|
- repositories {
|
|
|
- maven { url "https://maven.aliyun.com/nexus/content/groups/public" }
|
|
|
- maven { url "https://maven.aliyun.com/nexus/content/repositories/gradle-plugin" }
|
|
|
- mavenCentral()
|
|
|
- maven { url "https://plugins.gradle.org/m2/" }
|
|
|
- }
|
|
|
-
|
|
|
- dependencies {
|
|
|
- //noinspection DifferentKotlinGradleVersion
|
|
|
- classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72'
|
|
|
- classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.15.0"
|
|
|
- }
|
|
|
+allprojects {
|
|
|
+ group = 'com.baomidou'
|
|
|
+ version = "3.4.1"
|
|
|
}
|
|
|
+
|
|
|
ext {
|
|
|
configuration = [
|
|
|
javaVersion = JavaVersion.VERSION_1_8
|
|
@@ -26,7 +17,7 @@ ext {
|
|
|
springVersion = '5.2.8.RELEASE',
|
|
|
springBootVersion = '2.3.2.RELEASE',
|
|
|
jsqlparserVersion = '3.2',
|
|
|
- junitVersion = '5.6.2',
|
|
|
+ junitVersion = '5.7.0',
|
|
|
]
|
|
|
|
|
|
lib = [
|
|
@@ -45,7 +36,6 @@ ext {
|
|
|
"spring-aop" : "org.springframework:spring-aop:${springVersion}",
|
|
|
"aspectjrt" : "org.aspectj:aspectjrt:1.9.6",
|
|
|
"cglib" : "cglib:cglib:3.3.0",
|
|
|
- "lombok" : "org.projectlombok:lombok:1.18.12",
|
|
|
"imadcn" : "com.imadcn.framework:idworker:1.5.0",
|
|
|
|
|
|
"javax.servlet-api" : "javax.servlet:javax.servlet-api:4.0.1",
|
|
@@ -56,13 +46,12 @@ ext {
|
|
|
"mybatis-spring-boot-starter": "org.mybatis.spring.boot:mybatis-spring-boot-starter:${mybatisSpringBootStarterVersion}",
|
|
|
//test
|
|
|
"spring-test" : "org.springframework:spring-test:${springVersion}",
|
|
|
- "assertj-core" : "org.assertj:assertj-core:3.16.1",
|
|
|
- "junit-jupiter-api" : "org.junit.jupiter:junit-jupiter-api:${junitVersion}",
|
|
|
- "junit-jupiter-engine" : "org.junit.jupiter:junit-jupiter-engine:${junitVersion}",
|
|
|
- "fastjson" : "com.alibaba:fastjson:1.2.73",
|
|
|
- "jackson" : "com.fasterxml.jackson.core:jackson-databind:2.11.1",
|
|
|
+ "assertj-core" : "org.assertj:assertj-core:3.18.0",
|
|
|
+ "junit-jupiter" : "org.junit.jupiter:junit-jupiter:${junitVersion}",
|
|
|
+ "fastjson" : "com.alibaba:fastjson:1.2.75",
|
|
|
+ "jackson" : "com.fasterxml.jackson.core:jackson-databind:2.11.3",
|
|
|
"gson" : "com.google.code.gson:gson:2.8.6",
|
|
|
- "lagarto" : "org.jodd:jodd-lagarto:5.1.5",
|
|
|
+ "lagarto" : "org.jodd:jodd-lagarto:6.0.2",
|
|
|
//datasource
|
|
|
"p6spy" : "p6spy:p6spy:3.9.1",
|
|
|
"sqlserver" : "com.microsoft.sqlserver:sqljdbc4:4.0",
|
|
@@ -86,23 +75,33 @@ ext {
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-allprojects {
|
|
|
- group = 'com.baomidou'
|
|
|
- version = "3.4.0.2-SNAPSHOT"
|
|
|
-}
|
|
|
-
|
|
|
description = "Mybatis 增强工具包 - 只做增强不做改变,简化CRUD操作"
|
|
|
|
|
|
subprojects {
|
|
|
-
|
|
|
apply plugin: 'java-library'
|
|
|
apply plugin: 'signing'
|
|
|
apply plugin: 'maven-publish'
|
|
|
+ apply plugin: "io.freefair.lombok"
|
|
|
apply plugin: 'com.github.hierynomus.license'
|
|
|
|
|
|
sourceCompatibility = "${javaVersion}"
|
|
|
targetCompatibility = "${javaVersion}"
|
|
|
|
|
|
+ repositories {
|
|
|
+ mavenLocal()
|
|
|
+ maven { url "https://maven.aliyun.com/repository/public" }
|
|
|
+ maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
+ jcenter()
|
|
|
+ }
|
|
|
+
|
|
|
+ dependencies {
|
|
|
+ testImplementation "${lib["assertj-core"]}"
|
|
|
+ testImplementation "${lib["junit-jupiter"]}"
|
|
|
+ testImplementation "org.mockito:mockito-junit-jupiter:3.6.0"
|
|
|
+ testImplementation "${lib["lagarto"]}"
|
|
|
+ testImplementation "${lib["logback-classic"]}"
|
|
|
+ }
|
|
|
+
|
|
|
tasks.withType(JavaCompile) {
|
|
|
options.encoding = 'UTF-8'
|
|
|
options.warnings = false
|
|
@@ -142,27 +141,6 @@ subprojects {
|
|
|
ignoreFailures = true
|
|
|
}
|
|
|
|
|
|
- repositories {
|
|
|
- mavenLocal()
|
|
|
- maven { url "https://maven.aliyun.com/repository/public" }
|
|
|
- maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
- jcenter()
|
|
|
- }
|
|
|
-
|
|
|
- dependencies {
|
|
|
- annotationProcessor "${lib.lombok}"
|
|
|
- compileOnly "${lib.lombok}"
|
|
|
- testAnnotationProcessor "${lib.lombok}"
|
|
|
- testCompileOnly "${lib.lombok}"
|
|
|
-
|
|
|
- testImplementation "${lib["assertj-core"]}"
|
|
|
- testImplementation "${lib["junit-jupiter-api"]}"
|
|
|
- testRuntimeOnly "${lib["junit-jupiter-engine"]}"
|
|
|
- testImplementation "org.mockito:mockito-junit-jupiter:3.4.4"
|
|
|
- testImplementation "${lib["lagarto"]}"
|
|
|
- testImplementation "${lib["logback-classic"]}"
|
|
|
- }
|
|
|
-
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
task sourcesJar(type: Jar) {
|
|
|
archiveClassifier = 'sources'
|