38 lines
1.1 KiB
Groovy
38 lines
1.1 KiB
Groovy
|
|
plugins {
|
|||
|
|
id 'java'
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
group = 'com.actionsoft'
|
|||
|
|
version = '1.0-SNAPSHOT'
|
|||
|
|
|
|||
|
|
repositories {
|
|||
|
|
mavenCentral()
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 为所有项目(包括根项目和所有子项目)的通用配置
|
|||
|
|
allprojects {
|
|||
|
|
apply plugin: 'java'
|
|||
|
|
dependencies {
|
|||
|
|
def releaseUrl = '/Users/yuandongqiang/Documents/actionsoft/hsxa/release/bin'
|
|||
|
|
//必须绝对路径,bin/patch目录下的jar
|
|||
|
|
def patchlib = fileTree(dir: releaseUrl + '/patch', includes: ['**/*.jar'])
|
|||
|
|
//必须绝对路径,bin/lib目录
|
|||
|
|
def binLib = fileTree(dir: releaseUrl + '/lib', includes: ['**/*.jar'])
|
|||
|
|
//必须绝对路径,bin/jdbc目录。排除inceptor-driver-8.16.0.jar(因为里面包含了和common-io jar冲突的类导致编译报错
|
|||
|
|
def jdbc = fileTree(dir: releaseUrl + '/jdbc', includes: ['**/*.jar']).exclude('inceptor-driver-8.16.0.jar')
|
|||
|
|
|
|||
|
|
implementation patchlib
|
|||
|
|
implementation binLib
|
|||
|
|
implementation jdbc
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//若打包的jar中中文乱码,增加以下配置
|
|||
|
|
tasks.withType(JavaCompile) {
|
|||
|
|
options.encoding = 'UTF-8'
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
test {
|
|||
|
|
useJUnitPlatform()
|
|||
|
|
}
|