i'm tring to make a gradle Multi-project Builds but i have some problems with compiling, it said:
Failed to create MD5 hash for file content.
I have a root project that contains only resources and subrojects that contains only sources and i want to access this resources in every subproject. The paradox is that i made it to see all mai resources but dont work anything like : build, Run File... All bring me the same error and i dont know why.
I want to make a one fat app server with emmbedded tomcat and springboot, and all dependencies i want them to be stored locally with flatDir
This is my multi-project structure:
PROJECTS
-resources
*media
*libraries
-sources
-SUBPROJECT1
-SUBPROJECT2
My root build.gradle:
//description = 'projects'
allprojects {
apply plugin: 'java'
}
sourceSets {
main.resources.srcDir 'resources'
}
repositories {
flatDir dirs: '../resources'
}
dependencies {
compile fileTree(dir:'/')
// compile fileTree(dir:'/').filter{ it.isFile()}
}
subprojects {
sourceSets {
main.java.srcDir '/'
}
dependencies {
compile rootProject
}
}
And this is my settings.gradle:
rootProject.name = 'projects'
include 'sources:SUBPROJECT_V0'
include 'sources:SUBPROJECT_V1'
include 'sources:SUBPROJECT_V2'
My dependencies was seen but only cannot compile anithing:
import java.io.File;
import org.apache.catalina.WebResourceRoot;
import org.apache.catalina.core.StandardContext;
import org.apache.catalina.startup.Tomcat;
import org.apache.catalina.webresources.DirResourceSet;
import org.apache.catalina.webresources.StandardRoot;