https://kotlinlang.org logo
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
  • b

    Bernhard

    10/25/2019, 1:40 PM
    In groovy I used build.dependsOn.remove(“check”)
    g
    • 2
    • 2
  • b

    Bernhard

    10/25/2019, 2:05 PM
    the jacoco task attaches itself to test by default but getting it to run for a custom tasks is neigh impossible
    t
    p
    • 3
    • 8
  • a

    ageery

    10/25/2019, 3:50 PM
    Is there a way to use Kotlin extension methods from a Groovy Gradle script? This article (https://touk.pl/blog/2017/08/24/using-kotlin-extensions-in-groovy) details two ways of using Kotlin extension methods in Groovy:
    use(classname)
    and the ExtensionModule file. The first method works for me in Gradle but I can't get the second to work. Also, is there a way in Groovy to call a Kotlin "function type with receiver" (e.g,
    MyObject.() -> Unit
    ) so the
    this
    reference inside the lambda in Groovy refers to the receiver (currently, I have to use
    it
    in Groovy)?
    g
    • 2
    • 1
  • b

    bjonnh

    10/25/2019, 7:48 PM
    "Gradle runs on all major operating systems and requires only a Java JDK or JRE version 8 or higher to be installed." well not JDK13 it seems…
    ✔️ 1
    s
    o
    • 3
    • 11
  • d

    Dico

    10/28/2019, 10:02 PM
    I have a kotlin-jvm project that produces an artifact using proguard. Proguard causes countless issues for the project, namely when using Jackson for deserialization of ktor content. I have a complex pipeline where specific classes and libraries are excluded from proguard processing, with two proguard steps, one for obfuscation and another for minification. I would like to be able to run my tests on the classes after the proguard step. Currently, my tests work fine before proguard, but things don't work afterwards. Does someone know how to create a Gradle test task that runs with a specific classpath?
    o
    • 2
    • 2
  • b

    bitkid

    10/29/2019, 3:50 PM
    ./gradlew check
    
    FAILURE: Build failed with an exception.
    
    * Where:
    Build file 'C:\projects\ger\build.gradle.kts' line: 8
    
    * What went wrong:
    Plugin [id: 'com.github.ben-manes.versions', version: '0.27.0'] was not found in any of the following sources:
    
    - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
    - Plugin Repositories (could not resolve plugin artifact 'com.github.ben-manes.versions:com.github.ben-manes.versions.gradle.plugin:0.27.0')
      Searched in the following repositories:
        Gradle Central Plugin Repository
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at <https://help.gradle.org>
    g
    w
    • 3
    • 21
  • s

    Slackbot

    10/29/2019, 4:29 PM
    This message was deleted.
    o
    e
    • 3
    • 2
  • m

    Malvin Sutanto

    10/31/2019, 7:43 AM
    Trying to convert my build.gradle to kts but having issue with productFlavor’s
    isDefault
    flag. I tried
    isDefault.set(true)
    but getting
    Unresolved reference
    error.
    isDefault
    itself is marked as private in
    BuildType
    class. Has anybody encountered the same issue before?
    m
    g
    • 3
    • 28
  • r

    robertoestivill

    10/31/2019, 10:30 AM
    Hello, I'm trying to disable firebase performance monitoring instrumentation for debug builds of an Android application. Sadly the examples are only in Groovy and I'm having issues understanding how should I get access to the
    FirebasePerformance
    object in order to configure it. Documentation https://firebase.google.com/docs/perf-mon/disable-sdk?platform=android Groovy example from the documentation
    groovy
    android {
      // ...
      buildTypes {
        debug {
          FirebasePerformance {
            // Set this flag to 'false' to disable @AddTrace annotation processing and
            // automatic HTTP/S network request monitoring
            // for a specific build variant at compile time.
            instrumentationEnabled false
          }
        }
      }
    }
    My
    build.gradle.kts
    has something like
    kotlin
      buildTypes {
        getByName("debug") {
            // should disable it here but don't know how to get the reference
        }
    Any idea how can I get access to the
    FirebasePerformance
    object from inside
    getByName("debug")
    ?
    ✅ 1
    m
    g
    • 3
    • 21
  • d

    Dico

    10/31/2019, 4:03 PM
    I have an issue where using
    zipTree
    on a jar file from compile dependencies causes pathnames that exceed the windows MAX_PATH limit of 260 characters. On my local machine it is fine, but my gradle CI machine has the project cloned on a slightly longer root path. I'm using it for proguard tasks a bit like this -
    val (obfuscatedClassFiles, exemptedClassFiles) = obfuscationIncludedJars
        .fold(files().asFileTree) { acc, jar -> acc + zipTree(jar) }
        .let { Pair(it.matching { exclude(*programClassesThatSkipProguard) }, it.matching { include(*programClassesThatSkipProguard) }) }
    b
    • 2
    • 4
  • g

    gmariotti

    11/02/2019, 9:09 AM
    Hi everyone, does anyone know how to publish a gradle plugin to an internal artifactory repository? I was able to upload the jar to it but I think it is missing some gradle metadata. My
    build.gradle.kts
    looks like this
    gradlePlugin {
        plugins {
            create("customPlugin") {
                id = "${project.group}.kotlin"
                implementationClass = "${project.group}.kotlin.KotlinPlugin"
            }
        }
    }
    
    publishing {
        publications {
            create<MavenPublication>("plugin") {
                from(components["kotlin"])
            }
        }
    }
    
    artifactory {
        setContextUrl("<https://internal.artifactory>")
        publish(closureOf<PublisherConfig> {
            repository(delegateClosureOf<GroovyObject> {
                val artifactoryUser: String? by rootProject
                val artifactoryKey: String? by rootProject
                setProperty("repoKey", "artifactoryRepoKey")
                setProperty("username", System.getenv("ARTIFACTORY_USERNAME") ?: artifactoryUser)
                setProperty("password", System.getenv("ARTIFACTORY_PASSWORD") ?: artifactoryKey)
                setProperty("maven", true)
            })
            defaults(delegateClosureOf<ArtifactoryTask> {
                publications("plugin")
                setPublishArtifacts(true)
                setProperties(mapOf("build.language" to "kotlin"))
            })
        })
    }
    o
    • 2
    • 3
  • a

    albrechtroehm

    11/07/2019, 12:49 PM
    Hey, i was wondering if one could use a variable which is used/defined in the
    gradle.build.kts
    (e.g. val
    versionNumber  = "1.0.1"
    ) in code. Would be nice to set the version in one place and use it for the build and for an about page or something similar
    s
    m
    +2
    • 5
    • 9
  • f

    Frodrigues

    11/07/2019, 1:42 PM
    build.gradle.kts
    m
    • 2
    • 14
  • f

    Frodrigues

    11/07/2019, 10:50 PM
    How do I configure a plugin extension in a buildSrc kt file?
    o
    • 2
    • 21
  • s

    Shan

    11/08/2019, 10:07 PM
    > Could not create task ':DependenciesReport'.
       > Unnecessarily replacing a task that does not exist is not supported.  Use create() or register() directly instead.  You attempted to replace a task named 'DependenciesReport', but there is no existing task with that name.
    Getting this error on Gradle 6.0. Anyone know what could be causing this? I believe
    DependenciesReport
    is a maven plugin task, but can't seem to find any concrete info anywhere..
    o
    • 2
    • 2
  • s

    Shan

    11/08/2019, 10:34 PM
    It seems to be an issue with a initialization script that Jetbrains is producing with the Kotlin Gradle DSL. The contents of the script file that it's have an exception with:
    initscript {
      dependencies {
        classpath files(["/Users/shan/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/192.6817.14/IntelliJ <http://IDEA.app/Contents/plugins/gradle/lib/gradle-tooling-extension-impl.jar%22,%22/Users/shan/Library/Application|IDEA.app/Contents/plugins/gradle/lib/gradle-tooling-extension-impl.jar","/Users/shan/Library/Application> Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/192.6817.14/IntelliJ <http://IDEA.app/Contents/lib/gson-2.8.5.jar%22])|IDEA.app/Contents/lib/gson-2.8.5.jar"])>
      }
    }
    allprojects {
      afterEvaluate { project ->
        if(project.path == ':') {
            project.tasks.create(name: 'DependenciesReport', overwrite: true, type: org.jetbrains.plugins.gradle.tooling.tasks.DependenciesReport) {
    outputFile = project.file("/private/var/folders/2w/1d5gpbj54_s_gkmfc4xywkdh0000gn/T/dependencies.json")
    configurations = []
    
            }
        }
      }
    }
    Untitled
    o
    c
    • 3
    • 6
  • f

    Frodrigues

    11/08/2019, 11:12 PM
    With static types?
    c
    • 2
    • 2
  • n

    nuhkoca

    11/10/2019, 7:50 PM
    Hi all, is there anyone help me about how can I add
    kotlin sourceSets
    to my project. Below is not working. I am really stuck on it.
    sourceSets {
            getByName("main").java.srcDirs("src/main/kotlin")
        }
    o
    n
    • 3
    • 13
  • r

    robertoestivill

    11/11/2019, 9:18 AM
    Hello everyone. With Gradle 6.0, build scripts are not able to reference
    buildSrc/src/main/kotlin/MyClass.kt
    anymore. Note that this classes don't have a package as they are in the root of the source set and therefore there was no need for import statements from the different modules
    build.gradle.kts
    . After the upgrade I'm getting
    Unresolved reference: MyClass
    everywhere in the project. Any ideas ?
    m
    • 2
    • 5
  • b

    BorzdeG

    11/11/2019, 11:54 AM
    Hi! Tell me, does gradle-idea-ext-plugin work with Kotlin DSL? build.gradle.kts:
    import org.jetbrains.gradle.ext.*
    
    plugins {
      id("org.jetbrains.gradle.plugin.idea-ext") version "0.7"
    }
    
    idea {
      project {
        settings {
        }
      }
    }
    Script compilation error: Line 9: settings { ^ Unresolved reference: settings
    • 1
    • 1
  • a

    António Bastião

    11/12/2019, 4:17 PM
    Hi everyone, any help to convert
    commandLine "xcrun", "simctl", "spawn", device, binary.absolutePath
    into kotlin?
    o
    • 2
    • 6
  • f

    Frodrigues

    11/13/2019, 8:11 AM
    jackson-bom
    o
    • 2
    • 2
  • c

    christophsturm

    11/13/2019, 10:44 AM
    I updated my pitest gradle plugin and now i get this error:
    Type mismatch: inferred type is List<String> but ListProperty<String!>! was expected
    this is how my config looks like:
    plugins.withId("info.solidsoft.pitest") {
        configure<PitestPluginExtension> {
            jvmArgs = listOf("-Xmx512m")
            testPlugin = "junit5"
            avoidCallsTo = setOf("kotlin.jvm.internal")
            mutators = setOf("NEW_DEFAULTS")
            targetClasses = setOf("randolf.*")  //by default "${project.group}.*"
            targetTests = setOf("randolf.*")
            pitestVersion = "1.4.10"
            threads = System.getenv("PITEST_THREADS")?.toInt() ?:
                    Runtime.getRuntime().availableProcessors()
            outputFormats = setOf("XML", "HTML")
        }
    }
    • 1
    • 1
  • t

    thana

    11/14/2019, 11:34 AM
    how would i add the compiler arguments (MPP) using the kotlin gradle dsl?
    -Xuse-experimental=kotlin.contracts.ExperimentalContracts
    m
    • 2
    • 2
  • p

    pabl0rg

    11/14/2019, 3:50 PM
    Hi Gradle connaisseurs. I have defined (in kts) a project as depending on another project in this way:
    dependencies {
         implementation(project(":ecommerceApi"))
    }
    But when I run
    gradlew -p mainproj check
    , gradle tries to build this project before the one upon which i declared a dependency, and build fails with
    Unresolved reference: ecommerceApi
    .
    g
    • 2
    • 7
  • p

    pabl0rg

    11/14/2019, 3:51 PM
    It would be awesome if Gradle could work like Kobalt and use regular kotlin vals to hold references to projects. It feels like this is put together with tape and I'm not sure what i've taped up wrong.
    j
    • 2
    • 3
  • e

    eekboom

    11/15/2019, 8:29 AM
    I just tried to upgrade to gradle 6.0 (from 5.6.3). Now this code in
    settings.gradle
    fails with “Unresolved reference: artifactoryUsername”:
    val artifactoryUsername: String by settings
    val artifactoryPassword: String by settings
    
    pluginManagement {
    	repositories {
    		maven(url = "<https://artifacts.company.com/artifactory/gradle-plugins-proxy>") {
    			credentials {
    				username = artifactoryUsername
    				password = artifactoryPassword
    			}
    		}
    	}
    }
    Every developer has these properties set in their ~/.gradle/gradle.properties Any ideas?
    e
    • 2
    • 3
  • e

    eekboom

    11/15/2019, 2:17 PM
    How do I convert this groovy code to kotlin:
    task sourcesJar(type: Jar) {
                archiveClassifier = 'sources'
                from sourceSets.main.allJava
            }
    I got so far as
    tasks.register<Jar>("sourcesJar") {
                archiveClassifier.set("sources")
                from(sourceSets.main.????)
            }
    I have groovy and groovy sources now, so “allJava” makes no sense anymore anyway.
    o
    • 2
    • 2
  • v

    Vincent Williams

    11/17/2019, 6:13 PM
    Hey im having issues with the
    subprojects
    section in the root gradle file. I cant seem to be able to use the
    android
    block inside the
    subprojects
    block when I use kts gradle files
    g
    • 2
    • 23
  • t

    trathschlag

    11/19/2019, 10:29 AM
    Hi, I'm getting some warning everytime I compile the
    buildSrc
    (I am using precompiled kotlin scripts for configuring our projects):
    w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
        /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-1.3.50.jar (version 1.3)
        /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-common-1.3.50.jar (version 1.3)
        /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-jdk8-1.3.50.jar (version 1.3)
        /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-jdk7-1.3.50.jar (version 1.3)
        /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-reflect-1.3.50.jar (version 1.3)
        /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.60/5cb6bf19bab36ab9d10b216356e869250c686a09/kotlin-stdlib-jdk8-1.3.60.jar (version 1.3)
        /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.50/b499f22fd7c3e9c2e5b6c4005221fa47fc7f9a7a/kotlin-reflect-1.3.50.jar (version 1.3)
        /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.60/a42a01c0338795930e0a7d8f9d19acafdd1c50ee/kotlin-stdlib-jdk7-1.3.60.jar (version 1.3)
        /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar (version 1.1)
        /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.60/984644b61450add3bcef8cf20f948fec458b420d/kotlin-stdlib-1.3.60.jar (version 1.3)
        /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.60/538bd29b2d5a7d278a7188f89c3b84183fa37f75/kotlin-stdlib-common-1.3.60.jar (version 1.3)
    w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
    w: /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar: kotlin-stdlib-jre7 is deprecated. Please use kotlin-stdlib-jdk7 instead
    Kotlin 1.3.60 is newer than 1.3.50 packaged with gradle 6. But why is there this kotlin-stdlib-jre7-1.1.0.jar? Does anybody know?
    p
    t
    • 3
    • 5
Powered by Linen
Title
t

trathschlag

11/19/2019, 10:29 AM
Hi, I'm getting some warning everytime I compile the
buildSrc
(I am using precompiled kotlin scripts for configuring our projects):
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-1.3.50.jar (version 1.3)
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-common-1.3.50.jar (version 1.3)
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-jdk8-1.3.50.jar (version 1.3)
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-jdk7-1.3.50.jar (version 1.3)
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-reflect-1.3.50.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.60/5cb6bf19bab36ab9d10b216356e869250c686a09/kotlin-stdlib-jdk8-1.3.60.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.50/b499f22fd7c3e9c2e5b6c4005221fa47fc7f9a7a/kotlin-reflect-1.3.50.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.60/a42a01c0338795930e0a7d8f9d19acafdd1c50ee/kotlin-stdlib-jdk7-1.3.60.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar (version 1.1)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.60/984644b61450add3bcef8cf20f948fec458b420d/kotlin-stdlib-1.3.60.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.60/538bd29b2d5a7d278a7188f89c3b84183fa37f75/kotlin-stdlib-common-1.3.60.jar (version 1.3)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
w: /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar: kotlin-stdlib-jre7 is deprecated. Please use kotlin-stdlib-jdk7 instead
Kotlin 1.3.60 is newer than 1.3.50 packaged with gradle 6. But why is there this kotlin-stdlib-jre7-1.1.0.jar? Does anybody know?
p

pawegio

11/19/2019, 10:40 AM
have you tried gradle 6.0.1?
t

trathschlag

11/19/2019, 10:57 AM
I just tried it. Unfortunately the warning is still there.
t

tapchicoma

11/19/2019, 6:05 PM
imho, one of dependencies is pulling kotlin
1.1.0
stdlib. You could check it via build scan.
t

trathschlag

11/20/2019, 9:24 AM
Thanks, I found it. I couldn't do a build scan, but I could run
../gradlew :dependencies
inside
buildSrc
and it revealed that some old and unsused plugin pulled in the library.
👍 1
t

tapchicoma

11/20/2019, 9:35 AM
Gradle 6.X becomes more strict regarding dependencies version. That is why you saw it after update
View count: 5