How to add Freemarker to Plugin? (gradle)
已回答
Hi,
i want to use Freemarker to parse templates in my plugin.
But i cant get into my project.
a) first i added as library and then as moduls -> but on build it could not find the reference
b) i added to build.gradle.kts -> but it wasnt found in any of the sources
id("org.freemarker.freemarker") version "2.3.14"
请先登录再写评论。
Please post the full snippet of your build.gradle.kts, not just a single line
You must use "dependencies" block, not "plugins" which defines plugins for Gradle build itself. https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_dependency_management_overview
Thanks...this works for me.
I use an local Dir with a jar and renamed the jar "freemarker.ar" into "2.3.31.jar"