From 8b807709606d08c6cfa2835bbafaf14050277b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AD=90=E9=BB=98?= <925456043@qq.com> Date: Fri, 5 Jun 2026 13:53:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=B7=B7=E6=B7=86=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/proguard/common-keep.pro | 61 +++++++++++++++++++ config/proguard/easyflow-module-ai.pro | 28 +++++++++ .../proguard/easyflow-module-autoconfig.pro | 5 ++ .../proguard/easyflow-module-datacenter.pro | 10 +++ easyflow-modules/easyflow-module-ai/pom.xml | 47 ++++++++++++++ .../easyflow-module-autoconfig/pom.xml | 47 ++++++++++++++ .../easyflow-module-datacenter/pom.xml | 47 ++++++++++++++ pom.xml | 4 +- 8 files changed, 248 insertions(+), 1 deletion(-) create mode 100644 config/proguard/common-keep.pro create mode 100644 config/proguard/easyflow-module-ai.pro create mode 100644 config/proguard/easyflow-module-autoconfig.pro create mode 100644 config/proguard/easyflow-module-datacenter.pro diff --git a/config/proguard/common-keep.pro b/config/proguard/common-keep.pro new file mode 100644 index 0000000..6273d2d --- /dev/null +++ b/config/proguard/common-keep.pro @@ -0,0 +1,61 @@ +-dontshrink +-dontoptimize +-dontpreverify +-ignorewarnings +-dontnote + +-libraryjars /jmods/java.base.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.compiler.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.datatransfer.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.desktop.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.instrument.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.logging.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.management.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.naming.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.net.http.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.prefs.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.rmi.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.scripting.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.security.jgss.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.security.sasl.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.sql.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.transaction.xa.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.xml.jmod(!**.jar;!module-info.class) +-libraryjars /jmods/java.xml.crypto.jmod(!**.jar;!module-info.class) + +-keepattributes RuntimeVisibleAnnotations,RuntimeInvisibleAnnotations,RuntimeVisibleParameterAnnotations,RuntimeInvisibleParameterAnnotations,AnnotationDefault,Signature,InnerClasses,EnclosingMethod,Record,SourceFile,LineNumberTable,MethodParameters + +-keep @org.springframework.stereotype.Controller class * { *; } +-keep @org.springframework.web.bind.annotation.RestController class * { *; } +-keep @org.springframework.context.annotation.Configuration class * { *; } +-keep @org.springframework.boot.context.properties.ConfigurationProperties class * { *; } +-keep @org.springframework.boot.autoconfigure.SpringBootApplication class * { *; } + +-keep class **.*Controller { *; } +-keep class **.*Mapper { *; } +-keep class **.mapper.** { *; } +-keep class **.entity.** { *; } +-keep class **.dto.** { *; } +-keep class **.vo.** { *; } +-keep class **.model.** { *; } +-keep class **.config.** { *; } +-keep class **.enums.** { *; } +-keep class **.annotation.** { *; } +-keep class **.*Exception { *; } +-keep class **.*ErrorCode { *; } +-keep class **.*Properties { *; } +-keep class **.*Config { *; } +-keep class **.*Configuration { *; } +-keep interface tech.easyflow.** { *; } +-keep enum tech.easyflow.** { *; } + +-keepclassmembers class * { + @jakarta.annotation.Resource ; + @org.springframework.beans.factory.annotation.Autowired ; + @org.springframework.beans.factory.annotation.Value ; + @org.springframework.context.annotation.Bean ; +} + +-keepclassmembers class * { + public (...); +} diff --git a/config/proguard/easyflow-module-ai.pro b/config/proguard/easyflow-module-ai.pro new file mode 100644 index 0000000..40e97ce --- /dev/null +++ b/config/proguard/easyflow-module-ai.pro @@ -0,0 +1,28 @@ +-include ../../config/proguard/common-keep.pro + +-keep class tech.easyflow.ai.chattime.** { *; } +-keep class tech.easyflow.ai.constants.** { *; } +-keep class tech.easyflow.ai.document.** { *; } +-keep class tech.easyflow.ai.documentimport.** { *; } +-keep class tech.easyflow.ai.easyagents.** { *; } +-keep class tech.easyflow.ai.exception.** { *; } +-keep class tech.easyflow.ai.mcp.** { *; } +-keep class tech.easyflow.ai.node.** { *; } +-keep class tech.easyflow.ai.permission.** { *; } +-keep class tech.easyflow.ai.plugin.** { *; } +-keep class tech.easyflow.ai.publish.** { *; } +-keep class tech.easyflow.ai.rag.** { *; } +-keep class tech.easyflow.ai.service.** { *; } +-keep class tech.easyflow.ai.support.** { *; } +-keep class tech.easyflow.ai.utils.** { *; } +-keep class tech.easyflow.ai.invoke.service.** { *; } +-keep class tech.easyflow.ai.invoke.model.** { *; } +-keep class tech.easyflow.ai.invoke.protocol.** { *; } +-keep class tech.easyflow.ai.invoke.exception.** { *; } +-keep class tech.easyflow.ai.invoke.mapper.OpenAiProtocolMapper { *; } +-keep class tech.easyflow.ai.invoke.provider.ModelProviderGateway { *; } +-keep class tech.easyflow.ai.invoke.provider.UnifiedChatChunkObserver { *; } +-keep class tech.easyflow.ai.easyagentsflow.config.** { *; } +-keep class tech.easyflow.ai.easyagentsflow.entity.** { *; } +-keep class tech.easyflow.ai.easyagentsflow.service.** { *; } +-keep class tech.easyflow.ai.easyagentsflow.support.** { *; } diff --git a/config/proguard/easyflow-module-autoconfig.pro b/config/proguard/easyflow-module-autoconfig.pro new file mode 100644 index 0000000..9123489 --- /dev/null +++ b/config/proguard/easyflow-module-autoconfig.pro @@ -0,0 +1,5 @@ +-include ../../config/proguard/common-keep.pro + +-keep class tech.easyflow.autoconfig.license.EasyflowLicenseBootstrapValidator { *; } +-keep class tech.easyflow.autoconfig.license.EasyflowLicenseProperties { *; } +-keep class tech.easyflow.autoconfig.license.EasyflowLicenseVerificationResult { *; } diff --git a/config/proguard/easyflow-module-datacenter.pro b/config/proguard/easyflow-module-datacenter.pro new file mode 100644 index 0000000..6a6b857 --- /dev/null +++ b/config/proguard/easyflow-module-datacenter.pro @@ -0,0 +1,10 @@ +-include ../../config/proguard/common-keep.pro + +-keep class tech.easyflow.datacenter.connector.DatacenterConnector { *; } +-keep class tech.easyflow.datacenter.connector.QueryExecutor { *; } +-keep class tech.easyflow.datacenter.connector.WriteExecutor { *; } +-keep class tech.easyflow.datacenter.connector.MetadataExplorer { *; } +-keep class tech.easyflow.datacenter.connector.SourceHealthChecker { *; } +-keep class tech.easyflow.datacenter.connector.SqlDialect { *; } +-keep class tech.easyflow.datacenter.execution.model.** { *; } +-keep class tech.easyflow.datacenter.meta.enums.** { *; } diff --git a/easyflow-modules/easyflow-module-ai/pom.xml b/easyflow-modules/easyflow-module-ai/pom.xml index ed99275..f11d064 100644 --- a/easyflow-modules/easyflow-module-ai/pom.xml +++ b/easyflow-modules/easyflow-module-ai/pom.xml @@ -138,4 +138,51 @@ test + + + + release-obfuscation + + + + com.github.wvengen + proguard-maven-plugin + ${proguard.maven.plugin.version} + + + com.guardsquare + proguard-base + ${proguard.version} + + + + + release-obfuscation + package + + proguard + + + + + ${proguard.version} + ${maven.multiModuleProjectDirectory}/config/proguard/easyflow-module-ai.pro + proguard-map-${project.artifactId}.txt + proguard-seed-${project.artifactId}.txt + true + false + false + false + false + false + true + true + true + true + + + + + + diff --git a/easyflow-modules/easyflow-module-autoconfig/pom.xml b/easyflow-modules/easyflow-module-autoconfig/pom.xml index d73bc4b..bf3bd4b 100644 --- a/easyflow-modules/easyflow-module-autoconfig/pom.xml +++ b/easyflow-modules/easyflow-module-autoconfig/pom.xml @@ -23,4 +23,51 @@ test + + + + release-obfuscation + + + + com.github.wvengen + proguard-maven-plugin + ${proguard.maven.plugin.version} + + + com.guardsquare + proguard-base + ${proguard.version} + + + + + release-obfuscation + package + + proguard + + + + + ${proguard.version} + ${maven.multiModuleProjectDirectory}/config/proguard/easyflow-module-autoconfig.pro + proguard-map-${project.artifactId}.txt + proguard-seed-${project.artifactId}.txt + true + false + false + false + false + false + true + true + true + true + + + + + + diff --git a/easyflow-modules/easyflow-module-datacenter/pom.xml b/easyflow-modules/easyflow-module-datacenter/pom.xml index daa1a70..1bcbc07 100644 --- a/easyflow-modules/easyflow-module-datacenter/pom.xml +++ b/easyflow-modules/easyflow-module-datacenter/pom.xml @@ -46,4 +46,51 @@ easyflow-common-web + + + + release-obfuscation + + + + com.github.wvengen + proguard-maven-plugin + ${proguard.maven.plugin.version} + + + com.guardsquare + proguard-base + ${proguard.version} + + + + + release-obfuscation + package + + proguard + + + + + ${proguard.version} + ${maven.multiModuleProjectDirectory}/config/proguard/easyflow-module-datacenter.pro + proguard-map-${project.artifactId}.txt + proguard-seed-${project.artifactId}.txt + true + false + false + false + false + false + true + true + true + true + + + + + + diff --git a/pom.xml b/pom.xml index 4f783e5..1496b36 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ - 17 + 17 17 17 UTF-8 @@ -48,6 +48,8 @@ 8.5.2 2.19.4 4.1.130.Final + 7.9.1 + 2.7.0