HsxaBpm-apps/build.gradle
2025-10-14 10:16:56 +08:00

38 lines
1.1 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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()
}