Use .gdsl file in a Java project in IntelliJ
<p>I have a file <code>pipeline.gdsl</code> that contains the Syntax for my Jenkins Pipeline DSL. Following <a href="http://st-g.de/2016/08/jenkins-pipeline-autocompletion-in-intellij" rel="noreferrer">this blog post</a> I put the file into the <code>/src</code> folder of my Java project. When I now edit my <code>Jenkinsfile</code> (residing in the root folder of my project), I don't get any code completion / syntax explanation as I would expect.</p>

<p>My project is a Java / Gradle project and I cannot make a Groovy project out of it. Is there some other way to make IntelliJ aware of the <code>.gdsl</code> file and provide code completion?</p>