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?