I wanted to make a top level enum class to use in ...
# gradle
c
I wanted to make a top level enum class to use in my build.gradle.kts but i get an error saying
Don't know how to generate outer expression: Class: class MyClassName
. Is there a trick to using enum classes with the kotlin gradle dsl?
c
You could try putting it in buildSrc
m
hmm i dont run into that issue on gradle 4.9
c
just tested it out with gradle 4.9-rc-2 and it works fine now. interesting.
oh, never mind. it didn't give me any errors after i wrote it in but as soon as i tried to use the class it gave me the same error as before
well, guess i won't do it that way then
m
I didn't try to use it, I only tried it but declaring it. Their might be an open issue for that I don't remember
👍 1