HsxaBpm-apps/build.gradle

38 lines
1.1 KiB
Groovy
Raw Normal View History

2025-10-14 10:16:56 +08:00
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()
}