is the way to enable k2 using maven is ```<plug...
# k2-adopters
n
is the way to enable k2 using maven is
Copy code
<plugin>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-maven-plugin</artifactId>
                <version>1.9.0</version>
                <configuration>
                    <languageVersion>2.0</languageVersion>
                </configuration>
? and in general it would be good to have both maven/gradle in the docs
k
According to https://kotlinlang.org/docs/maven.html#specifying-compiler-options, this should work:
Copy code
<project ...>
    <properties>
        <kotlin.compiler.languageVersion>2.0</kotlin.compiler.languageVersion>
    </properties>
</project>
n
yes that's another way to specify the same config. But I want to try K2 and docs only mention gradle https://kotlinlang.org/docs/whatsnew19.html#try-the-k2-compiler-in-your-project
k
AFAIK
tryK2
is Gradle-only. For Maven, you have to set the language version to 2.0 the usual way.
n
ok if the langauge version 2.0 is the only thing to set, then my project blows up. will try to chop up some of the most common errors into separate bug reports
thank you color 1
seems like most of the errors are one way or another related to inline functions
i'll probably wait for the above one to be fixed and try again to see what's left as it's hard to tell apart if there is any other cause
174 Views