You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I included this code after the plugins and dependencies:
tasks.register('proguard', ProGuardTask) {
configuration file('proguard.pro')
injars(tasks.named('jar', Jar).flatMap { it.archiveFile })
// Automatically handle the Java version of this build.
if (System.getProperty('java.version').startsWith('1.')) {
// Before Java 9, the runtime classes were packaged in a single jar file.
libraryjars "${System.getProperty('java.home')}/lib/rt.jar"
} else {
// As of Java 9, the runtime classes are packaged in modular jmod files.
libraryjars "${System.getProperty('java.home')}/jmods/java.base.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
//libraryjars "${System.getProperty('java.home')}/jmods/....."
}
verbose
outjars(layout.buildDirectory.file("libs/${baseCoordinates}-minified.jar"))
}
And when reloading the build.gradle I get this error:
Build file 'D:\MasterThesis\testSubjects\proguard\spring-petclinic-main\build.gradle' line: 72
A problem occurred evaluating root project 'spring-petclinic'.
> Could not get unknown property 'ProGuardTask' for root project 'spring-petclinic' of type org.gradle.api.Project.
Also there doesn't seem to be any instructions on how to use it for pure Java projects. Is it not possible to use Proguard for non-android applications?
The text was updated successfully, but these errors were encountered:
I included this code at the top of the file:
I included this code after the plugins and dependencies:
And when reloading the build.gradle I get this error:
Also there doesn't seem to be any instructions on how to use it for pure Java projects. Is it not possible to use Proguard for non-android applications?
The text was updated successfully, but these errors were encountered: