For debugging purpose only, try to add following piece of code in build.gradle of subproject_2
tasks.named('compileJava'){ dependsOn(':subproject_1:build') }