如何在现有变量项目的帮助下完成?
class CustomPlugin implements Plugin<Project> {
void apply(Project project) {
project.task("runMyPlugin") << {
createClass(project)
getAllClass(project)
}
}
void createClass(Project project) {
//In this block need create new class file in src building project
}
void getAllClass(Project project) {
//In this method needed get reflection var building project and subproject
String packageName
def reflections = new Reflections(packageName)
}
}