Hi all I'm using Gradle version 7.4.2, with kotli...
# gradle
r
Hi all I'm using Gradle version 7.4.2, with kotlin dsl, and getting the following message "Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined..." I tried to add
Copy code
buildScan {
  termsOfServiceUrl = '<https://gradle.com/terms-of-service>'
  termsOfServiceAgree = 'yes'
}
but I always get error
v
You probably get an error because that is not valid Kotlin code
But as always, it would help if you specify which error you get
n
try using
""
instead of
''
r
message has been deleted
v
As usual, 1 hour of trial and error can save you 5 minutes of reading documentation 😉
n
looks like you might not have applied the Gradle Enterprise Gradle Plugin
v
Even then it wouldn't work, as he misses the wrapping
gradleEnterprise { ... }
and uses Groovy syntax in a Kotlin DSL file. 😉 All shown in detail in the linked documentation. 🙂