36 lines
1.2 KiB
XML
Raw Normal View History

2025-06-30 09:38:03 +08:00
<config>
<input>
<jar in="${project.build.finalName}.jar" out="${project.build.finalName}.jar"/>
</input>
<keep-names>
<class access="protected+">
<field access="protected+"/>
<method access="protected+"/>
</class>
</keep-names>
<ignore-classes>
<!-- 注意spring的框架相关的文件需要排除避免启动报错 -->
<class template="class jnpf.properties.ReportProperties"/>
</ignore-classes>
<!-- 混淆设置 -->
<!--随机类名保持小写-->
<property name="classes-naming" value="abc"/>
<!-- 接口形参名保持不变 -->
<property name="local-variables-naming" value="keep-parameters"/>
<!-- 字符串加密 -->
<property name="string-encryption" value="maximum"/>
<property name="string-encryption-type" value="strong"/>
<property name="string-encryption-version" value="v4"/>
<!-- 行数混淆 -->
<property name="line-numbers" value="obfuscate"/>
<!-- 成员重新排序 -->
<property name="member-reorder" value="enable"/>
<!-- 数据jar压缩等级 -->
<property name="output-jar-compression-level" value="9"/>
<property name="log-file" value="log.xml"/>
</config>