Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11571

Unresolved reference in build.gradle

$
0
0

I have been trying to agree with Gradle terms of service. However, I have experienced the following issue:Unresolved reference: gradleEnterprise

I have added such code to build.gradle file:

gradleEnterprise {        buildScan {            termsOfServiceUrl.set("https://gradle.com/terms-of-service")            termsOfServiceAgree.set("yes")        }    }

With a help of GPT-3.5 I managed to update my settings.gradle to the following state:

pluginManagement {    repositories {        google()        mavenCentral()        gradlePluginPortal()//        gradleEnterprise()        // other repositories...    }    resolutionStrategy {        eachPlugin {            if (requested.id.id == "com.gradle.enterprise") {                useModule("com.gradle:enterprise-gradle-plugin:${requested.version}")            }        }    }    plugins {        id("com.gradle.enterprise") version "3.6.3"        // other plugins...    }//    repositories {//        google()//        mavenCentral()//        gradlePluginPortal()//    }}

Is there a way to fix this problem?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>