implementation 'jakarta.platform:jakarta.jakartaee-api:9.1.0'
is Groovy syntactic sugar for
implementation('jakarta.platform:jakarta.jakartaee-api:9.1.0')
What you actually want to call without sugar is (parentheses and comma)
implementation('jakarta.platform:jakarta.jakartaee-api:9.1.0', {
because 'we parse emails using the javax.mail package'
})
for which there is for example this ugly sugared version
implementation 'jakarta.platform:jakarta.jakartaee-api:9.1.0', {
because 'we parse emails using the javax.mail package'
}
or the nicer
implementation('jakarta.platform:jakarta.jakartaee-api:9.1.0') {
because 'we parse emails using the javax.mail package'
}