I have a simple question, but google and stackoverflow results did not satisfy me at all.
How to define the Constants class as:
public class Constants { public static final int SYSTEM_USER_ID = 1; }
which can be called everywhere with Constants.SYSTEM_USER_ID
I tried it in grails-app/utils and src/java , but, for example, I could not access the Service class.
source share