mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-04-29 22:27:34 +00:00
- 增加 ScriptLoggerFactory, 通过 CGLIB 为 Logger 设置动态代理, 在记录日志时隐式添加 marker, 配合日志配置调整脚本日志输出, 以解决脚本无法将日志记录到日志文件中的问题. - 调整 Trigger 日志记录器获取方式, 以解决脚本可能误用 Trigger 日志记录器的问题. - 适当调整了部分包的日志记录级别.
71 lines
1.7 KiB
Groovy
71 lines
1.7 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '2.5.3'
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
|
id 'jacoco'
|
|
}
|
|
|
|
group 'net.lamgc.oracle'
|
|
version '0.1.1'
|
|
compileJava.sourceCompatibility = JavaVersion.VERSION_16
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
def ociSdkVer = '2.3.2'
|
|
def sshdVer = '2.7.0'
|
|
def bouncyCastleVer = '1.69'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
implementation 'org.slf4j:slf4j-api:1.7.31'
|
|
|
|
implementation "com.oracle.oci.sdk:oci-java-sdk-core:${ociSdkVer}"
|
|
implementation "com.oracle.oci.sdk:oci-java-sdk-identity:${ociSdkVer}"
|
|
|
|
implementation "org.apache.sshd:sshd-core:${sshdVer}"
|
|
implementation "org.apache.sshd:sshd-sftp:${sshdVer}"
|
|
|
|
implementation "org.bouncycastle:bcpg-jdk15on:${bouncyCastleVer}"
|
|
implementation "org.bouncycastle:bcpkix-jdk15on:${bouncyCastleVer}"
|
|
|
|
implementation 'cglib:cglib:3.3.0'
|
|
|
|
implementation "net.i2p.crypto:eddsa:0.3.0"
|
|
|
|
implementation 'org.codehaus.groovy:groovy-all:3.0.7'
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.7'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
jacoco {
|
|
classDumpDir = file("$buildDir/jacoco/classpathDumps")
|
|
}
|
|
}
|
|
|
|
javadoc {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
jacoco {
|
|
reportsDir file("$buildDir/jacoco/reports")
|
|
}
|
|
|
|
jacocoTestReport {
|
|
reports {
|
|
xml.enabled true
|
|
xml.destination file("$buildDir/jacoco/reports.xml")
|
|
|
|
html.enabled true
|
|
html.destination file("$buildDir/jacoco/reports-html/")
|
|
}
|
|
}
|