IntelliJ copyright at compile time

124 Views Asked by At

I'm working on a build script that will generate new files for my project at compile time. These files will be shared publicly so they need to include the correct copyright information. Is there any way to reference the copyright profile from IntelliJ to the build script?

Specifically I'm using Gradle so it would be nice to call something like the following:

def codeHeader = <reference to IntelliJ copyright here>
writeCopyrightToFile(codeHeader)

If that doesn't work then is it possible to define the copyright as a system property that I could use when defining the copyright profile as well as in the script?

The underlying goal is to have the copyright defined in one location.

1

There are 1 best solutions below

1
On

The copyright is stored in a file under the project file tree. Please look into the folder .idea/copyright/ There you will find the copyright xml files for reference.