我是混淆的新手,并试图弄清楚如何混淆使用 gradle 创建的 java 应用程序。这个想法是混淆了 gradle 构建之后创建的可运行 jar。这是gradle文件
plugins {
// Apply the java plugin to add support for Java
id 'java'
// Apply the application plugin to add support for building a CLI application.
id 'application'
}
repositories {
mavenCentral()
}
dependencies {
// This dependency is used by the application.
implementation 'com.google.guava:guava:29.0-jre'
// Use JUnit test framework
testImplementation 'junit:junit:4.13'
}
application {
// Define the main class for the application.
mainClassName = 'com.abc.gradle.hello.App'
}
jar {
manifest { …
Run Code Online (Sandbox Code Playgroud)