执行gradle build一直报错

一直报错 multi-project-build:core:unspecified

跟项目配置文件:
build.gradle
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'

repositories {
    mavenCentral()
}

}
settings.gradle

include 'app'
include 'core'

子项目app的:
apply plugin: 'application'

dependencies {
compile 'log4j:log4j:1.2.17'
compile project(':core')
}

mainClassName = 'net.petrikainulainen.gradle.client.HelloWorld'

task copyLicense {
outputs.file new File("$buildDir/LICENSE")
doLast {
copy {
from "LICENSE"
into "$buildDir"
}
}
}

applicationDistribution.from(copyLicense) {
into ""
}

子项目core的:
repositories {
mavenCentral()
}

dependencies {
compile("org.springframework.boot:spring-boot-starter-jdbc")
testCompile 'junit:junit:4.11'
}

1个回答

iinclude core,然后又compile core是不是重复了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问