I have a project my_project
. I would like to compile it and after compilation I would like to access some classes which are in that project, e.g. create new object MyDataClass
and print it.
This is what I am trying to do in my build.gradle:
doLast {
MyDataClass toPrint = new MyDataClass()
System.out.println(toPrint)
}
I think I have to somehow specify classpath in buildscript block for my_project
but I really new to gradle and I do not know how how to do that.
Thank you for any help.