一个gradle项目:build.gradle
apply plugin: 'groovy'
apply plugin: 'maven'
version = '1.0'
group = 'davenkin'
archivesBaseName = 'hellotask'
repositories.mavenCentral()
dependencies {
compile gradleApi()
groovy localGroovy()
}
uploadArchives {
repositories.mavenDeployer {
repository(url: 'file:../lib')
}
}
另一个gradle项目:build.gradle
buildscript {
repositories {
maven {
url 'file:../lib'
}
}
dependencies {
classpath group: 'davenkin', name: 'hellotask', version: '1.0'
}
}
task hello(type: davenkin.HelloWorldTask)
当我进入命令行时:gradle hello 错误:
* What went wrong:
A problem occurred evaluating root project 'gradle1'.
> Could not find property 'davenkin' on root project 'gradle1'.
谁能帮助我?