Using plugin faild for buildSrc project


(kvh) #1

My environment:

gradlew version 2.14.1
gradle version 3.1
mac sierra

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.


buildscript {
    repositories {
    dependencies {

repositories {

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?

(Stefan Oehme) #2

The artifactory plugin explicitly disables itself on buildSrc projects. I suggest to open an issue there.

(kvh) #3

thank god!

you just save me, i did not notice the log.

now i open an issue in

thanks a lot!