dProtect
dProtect copied to clipboard
dProtect Gradle plugin location unclear
I'm struggling with the loading of the dProtect plugin using Kotlin DSL:
plugins {
//...
id("re.obfuscator.dprotect") version "1.0.0"
//...
}
Based on debug output Gradle looks for the POM at the following non-existent location (I added the package repo in settings.gradle):
https://maven.pkg.github.com/open-obfuscator/dProtect/re/obfuscator/dprotect/re.obfuscator.dprotect.gradle.plugin/1.0.0/re.obfuscator.dprotect.gradle.plugin-1.0.0.pom
It would be really helpful if you could provide configurations in Kotlin DSL syntax too.
Edit: It seems the problem is not Kotlin DSL, but that the plugin is not published in the first place: I tried using Groovy, following the docs, with the same result. The solution is to include dprotect.jar from the distribution zip in the buildscript classpath. Some useful links for those having similar problems:
- https://docs.gradle.org/current/userguide/plugins.html#sec:applying_binary_plugins
- https://stackoverflow.com/questions/40815155/add-plugin-to-gradle-buildscript-from-a-local-jar