Modify build.gradle template used by the New Project generator

We use a custom maven repository internally and I want to modify Intellij to use that repository instead of defaulting to mavenCentral() when generating my gradle files.

I found the "Gradle build script" template in the File Templates in Preferences, but that file does not include the repository template. If I add my own repositories entry to that template, the generated file still contains the default mavenCentral() repositories config.

I'd like to know where that repositories config is located so I can change it.

I looked into using custom project templates too but it doesn't seem to have support for parameters (like group, artifact, version, etc).

Please sign in to leave a comment.