|
@@ -22,7 +22,7 @@ ext {
|
|
jsqlparserVersion = '1.3',
|
|
jsqlparserVersion = '1.3',
|
|
]
|
|
]
|
|
|
|
|
|
- dependencies = [
|
|
|
|
|
|
+ lib = [
|
|
"kotlin-reflect" : "org.jetbrains.kotlin:kotlin-reflect:1.3.10",
|
|
"kotlin-reflect" : "org.jetbrains.kotlin:kotlin-reflect:1.3.10",
|
|
"kotlin-stdlib-jdk8" : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.10",
|
|
"kotlin-stdlib-jdk8" : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.10",
|
|
"jsqlparser" : "com.github.jsqlparser:jsqlparser:${jsqlparserVersion}",
|
|
"jsqlparser" : "com.github.jsqlparser:jsqlparser:${jsqlparserVersion}",
|
|
@@ -55,7 +55,7 @@ ext {
|
|
"commons-dbcp2" : "org.apache.commons:commons-dbcp2:2.1.1",
|
|
"commons-dbcp2" : "org.apache.commons:commons-dbcp2:2.1.1",
|
|
"sqlserver" : "com.microsoft.sqlserver:sqljdbc4:4.0",
|
|
"sqlserver" : "com.microsoft.sqlserver:sqljdbc4:4.0",
|
|
"postgresql" : "org.postgresql:postgresql:9.4.1212",
|
|
"postgresql" : "org.postgresql:postgresql:9.4.1212",
|
|
- "oracle" : fileTree(dir: 'libs', includes: ['ojdbc-11.2.0.3-jdk16.jar']),
|
|
|
|
|
|
+ "oracle" : fileTree(dir: 'libs', includes: ['ojdbc-11.2.0.3-jdk16.jar']),
|
|
"h2" : "com.h2database:h2:1.4.194",
|
|
"h2" : "com.h2database:h2:1.4.194",
|
|
"mysql" : "mysql:mysql-connector-java:5.1.38",
|
|
"mysql" : "mysql:mysql-connector-java:5.1.38",
|
|
//code generator
|
|
//code generator
|
|
@@ -102,12 +102,12 @@ subprojects {
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
dependencies {
|
|
- annotationProcessor rootProject.ext.dependencies["lombok"]
|
|
|
|
- implementation rootProject.ext.dependencies["lombok"]
|
|
|
|
- testAnnotationProcessor rootProject.ext.dependencies["lombok"]
|
|
|
|
- testCompileOnly rootProject.ext.dependencies["lombok"]
|
|
|
|
- testCompile rootProject.ext.dependencies["mockito-all"]
|
|
|
|
- testCompile rootProject.ext.dependencies["junit"]
|
|
|
|
|
|
+ annotationProcessor lib.lombok as String
|
|
|
|
+ implementation lib.lombok as String
|
|
|
|
+ testAnnotationProcessor lib.lombok as String
|
|
|
|
+ testCompileOnly lib.lombok as String
|
|
|
|
+ testCompile lib."mockito-all" as String
|
|
|
|
+ testCompile lib.junit as String
|
|
}
|
|
}
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
@@ -144,14 +144,6 @@ subprojects {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- /*
|
|
|
|
- * 1.修改 gradle.properties 中 signing.secretKeyRingFile的路径
|
|
|
|
- * 2.执行 gradle clean build publish -Dun=用户名 -Dps=密码 -x test
|
|
|
|
- * ---------------------------wrapper------------------------------------------
|
|
|
|
- * 先执行 gradle wrapper 生成 gradlew 和 gradlew.bat
|
|
|
|
- * win: gradlew.bat clean build publish -Dun=用户名 -Dps=密码 -x test
|
|
|
|
- * mac: ./gradlew clean build publish -Dun=用户名 -Dps=密码 -x test
|
|
|
|
- */
|
|
|
|
publishing {
|
|
publishing {
|
|
|
|
|
|
repositories {
|
|
repositories {
|