Should test.systemProperties idea.path.home really be defined in build.gradle?

Answered

I am following along with the tutorial here for a custom language plugin, and I am confused about the part that says idea.path.home needs to be defined in build.gradle. It does not seem like best practice to me to put local paths in a file that is meant to be committed to the VCS. I have looked at a few plugins like https://github.com/JetBrains/idea-gitignore and https://github.com/go-lang-plugin-org/go-lang-idea-plugin, and I do not see them defining systemProperties in test in build.gradle, and I cannot find where they define it.

What is the proper way to configure these test properties in a real world plugin?

1 comment
Comment actions Permalink

See https://docs.gradle.org/current/userguide/build_environment.html there are various solutions to externalize such configuration properties.

1

Please sign in to leave a comment.