My environment:
gradlew version 2.14.1
gradle version 3.1
mac sierra
jdk:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
I am building a multi-project project, with a buildSrc project.
I want to use artifactory
plugin in this buildSrc project.
buildSrc/build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("org.jfrog.buildinfo:build-info-extractor-gradle:4.4.0")
}
}
repositories {
jcenter()
}
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
artifactory {
}
i get the following error:
Error:Could not find method artifactory() for arguments [artifactory_57tzk4yymlj2f7o2x2274ugd5$_run_closure2@33af4f71] on root project 'buildSrc' of type org.gradle.api.Project.
what is weird, when i using this plugin in a non-buildSrc project, it is ok.
My Question:
Is there any difference in classpath resolving policy between buildSrc project and non-buildSrc project? Why is it failed for my?