https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
gradle
  • a

    André Martins

    03/25/2022, 10:34 AM
    Hey how can I split configuration of a plugin through multiple build.gradle.kts scripts? I have to configure different types and want to have a file that simply exports that config for a certain type then include all the subscripts in the build.gradle.kts Is the only way to do this with buildSrc or can I use apply from?
    v
    8 replies · 2 participants
  • o

    Ola Adolfsson

    03/27/2022, 2:36 PM
    ¨
    ⁉️ 4
    1 reply · 1 participant
  • f

    Francesc

    03/28/2022, 8:07 PM
    I want to create a precompiled build script plugin for an Android app but I'm getting an error in the plug-in,
    android
    is not defined. Looks like I'm missing some dependencies possibly, does anybody have an example to follow or some hints on what the issue might be? Details in thread.
    t
    e
    8 replies · 3 participants
  • f

    Francesc

    03/28/2022, 8:26 PM
    following on from the message above, I have a versions catalog where I define the dependencies - is it possible to use that in the
    buildSrc/build.gradle.kts
    ? Details in thread
    e
    v
    22 replies · 3 participants
  • m

    Marc Knaup

    04/03/2022, 9:20 PM
    Is there a replacement that doesn’t use the deprecated
    withConvention
    ?
    t
    1 reply · 2 participants
  • m

    Marc Knaup

    04/03/2022, 9:28 PM
    Why are there so many ways to set Java & Kotlin versions? Which is the right one for a JVM project? And why do I keep getting this message?
    Language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
    👍 1
    z
    d
    2 replies · 3 participants
  • r

    Rachel Carandang

    04/04/2022, 7:22 PM
    I’m not sure if this is the right channel, but I recently upgraded a library I own from Kotlin 1.5.30 to 1.6.10, along with the kotlin-gradle plugin, and am using JVM 11 and Gradle 7.0.2. Now I have a consumer app of this library which is now failing to compile because it’s not recognizing a bunch of interface/companion object properties. The consumer app uses Kotlin 1.6.10 and the same gradle plugin and JVM. Everything was working with 1.5.30 and the only thing I changed was the Kotlin version. Here’s an example: In the library, I have this object:
    object Scopes {
      fun serial(): CoroutineScope = CoroutineScope(...)
    }
    In the consumer app of the library, I’m getting this new error:
    Scopes.serial() -> Unresolved reference: serial
    Java 8 Bytecode from consumer app:
    public final class Scopes {
        @NotNull
        public static final Scopes INSTANCE = new Scopes();
    However, I call Scopes.INSTANCE.serial() it works. Additionally, I’m getting errors with accessor properties in interfaces not being recognized in the consumer app, even though the decompiled java bytecode says it’s there. Is there an additional compiler configuration I’m missing?
    a
    t
    7 replies · 3 participants
  • j

    Jeff Tycz

    04/07/2022, 12:11 AM
    I have a Kotlin Multiplatform Mobile project and I am trying to write custom lint checks for android. I created a lint check module with the custom checks and not I am trying to add the module to the KMM library project module. The examples I have seen are just for normal android apps and using Groovy for their gradle files where I am using kotlin dsl so I am not sure what to do here but I tried to add the
    lintPublish
    to the
    androidMain
    dependencies like this
    val androidMain by getting {
                dependencies {
                    lintPublish(project(":lint"))
                    implementation("androidx.core:core-ktx:1.7.0")
                    implementation("io.ktor:ktor-client-android:1.6.7")
                    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0")
                }
            }
    but the kotlin dsl does not recognize
    lintPublish
    . The exact error is
    Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
    What am I doing wrong, do I place the lintPublish somewhere else? Does KMM work with custom lint checks?
    k
    1 reply · 2 participants
  • a

    André Martins

    04/07/2022, 4:15 PM
    Hey guys, been looking how to make a fat jar from kotlin, was looking at this although its not working (im using gradle 7+) any suggestions?
    e
    t
    +3
    12 replies · 6 participants
  • j

    Jerv Norsk

    04/08/2022, 9:31 AM
    Hello, I have a problem with JVM Multiplatform and Application plugins, I can not run my main
    plugins {
        kotlin("multiplatform")
        application
    }
    
    application {
        mainClass.set("io.github.jervnorsk.aden.server.Main")
    }
    
    kotlin {
        jvm {
            testRuns["test"].executionTask.configure {
                useJUnitPlatform()
                testLogging {
                    events = setOf(
                        org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
                        org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
                    )
                    exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
    
                    showExceptions = true
                    showStandardStreams = true
                }
            }
    
        }
        sourceSets {
            val commonMain by getting {
                dependencies {}
            }
            val commonTest by getting {
                dependencies {
                    implementation(kotlin("test"))
                }
            }
            val jvmMain by getting {
                dependencies {
                    implementation("io.ktor:ktor-server-core:${extra["ktor.version"]}")
                    implementation("io.ktor:ktor-server-netty:${extra["ktor.version"]}")
                    implementation("ch.qos.logback:logback-classic:1.2.5")
                }
            }
        }
    }
    v
    t
    +1
    12 replies · 4 participants
  • ł

    Łukasz Gendek

    04/11/2022, 8:24 AM
    my build.gradle file contains the folowing section:
    compileKotlin {
        kotlinOptions {
            jvmTarget = "14"
            allWarningsAsErrors = true
            freeCompilerArgs += [
    
                    "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
                    "-Xopt-in=kotlin.RequiresOptIn",
                    "-Xopt-in=kotlinx.coroutines.ObsoleteCoroutinesApi"]
        }
    }
    However since kotlin 1.6.0 the -Xopt-in flag shoud be replaced with -opt-in. The problem is that I often switch kotlin version (and then I remove/add the X character). Is there a way to have one gradle file that works for both kotlin 1.5 and kotlin 1.6?
    v
    t
    +2
    14 replies · 5 participants
  • d

    darkmoon_uk

    04/12/2022, 9:13 AM
    Just putting it out there in case anyone else is seeing this: Taking my project from Kotlin
    1.6.10
    to
    1.6.20
    causes this
    StackOverflowError
    when Gradle syncing the project. Same result on Gradle
    7.4.2
    and
    7.4.1
    Stack Overflow Error on Kotlin Upgrade.txt
    t
    29 replies · 2 participants
  • u

    ursus

    04/12/2022, 7:25 PM
    Hi, do we know what all network related is Intellij IDE gradle sync doing? It hangs why I’m connected to VPN, and I need to allow this traffic
    v
    8 replies · 2 participants
  • h

    hfhbd

    04/13/2022, 12:36 PM
    Hey, I want to implement a custom Plugin which should also apply the kotlin plugin. I am using
    KotlinPlatformJvmPlugin
    , which works, but I am getting a deprecated info. What is the updated plugin class?
    t
    7 replies · 2 participants
  • j

    janvladimirmostert

    04/17/2022, 2:47 PM
    is it possible to define variables in
    gradle.properties
    (like coroutinesVersion=1.6.1 or kotlinVersion=1.6.20) and then inside build.gradle.kts access it somehow?
    plugins {
       kotlin("multiplatform").version(kotlinVersion).apply(false)
    val commonMain by getting {
       dependencies {
          api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
    Alternatively, what is the consensus on using version catalogues (define a catalogue in the root and then keep all the module depenendency versions in sync like this) https://docs.gradle.org/current/userguide/platforms.html
    m
    v
    14 replies · 3 participants
  • m

    myanmarking

    04/20/2022, 10:09 AM
    using version catalogs, how do you check for dependency updates ?
    b
    v
    +2
    11 replies · 5 participants
  • j

    jannis

    04/20/2022, 1:51 PM
    I'm using a Gradle composite build for my custom plugins. I'm also using the version catalog for my dependencies, which I'm also using in my composite build. Every time the composite build module is rebuilt I get the following error:
    Unresolved reference: versionCatalogs
    However everything works fine besides this error. I can build my (android) app without any other problems. The CLI never reports this error. Someone has an idea how to solve this? This is my
    settings.gradle.kts
    file within the composite build:
    dependencyResolutionManagement {
        versionCatalogs {
            create("libs") {
                from(files("../gradle/libs.versions.toml"))
            }
        }
    }
    I'm using the latest stable Gradle Version (7.4.2)
    v
    j
    24 replies · 3 participants
  • n

    nuhkoca

    04/20/2022, 1:52 PM
    Hello, how can I use `Gadle`’s new
    jacoco-report-aggregation
    for Android projects. Google around a bit and check
    Gradle
    documentation but couldn’t adapt it for my project. Can somebody shed some light on this? Thank you!
    ✅ 1
    e
    6 replies · 2 participants
  • m

    martmists

    04/20/2022, 8:26 PM
    In a gradle plugin, how do I access all native sourcesets in a given project?
    b
    2 replies · 2 participants
  • j

    janvladimirmostert

    04/20/2022, 10:06 PM
    is it possible to share versionCatalogs between projects? ProjectA contains a VersionCatalog
    dependencyResolutionManagement {
       versionCatalogs {
          create("blah") {
    
             val coroutinesVersion = "1.6.1"
             library("kotlinx-coroutines-core", "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
             library("kotlinx-coroutines-jdk8", "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutinesVersion")
    and inside ProjectA, any module that needs coroutines, just
    implement(blah.kotlinx.coroutines.core)
    now ProjectB's settings.gradle.kts contains
    // blah
    includeBuild("../blah-framework")
    and I can include modules like this:
    implementation("io.blah:blah-module-1")
    implementation("io.blah:blah-module-2")
    Now in projectB, I want to include coroutines but I want to lock the version to whatever the version is in blah-framework and just include it
    implementation(blah.kotlinx.coroutines.core)
    is this possible with versionCatalogs?
    v
    1 reply · 2 participants
  • j

    James Eschner

    04/21/2022, 2:54 PM
    Ever since my upgrade to 2022.1 (Ultimate Edition) I am seeing “Invalid value: -1” errors whenever I try to run a gradle task from IntelliJ. For example, let’s say I try to run the
    assemble
    task, it appears that the code compiles successfully, but then as a very last step IntelliJ fails with “Invalid value: -1". Kotlin version: 1.6.20 Gradle version: 7.4.2 I don’t have any issues running the
    assemble
    task from the command line, so I know it is something to do with IntelliJ. Anyone else seeing this? ** Not a contribution
    t
    1 reply · 2 participants
  • a

    Ayfri

    04/21/2022, 4:12 PM
    Hi, I have a very weird problem, when launching a GitHub Action, gradle doesn't find a task that I can find myself locally,
    publishToSonatype
    , here's my workflow file and here's the result I'm just trying to publish all my modules to sonatype at once using a github action and it's very very hard. When using
    ./gradlew tasks
    the task is there
    j
    4 replies · 2 participants
  • m

    martmists

    04/24/2022, 10:31 PM
    Is anything known about when gradle will support plugins written in more recent kotlin versions? It's very annoying to be limited to kotlin 1.5.31 throughout my entire project because gradle doesn't use a newer version and as such the plugin subproject needs to use 1.5.31
    e
    4 replies · 2 participants
  • m

    Marc Knaup

    04/25/2022, 11:27 AM
    Looks like Kotlin 1.6.20 broke dependency resolution of MPP with composite builds… again 🙁 But this time it’s not just in the IDE. Even Gradle cannot find some symbols anymore 😮 Anyone else ran into the same issue?
    😔 2
    t
    s
    +1
    3 replies · 4 participants
  • t

    tseisel

    04/27/2022, 6:20 PM
    Where would you define your project's Gradle convention plugin? 1️⃣ in buildSrc 2️⃣ included build 3️⃣ Elsewhere I just discovered from that article that buildSrc and included builds both have performance issues...
    1️⃣ 3
    2️⃣ 6
    3️⃣ 2
    t
    e
    +5
    8 replies · 8 participants
  • m

    Muhammad Talha

    04/28/2022, 8:29 AM
    Hi all - New to gradle. I’m sure I’m doing something silly, but I’m trying to add a jar building capability to my gradle file. But I’m getting an error:
    Expression 'jar' cannot be invoked as a function. The function 'invoke()' is not found
    . I already added the
    java
    plugin in the
    plugins
    function. Would any one be able to provide some guidance? Thanks!
    import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
    
    plugins {
        kotlin("jvm") version "1.6.21"
        java
        application
    }
    
    group = "me.talha"
    version = "1.0-SNAPSHOT"
    
    repositories {
        mavenCentral()
    }
    
    dependencies {
        testImplementation(kotlin("test"))
    }
    
    tasks.test {
        useJUnitPlatform()
    }
    
    tasks.withType<KotlinCompile>() {
        kotlinOptions.jvmTarget = "11"
    }
    
    application {
        mainClass.set("MainKt")
    }
    
    jar {
        manifest {
            attributes 'Main-Class': 'MainKt'
        }
    }
    v
    e
    16 replies · 3 participants
  • a

    Ayfri

    04/29/2022, 3:22 PM
    Hi, what is the best way to declare dependencies between
    buildSrc
    and version catalogs ?
    r
    t
    +2
    7 replies · 5 participants
  • m

    maarten ha

    04/29/2022, 4:51 PM
    Currently I'm trying out multi module with kotlin and gradle. Also trying to implement gitlab cicd pipeline. But how can I have al the test results of the multiple modules show in gitlab? I tried a plugin (test report aggregation) but that wasn't the right plugin because it doesn't aggregate the xml files but it does the html ones. Does anyone have an idea how I can show all my test result in gitlab after a test run?
    m
    v
    14 replies · 3 participants
  • d

    Dilraj Singh

    04/29/2022, 7:55 PM
    Hi everyone, I am trying to do some custom logic for each build variant. I am trying to use the new
    onVariants
    API, but it is not working, throwing
    groovy.lang.MissingMethodException
    . The below snippet contains the code which I have added to my
    app/build.gradle
    -
    plugins {
        //...
    }
    
    android {
        //...
    }
    
    androidComponents {
        onVariants { variant ->
    
        }
    }
    c
    t
    3 replies · 3 participants
  • n

    nkiesel

    05/03/2022, 9:12 AM
    I successfully upgraded my project to Kotlin 1.6.21, but after changing
    plugins { id "org.jetbrains.kotlin.jvm" version "1.6.0" }
    to
    plugins { id "org.jetbrains.kotlin.jvm" version "1.6.21" }
    I now get: "DefaultTaskContainer#register(String, Class, Object...) on task set cannot be executed in the current context." This is with Gradle 6.9.2. Any idea what I'm doing wrong?
    t
    11 replies · 2 participants
Powered by Linen
Title
n

nkiesel

05/03/2022, 9:12 AM
I successfully upgraded my project to Kotlin 1.6.21, but after changing
plugins { id "org.jetbrains.kotlin.jvm" version "1.6.0" }
to
plugins { id "org.jetbrains.kotlin.jvm" version "1.6.21" }
I now get: "DefaultTaskContainer#register(String, Class, Object...) on task set cannot be executed in the current context." This is with Gradle 6.9.2. Any idea what I'm doing wrong?
t

tapchicoma

05/03/2022, 10:05 AM
Could you provide full stacktrace?
n

nkiesel

05/03/2022, 5:35 PM
Sure. Line 713 in my
build.gradle
is:
161  subprojects { subproject ->
   162
   163      if (name in excludedProjectNames) {
   164          // skip applying 'gradle' plugins
   165          // to avoid the creation of empty jars
   166          return
   167      }
   168
   169      apply plugin: 'java-library'
   170      apply plugin: 'eclipse'
   171      apply plugin: 'maven'
   172      apply plugin: 'jacoco'
   173      apply plugin: 'org.jetbrains.kotlin.jvm'
   174      apply plugin: 'org.jlleitschuh.gradle.ktlint'
   175      apply plugin: 'io.gitlab.arturbosch.detekt'
log
and
settings.gradle
contains:
1  pluginManagement {
     2      repositories {
     3          gradlePluginPortal()
     4          maven {
     5              name "ext-release-local"
     6              url "<https://artifactory.rnd.metricstream.com/artifactory/ext-release-local>"
     7          }
     8      }
     9
    10      plugins {
    11          id "com.gradle.enterprise" version "3.7.1"
    12          id "org.sonarqube" version "2.8"
    13          id "de.fayard.buildSrcVersions" version "0.7.0"
    14          //id "com.palantir.jacoco-full-report" version "0.4.0"
    15          id "com.github.voplex95.lesscompiler" version "1.0.3"
    16          id "com.moowork.node" version "1.1.1"
    17          id "com.moowork.grunt" version "1.2.0"
    18          id "com.bmuschko.cargo" version "2.1"
    19          id "org.jetbrains.kotlin.jvm" version "1.6.21"
    20          id "org.jlleitschuh.gradle.ktlint" version "9.4.1"
    21          id "io.gitlab.arturbosch.detekt" version "1.16.0"
    22          id 'net.ltgt.errorprone' version "1.2.1"
    23          id "nebula.lint" version "17.1.0"
    24      }
    25  }
    26
t

tapchicoma

05/04/2022, 3:15 PM
Could you try with just released KGP version
1.7.0-Beta
and if it is still failing - open a new issue with repro?
n

nkiesel

05/04/2022, 4:53 PM
It works with
id "org.jetbrains.kotlin.jvm" version "1.7.0-Beta"
. However, I cannot use beta versions right now. So should I stick with
1.6.0
for the time? What are the downsides of using plugin
1.6.0
with version
1.6.21
for the rest (stdlib, embeddable-compiler, reflect, ...)?
t

tapchicoma

05/04/2022, 5:24 PM
yep, then just stick with
1.6.0
. We would not release
1.6.22
version, so you have to wait for final
1.7.0
release
What are the downsides of using plugin
1.6.0
with version
1.6.21
for the rest (stdlib, embeddable-compiler, reflect, ...)?
Theoretically should be no downsides or issues
n

nkiesel

05/04/2022, 5:25 PM
I will quote you on that 🙂
🙂 1
thx for your help. BTW: I was not able to find the
1.7.0-Beta
tag in github (was curious to compare the 2 versions)
t

tapchicoma

05/04/2022, 5:26 PM
release is still in the progress. Should appear soon
FYI: https://github.com/JetBrains/kotlin/releases/tag/v1.7.0-Beta
View count: 26