Could not find method compile() for a multi module project

后端 未结 1 792
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-17 00:18
dependencies {
    compile project(\'client\')
    compile project(\'-cache
\')

Now when I comment out compile project(\'product-cache-client

相关标签:
1条回答
  • 2021-01-17 00:52

    Add the java plugin on top of your parent build, for me this works:

    apply plugin:'java'

    It is recommended here - the second answer Could not find method compile() for arguments Gradle And also switch the 'dependencies' with 'repositories' - at least in the sample of build.gradle you wrote here they are switched.

    0 讨论(0)
提交回复
热议问题