diff --git a/functional-modules/data-center-api/pom.xml b/functional-modules/data-center-api/pom.xml index 73ecdff..91ffa50 100644 --- a/functional-modules/data-center-api/pom.xml +++ b/functional-modules/data-center-api/pom.xml @@ -38,6 +38,7 @@ org.jeecgframework.boot jeecg-boot-base-core + xj provided diff --git a/functional-modules/renkang-test/pom.xml b/functional-modules/renkang-test/pom.xml index 3911636..7d0c285 100644 --- a/functional-modules/renkang-test/pom.xml +++ b/functional-modules/renkang-test/pom.xml @@ -33,6 +33,7 @@ org.jeecgframework.boot jeecg-boot-base-core + xj provided diff --git a/health-consultation/health-consultation-api/pom.xml b/health-consultation/health-consultation-api/pom.xml index b52b677..86a9596 100644 --- a/health-consultation/health-consultation-api/pom.xml +++ b/health-consultation/health-consultation-api/pom.xml @@ -13,6 +13,7 @@ org.jeecgframework.boot jeecg-boot-base-core + xj diff --git a/health-consultation/health-consultation-biz/pom.xml b/health-consultation/health-consultation-biz/pom.xml index a0d8d26..799fc3b 100644 --- a/health-consultation/health-consultation-biz/pom.xml +++ b/health-consultation/health-consultation-biz/pom.xml @@ -13,18 +13,22 @@ com.renkang health-consultation-api + xj com.renkang health-emergency-api + xj com.renkang health-im-api + xj org.jeecgframework.boot jeecg-system-cloud-api + xj @@ -50,4 +54,21 @@ + + + biz-obf + + + + com.github.wvengen + proguard-maven-plugin + + + org.codehaus.mojo + build-helper-maven-plugin + + + + + diff --git a/health-consultation/health-consultation-biz/proguard.cfg b/health-consultation/health-consultation-biz/proguard.cfg new file mode 100644 index 0000000..19bc861 --- /dev/null +++ b/health-consultation/health-consultation-biz/proguard.cfg @@ -0,0 +1,39 @@ +-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions +-keep @org.springframework.stereotype.Service class * +-keep @org.springframework.web.bind.annotation.RestController class * +-keep @org.springframework.context.annotation.Configuration class * +-keep @org.springframework.stereotype.Component class * +-keepclassmembers enum * { # 保留枚举结构 + public static **[] values(); + public static ** valueOf(java.lang.String); +} +-keepclassmembers class * implements java.io.Serializable { # 保留序列化类 + private static final java.io.ObjectStreamField[] serialPersistentFields; + private void writeObject(java.io.ObjectOutputStream); + private void readObject(java.io.ObjectInputStream); +} +-keepclassmembers class * { + @org.springframework.web.bind.annotation.*Mapping *; +} +-keepclassmembers class * { + private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); +} +-keep class lombok.** { *; } +-keepclassmembers class * { + @lombok.Getter *; + @lombok.Setter *; +} +# MyBatis 专用保留规则 +-keep interface com.renkang.**.mapper.** { *; } +-keepclassmembers class com.renkang.**.entity.** { *; } + + +# 关闭优化和压缩(避免框架兼容性问题) +-dontshrink # 不删除未使用代码 +-dontoptimize # 不优化字节码[5,6](@ref) +-keepdirectories +-dontusemixedcaseclassnames +-adaptclassstrings +# 混淆选项 +-useuniqueclassmembernames # 成员名称唯一化 +-ignorewarnings \ No newline at end of file diff --git a/health-consultation/health-consultation-start/pom.xml b/health-consultation/health-consultation-start/pom.xml index 2886c98..8a3050d 100644 --- a/health-consultation/health-consultation-start/pom.xml +++ b/health-consultation/health-consultation-start/pom.xml @@ -9,6 +9,11 @@ 4.0.0 health-consultation-start + + + true + + @@ -24,6 +29,7 @@ com.renkang health-consultation-biz + ${biz-classifier} diff --git a/health-consultation/pom.xml b/health-consultation/pom.xml index 079c2d6..be3d013 100644 --- a/health-consultation/pom.xml +++ b/health-consultation/pom.xml @@ -13,10 +13,6 @@ 2.0.0 pom - - true - - health-consultation-api diff --git a/health-emergency/health-emergency-api/pom.xml b/health-emergency/health-emergency-api/pom.xml index f34f037..39d33cf 100644 --- a/health-emergency/health-emergency-api/pom.xml +++ b/health-emergency/health-emergency-api/pom.xml @@ -13,6 +13,7 @@ org.jeecgframework.boot jeecg-boot-base-core + xj diff --git a/health-emergency/health-emergency-biz/pom.xml b/health-emergency/health-emergency-biz/pom.xml index e11a1e1..93a910c 100644 --- a/health-emergency/health-emergency-biz/pom.xml +++ b/health-emergency/health-emergency-biz/pom.xml @@ -9,6 +9,7 @@ 4.0.0 health-emergency-biz + @@ -18,15 +19,18 @@ com.renkang health-emergency-api + xj org.jeecgframework.boot jeecg-system-cloud-api + xj com.renkang health-im-api + xj @@ -47,4 +51,21 @@ + + + biz-obf + + + + com.github.wvengen + proguard-maven-plugin + + + org.codehaus.mojo + build-helper-maven-plugin + + + + + diff --git a/health-emergency/health-emergency-biz/proguard.cfg b/health-emergency/health-emergency-biz/proguard.cfg new file mode 100644 index 0000000..19bc861 --- /dev/null +++ b/health-emergency/health-emergency-biz/proguard.cfg @@ -0,0 +1,39 @@ +-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions +-keep @org.springframework.stereotype.Service class * +-keep @org.springframework.web.bind.annotation.RestController class * +-keep @org.springframework.context.annotation.Configuration class * +-keep @org.springframework.stereotype.Component class * +-keepclassmembers enum * { # 保留枚举结构 + public static **[] values(); + public static ** valueOf(java.lang.String); +} +-keepclassmembers class * implements java.io.Serializable { # 保留序列化类 + private static final java.io.ObjectStreamField[] serialPersistentFields; + private void writeObject(java.io.ObjectOutputStream); + private void readObject(java.io.ObjectInputStream); +} +-keepclassmembers class * { + @org.springframework.web.bind.annotation.*Mapping *; +} +-keepclassmembers class * { + private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); +} +-keep class lombok.** { *; } +-keepclassmembers class * { + @lombok.Getter *; + @lombok.Setter *; +} +# MyBatis 专用保留规则 +-keep interface com.renkang.**.mapper.** { *; } +-keepclassmembers class com.renkang.**.entity.** { *; } + + +# 关闭优化和压缩(避免框架兼容性问题) +-dontshrink # 不删除未使用代码 +-dontoptimize # 不优化字节码[5,6](@ref) +-keepdirectories +-dontusemixedcaseclassnames +-adaptclassstrings +# 混淆选项 +-useuniqueclassmembernames # 成员名称唯一化 +-ignorewarnings \ No newline at end of file diff --git a/health-emergency/health-emergency-start/pom.xml b/health-emergency/health-emergency-start/pom.xml index 540f9d9..bbf3b16 100644 --- a/health-emergency/health-emergency-start/pom.xml +++ b/health-emergency/health-emergency-start/pom.xml @@ -9,6 +9,11 @@ 4.0.0 health-emergency-start + + + true + + @@ -20,6 +25,7 @@ com.renkang health-emergency-biz + ${biz-classifier} diff --git a/health-emergency/pom.xml b/health-emergency/pom.xml index ff67155..8a902ab 100644 --- a/health-emergency/pom.xml +++ b/health-emergency/pom.xml @@ -13,10 +13,6 @@ 2.0.0 pom - - true - - health-emergency-api diff --git a/health-im/health-im-api/pom.xml b/health-im/health-im-api/pom.xml index b0e57e3..a19ccfc 100644 --- a/health-im/health-im-api/pom.xml +++ b/health-im/health-im-api/pom.xml @@ -28,6 +28,7 @@ org.jeecgframework.boot jeecg-boot-base-core + xj diff --git a/health-im/health-im-biz/pom.xml b/health-im/health-im-biz/pom.xml index 8c0a34d..bc16e25 100644 --- a/health-im/health-im-biz/pom.xml +++ b/health-im/health-im-biz/pom.xml @@ -9,14 +9,17 @@ 4.0.0 health-im-biz + com.renkang health-im-api + xj org.jeecgframework.boot jeecg-system-cloud-api + xj @@ -35,6 +38,7 @@ com.renkang health-consultation-api + xj @@ -54,4 +58,21 @@ + + + biz-obf + + + + com.github.wvengen + proguard-maven-plugin + + + org.codehaus.mojo + build-helper-maven-plugin + + + + + diff --git a/health-im/health-im-biz/proguard.cfg b/health-im/health-im-biz/proguard.cfg new file mode 100644 index 0000000..19bc861 --- /dev/null +++ b/health-im/health-im-biz/proguard.cfg @@ -0,0 +1,39 @@ +-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions +-keep @org.springframework.stereotype.Service class * +-keep @org.springframework.web.bind.annotation.RestController class * +-keep @org.springframework.context.annotation.Configuration class * +-keep @org.springframework.stereotype.Component class * +-keepclassmembers enum * { # 保留枚举结构 + public static **[] values(); + public static ** valueOf(java.lang.String); +} +-keepclassmembers class * implements java.io.Serializable { # 保留序列化类 + private static final java.io.ObjectStreamField[] serialPersistentFields; + private void writeObject(java.io.ObjectOutputStream); + private void readObject(java.io.ObjectInputStream); +} +-keepclassmembers class * { + @org.springframework.web.bind.annotation.*Mapping *; +} +-keepclassmembers class * { + private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); +} +-keep class lombok.** { *; } +-keepclassmembers class * { + @lombok.Getter *; + @lombok.Setter *; +} +# MyBatis 专用保留规则 +-keep interface com.renkang.**.mapper.** { *; } +-keepclassmembers class com.renkang.**.entity.** { *; } + + +# 关闭优化和压缩(避免框架兼容性问题) +-dontshrink # 不删除未使用代码 +-dontoptimize # 不优化字节码[5,6](@ref) +-keepdirectories +-dontusemixedcaseclassnames +-adaptclassstrings +# 混淆选项 +-useuniqueclassmembernames # 成员名称唯一化 +-ignorewarnings \ No newline at end of file diff --git a/health-im/health-im-start/pom.xml b/health-im/health-im-start/pom.xml index 431d31a..070e3cd 100644 --- a/health-im/health-im-start/pom.xml +++ b/health-im/health-im-start/pom.xml @@ -9,6 +9,11 @@ 4.0.0 health-im-start + + + true + + @@ -20,6 +25,7 @@ com.renkang health-im-biz + ${biz-classifier} diff --git a/health-im/pom.xml b/health-im/pom.xml index 9ea7c1f..fbb55b2 100644 --- a/health-im/pom.xml +++ b/health-im/pom.xml @@ -13,10 +13,6 @@ 2.0.0 pom - - true - - health-im-api diff --git a/health-system-boms/pom.xml b/health-system-boms/pom.xml index c64bc9c..7529bed 100644 --- a/health-system-boms/pom.xml +++ b/health-system-boms/pom.xml @@ -24,11 +24,19 @@ com.renkang health-consultation-api ${renkang.version} + xj com.renkang health-consultation-biz ${renkang.version} + xj + + + com.renkang + health-consultation-biz + ${renkang.version} + obf @@ -36,11 +44,19 @@ com.renkang health-emergency-api ${renkang.version} + xj com.renkang health-emergency-biz ${renkang.version} + xj + + + com.renkang + health-emergency-biz + ${renkang.version} + obf @@ -48,11 +64,19 @@ com.renkang health-im-api ${renkang.version} + xj com.renkang health-im-biz ${renkang.version} + xj + + + com.renkang + health-im-biz + ${renkang.version} + obf @@ -60,23 +84,33 @@ com.renkang health-watch-api ${renkang.version} + xj com.renkang health-watch-biz ${renkang.version} + xj + + + com.renkang + health-watch-biz + ${renkang.version} + obf com.renkang data-center-api ${renkang.version} + xj com.renkang font-resources ${renkang.version} + xj @@ -84,16 +118,19 @@ com.renkang renkang-starter-batch ${renkang.version} + xj com.renkang renkang-starter-aspose-word ${renkang.version} + xj com.renkang renkang-test ${renkang.version} + xj test diff --git a/health-watch/health-watch-api/pom.xml b/health-watch/health-watch-api/pom.xml index 460379b..134a888 100644 --- a/health-watch/health-watch-api/pom.xml +++ b/health-watch/health-watch-api/pom.xml @@ -15,6 +15,7 @@ org.jeecgframework.boot jeecg-boot-base-core + xj com.alibaba diff --git a/health-watch/health-watch-biz/pom.xml b/health-watch/health-watch-biz/pom.xml index f9e4910..5b59515 100644 --- a/health-watch/health-watch-biz/pom.xml +++ b/health-watch/health-watch-biz/pom.xml @@ -10,26 +10,32 @@ health-watch-biz + com.renkang health-watch-api + xj com.renkang health-emergency-api + xj org.jeecgframework.boot jeecg-system-cloud-api + xj com.renkang renkang-starter-batch + xj com.renkang data-center-api + xj @@ -39,6 +45,7 @@ com.renkang renkang-starter-aspose-word + xj com.alibaba @@ -55,6 +62,7 @@ com.renkang font-resources + xj @@ -74,5 +82,21 @@ - + + + biz-obf + + + + com.github.wvengen + proguard-maven-plugin + + + org.codehaus.mojo + build-helper-maven-plugin + + + + + diff --git a/health-watch/health-watch-biz/proguard.cfg b/health-watch/health-watch-biz/proguard.cfg new file mode 100644 index 0000000..19bc861 --- /dev/null +++ b/health-watch/health-watch-biz/proguard.cfg @@ -0,0 +1,39 @@ +-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions +-keep @org.springframework.stereotype.Service class * +-keep @org.springframework.web.bind.annotation.RestController class * +-keep @org.springframework.context.annotation.Configuration class * +-keep @org.springframework.stereotype.Component class * +-keepclassmembers enum * { # 保留枚举结构 + public static **[] values(); + public static ** valueOf(java.lang.String); +} +-keepclassmembers class * implements java.io.Serializable { # 保留序列化类 + private static final java.io.ObjectStreamField[] serialPersistentFields; + private void writeObject(java.io.ObjectOutputStream); + private void readObject(java.io.ObjectInputStream); +} +-keepclassmembers class * { + @org.springframework.web.bind.annotation.*Mapping *; +} +-keepclassmembers class * { + private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); +} +-keep class lombok.** { *; } +-keepclassmembers class * { + @lombok.Getter *; + @lombok.Setter *; +} +# MyBatis 专用保留规则 +-keep interface com.renkang.**.mapper.** { *; } +-keepclassmembers class com.renkang.**.entity.** { *; } + + +# 关闭优化和压缩(避免框架兼容性问题) +-dontshrink # 不删除未使用代码 +-dontoptimize # 不优化字节码[5,6](@ref) +-keepdirectories +-dontusemixedcaseclassnames +-adaptclassstrings +# 混淆选项 +-useuniqueclassmembernames # 成员名称唯一化 +-ignorewarnings \ No newline at end of file diff --git a/health-watch/health-watch-start/pom.xml b/health-watch/health-watch-start/pom.xml index 9d063b7..7a47da6 100644 --- a/health-watch/health-watch-start/pom.xml +++ b/health-watch/health-watch-start/pom.xml @@ -11,6 +11,10 @@ health-watch-start + + true + + @@ -22,11 +26,13 @@ com.renkang health-watch-biz + ${biz-classifier} com.renkang renkang-test + xj test diff --git a/health-watch/pom.xml b/health-watch/pom.xml index cbbaa71..7f5fa9e 100644 --- a/health-watch/pom.xml +++ b/health-watch/pom.xml @@ -20,8 +20,4 @@ 2.0.0 pom - - true - - diff --git a/jeecg-system/jeecg-system-api/jeecg-system-local-api/pom.xml b/jeecg-system/jeecg-system-api/jeecg-system-local-api/pom.xml index 2a63ea0..61447f1 100644 --- a/jeecg-system/jeecg-system-api/jeecg-system-local-api/pom.xml +++ b/jeecg-system/jeecg-system-api/jeecg-system-local-api/pom.xml @@ -15,6 +15,7 @@ org.jeecgframework.boot jeecg-system-cloud-api + xj diff --git a/jeecg-system/jeecg-system-api/pom.xml b/jeecg-system/jeecg-system-api/pom.xml index 9b4e737..2b2b8f2 100644 --- a/jeecg-system/jeecg-system-api/pom.xml +++ b/jeecg-system/jeecg-system-api/pom.xml @@ -20,6 +20,7 @@ org.jeecgframework.boot jeecg-boot-base-core + xj diff --git a/jeecg-system/jeecg-system-biz/pom.xml b/jeecg-system/jeecg-system-biz/pom.xml index dcafb2f..959f8cf 100644 --- a/jeecg-system/jeecg-system-biz/pom.xml +++ b/jeecg-system/jeecg-system-biz/pom.xml @@ -20,10 +20,12 @@ com.renkang health-consultation-api + xj org.jeecgframework.boot jeecg-system-local-api + xj org.hibernate @@ -79,8 +81,25 @@ com.renkang health-watch-api + xj - + + + biz-obf + + + + com.github.wvengen + proguard-maven-plugin + + + org.codehaus.mojo + build-helper-maven-plugin + + + + + diff --git a/jeecg-system/jeecg-system-biz/proguard.cfg b/jeecg-system/jeecg-system-biz/proguard.cfg new file mode 100644 index 0000000..b9b2f44 --- /dev/null +++ b/jeecg-system/jeecg-system-biz/proguard.cfg @@ -0,0 +1,35 @@ +-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions +-keep @org.springframework.stereotype.Service class * +-keep @org.springframework.web.bind.annotation.RestController class * +-keep @org.springframework.context.annotation.Configuration class * +-keep @org.springframework.stereotype.Component class * +-keepclassmembers enum * { # 保留枚举结构 + public static **[] values(); + public static ** valueOf(java.lang.String); +} +-keepclassmembers class * implements java.io.Serializable { *; } +-keepclassmembers class * { + @org.springframework.web.bind.annotation.*Mapping *; +} +-keepclassmembers class * { + private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); +} +-keep class lombok.** { *; } +-keepclassmembers class * { + @lombok.Getter *; + @lombok.Setter *; +} +# MyBatis 专用保留规则 +-keep interface org.jeecg.**.mapper.** { *; } +-keepclassmembers class org.jeecg.**.entity.** { *; } +-dontwarn org.jeecg.**.entity.** + +# 关闭优化和压缩(避免框架兼容性问题) +-dontshrink # 不删除未使用代码 +-dontoptimize # 不优化字节码[5,6](@ref) +-keepdirectories +-dontusemixedcaseclassnames +-adaptclassstrings +# 混淆选项 +-useuniqueclassmembernames # 成员名称唯一化 +-ignorewarnings \ No newline at end of file diff --git a/jeecg-system/jeecg-system-start/pom.xml b/jeecg-system/jeecg-system-start/pom.xml index 5ce6099..da87528 100644 --- a/jeecg-system/jeecg-system-start/pom.xml +++ b/jeecg-system/jeecg-system-start/pom.xml @@ -11,6 +11,10 @@ jeecg-system-start System项目微服务启动 + + false + + @@ -21,6 +25,7 @@ org.jeecgframework.boot jeecg-system-biz + ${biz-classifier} diff --git a/jeecg-system/pom.xml b/jeecg-system/pom.xml index 29e80ff..a778030 100644 --- a/jeecg-system/pom.xml +++ b/jeecg-system/pom.xml @@ -12,10 +12,6 @@ jeecg-system pom - - true - - jeecg-system-api jeecg-system-biz diff --git a/pom.xml b/pom.xml index e22c804..3a4009a 100644 --- a/pom.xml +++ b/pom.xml @@ -15,6 +15,7 @@ + xj 1.8 8 @@ -257,6 +258,13 @@ org.jeecgframework.boot jeecg-system-biz ${renkang.version} + xj + + + org.jeecgframework.boot + jeecg-system-biz + ${renkang.version} + obf @@ -270,18 +278,21 @@ org.jeecgframework.boot jeecg-boot-base-core ${jeecgboot-renkang.version} + xj org.jeecgframework.boot jeecg-system-local-api ${renkang.version} + xj org.jeecgframework.boot jeecg-system-cloud-api ${renkang.version} + xj @@ -646,6 +657,13 @@ + + org.apache.maven.plugins + maven-jar-plugin + + xj + + org.apache.maven.plugins @@ -728,12 +746,91 @@ true + + xj + + biz-obf + + obf + + + + + + com.github.wvengen + proguard-maven-plugin + 2.7.0 + + + package + + proguard + + + + + true + ${project.build.finalName}-xj.jar + ${project.build.finalName}-obf.jar + true + + C:/Program Files/Eclipse Adoptium/jdk-8.0.452.9-hotspot/jre/lib/rt.jar + + + proguard.cfg + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.1 + + + attach-obf-jar + package + + attach-artifact + + + + + ${project.build.directory}/${project.build.finalName}-obf.jar + + jar + obf + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + prepare-package + + copy-dependencies + + + ${project.build.directory}/dependency + provided + + + + + + + + local @@ -810,6 +907,7 @@ maven-jar-plugin 3.3.0 + xj ${start-class}