Open yjy8749 opened 8 years ago
now i have a work around way to deal with,but it not so good.
def resolveCompile(sourceProject){
sourceProject.buildFile.eachLine {
line -> if(line.trim().startsWith("compile ")){
if(line.indexOf("project")>=0){
line = line.replace("'","\"")
def p = project(line.substring(line.indexOf("\"")+1,line.lastIndexOf("\"")))
project.dependencies.compile p
resolveCompile(p)
}else{
if(line.indexOf("libs")>=0){
line = line.trim().substring(line.indexOf("libs.")+1);
line = libs[line]
}else{
line = line.replace("'","\"")
line = line.substring(line.indexOf("\"")+1,line.lastIndexOf("\""));
}
if(line.indexOf("messaging")>=0){
println line
}
project.dependencies.compile line
}
}
}
}
dependencies{
resolveCompile(project)
}
Can you provide a complete, compilable example, allowing to reproduce the problem?
@akhikhl Sorry For Late Reply,
cd example
gradle :a-project:appRun
then access : http://localhost:8080/print
java.lang.NoClassDefFoundError: com/project/c/CClass
access : http://localhost:8080/print I got java.lang.NoClassDefFoundError: com/project/c/CClass
How can i do for this?thanks