https://kotlinlang.org logo
Title
c

chadmorrow

07/18/2018, 8:29 PM
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

Czar

07/18/2018, 8:42 PM
You could try putting it in buildSrc
m

mkobit

07/18/2018, 8:46 PM
hmm i dont run into that issue on gradle 4.9
c

chadmorrow

07/18/2018, 8:52 PM
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

mkobit

07/18/2018, 10:08 PM
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