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
build-tools
  • c

    cedric

    08/29/2019, 9:24 PM
    Has anyone been able to use
    run {}
    (
    JavaExec
    plug-in) in Gradle but in Kotlin? It can’t work out of the box since
    run
    is part of the standard library, but even importing it and renaming it to
    _run
    still won’t let me use Gradle’s
    run
    symbol…
    s
    g
    14 replies · 3 participants
  • j

    jmmk

    09/24/2019, 6:22 PM
    Now that JDK 13 is GA, is it planned for
    jvmTarget
    setting in the build plugins to support
    13
    ?
    u
    2 replies · 2 participants
  • r

    Ran

    10/29/2019, 10:02 AM
    Hi All, Has anyone manage to run maven with failsafe plugin on Junit 5 with parallel execution ?
    a
    5 replies · 2 participants
  • e

    Eugen Martynov

    12/18/2019, 11:59 AM
    Oke I see it get jvm arguments from gradle daemon
    t
    2 replies · 2 participants
  • k

    Kstabks

    12/21/2019, 1:22 AM
    Hi guys, can you recommend some good book/course for mastering the Gradle and CI for android development? Preferably something up to date/fresh. For example, is it good book? https://www.packtpub.com/application-development/gradle-android
    t
    1 reply · 2 participants
  • v

    Vijay

    02/03/2020, 4:03 AM
    Newbie in Kotlin here, would love to know what build tools community prefer for Kotlin dev in general.
    s
    j
    3 replies · 3 participants
  • a

    aipok

    02/28/2020, 2:14 PM
    I have question about kotlin gradle dsl. Does anyone know the replacement for
    register("flavorName"){ initWith="otherFlavor" }
    in kotlin build script?
    m
    1 reply · 2 participants
  • d

    Dariusz Kuc

    04/13/2020, 11:12 PM
    [custom maven plugin] Hello! Anyone knows whether it is possible to make parameters required only when specifying target goals? It appears that required parameters are global even though target goal that depends on them might not be invoked...
    4 replies · 1 participant
  • d

    Dariusz Kuc

    04/15/2020, 10:23 PM
    [custom maven plugin] Hello! By any chance anyone here successfully configured
    AbstractMojoTest
    from
    maven-plugin-testing-harness
    using Gradle? e.g. in my multi module lib I’m building both gradle and maven plugins and currently looking into how to write unit tests for the maven plugin
    2 replies · 1 participant
  • c

    CLOVIS

    05/07/2020, 3:16 PM
    Has anyone managed to publish their Gradle project to the GitLab Maven repository? I'd be very interested in how they did it
    i
    1 reply · 2 participants
  • w

    Wesley Acheson

    09/03/2020, 4:53 PM
    anyone know where I can find dokka-maven-plugin. The coordinates In maven I've got doesn't seem to be working
    j
    11 replies · 2 participants
  • j

    Júlio Santos

    09/22/2020, 5:37 PM
    Has anyone used the docker-maven-plugin?
    m
    j
    2 replies · 3 participants
  • e

    Eugene

    10/09/2020, 12:42 PM
    Hey folks! 👋 My name is Eugene, and I'm a product manager at JetBrains. In build-tools, 🛠️ we are seriously thinking about the roadmap and wondering what things might be considered as critical from your perspective. So, I have an ask for each of you. 📢 Please, let me know in the thread/privately what is important for you❗*.* It might be issues, pull-requests, feature requests, or even fundamental problems. This information will help me to focus my research. And hopefully, your issues become a part of the backlog. Thanks for your attention and happy coding)
    👋 2
    👍 5
    m
    j
    +5
    29 replies · 8 participants
  • c

    CLOVIS

    10/23/2020, 10:15 PM
    Hi, I'm searching for a way to package a Kotlin executable JAR built with Gradle to distribute it to user. I managed to do it with shadowJar, but that means pushing multiple megabytes to CI/CD, when all the dependencies are already in maven repositories... It sounds like there should be a way to have the user automatically download all of those directly? My ultimate aim is to have a small bash/shell script that I could distribute, that would download everything and run it with the correct classpath
    m
    7 replies · 2 participants
  • m

    madisp

    11/03/2020, 8:42 AM
    hey, Parcelize seems to be backwards incompatible in 1.4.20 which puts libraries in a bit of a bind, can the extension plugin -> parcelize plugin be done in a backwards compatible way or is it too late?
    e
    9 replies · 2 participants
  • j

    Juan-Carlos Foust

    01/15/2021, 10:07 PM
    Hi folks. Noob here. I have an issue where a Kotlin + Java module builds succesfully in IntelliJ IDEA but fails when I run
    mvn clean install
    from the command line (and JitPack). More details in this thread any help would be appreciated.
    k
    12 replies · 2 participants
  • e

    elect

    01/22/2021, 6:32 PM
    Hey, do you know if is it possible to print the final
    kotlinc
    shell command when compiling some kotlin sources with ant?
    😱 2
    m
    u
    11 replies · 3 participants
  • m

    Matteo Mirk

    01/26/2021, 3:20 PM
    Does anybody know or had experience with other build tools, such as Bazel, Buck, Pants, Buildr, etc. on Kotlin projects? Is it even supported? Also I’m aware of Kobalt, has anyone used it?
    c
    2 replies · 2 participants
  • d

    Dariusz Kuc

    02/02/2021, 10:41 PM
    Hello 👋 Anyone knows if there is a
    kotlin-maven-plugin
    documentation site that lists all of the available goals and configurations? e.g. there is https://kotlinlang.org/docs/reference/using-maven.html but it doesn't mention
    script
    goal (example from IT https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-maven-plugin-test/src/it/test-executeKotlinScriptBuildAccess/pom.xml#L31)
    j
    2 replies · 2 participants
  • c

    CLOVIS

    02/06/2021, 1:01 PM
    Hi! I'm trying to publish a multiplatform library to MavenCentral (via Gradle and
    maven-publish
    ). The Kotlin documentation states that it's necessary to define an
    artifact
    block "in the publication's scope". What does that mean exactly? Do you know of an example/open source project that does that?
    m
    4 replies · 2 participants
  • s

    SomeCat

    02/16/2021, 6:51 PM
    Hello folks! Question on gradle and docker, from the perspective: we will have to run gradle to build our product within a docker container. Are there any best practices for such a setup? (the online resources I found mostly talk about using docker by gradle, to establish test configurations and such, but not how to run gradle inside docker) Myself, I can think of: • make sure that the build cache is shared across docker runs to avoid constant “starting from 0” • make sure that gradle does NOT run as server (at least for us, our docker sessions are invoked for a built, and then discarded) • make sure the desired gradle version is installed in the docker image you are using What are your thoughts?
    c
    n
    +1
    5 replies · 4 participants
  • a

    ankushg

    02/23/2021, 10:02 PM
    Anyone know if there's a way to map Kotlin's compiler warnings (the ones that get spit out to the command line) into some artifact that we could analyze? Maybe a checkstyle-y XML report? We're not yet at a point where we can turn on warnings-as-errors, but we want to measure and add accountability to teams owning areas with lots of warnings
    m
    t
    +1
    7 replies · 4 participants
  • a

    ankushg

    02/24/2021, 4:44 PM
    As we use Kotlin Multiplatform more broadly, we're (thankfully!) having more iOS and frontend web friends contributing to the KMP codebase.  I'm looking into ways to automate and enforce consistency for dev environment setup, and a common sticking point is just getting the JDK installed and working. Are Kotlin build tasks (especially multiplatform ones) compatible with Gradle's Java Toolchain declaration? https://docs.gradle.org/current/userguide/toolchains.html
    t
    2 replies · 2 participants
  • e

    Evan

    03/03/2021, 6:11 PM
    I’m using the
    kotlin-dsl
    and the
    buildSrc
    folder in my project. It relies on
    jCenter
    which is at end of life. Does anyone know what repository I need to migrate to?
    t
    e
    +1
    5 replies · 4 participants
  • d

    diesieben07

    03/16/2021, 7:44 PM
    I have a multi-module Gradle build using Gradle Kotlin DSL. I would like to share a common configuration for the Kotlin plugin across the modules, for example the "used experimental annotations". For example I have this snippet:
    kotlin {
        sourceSets.all {
            languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
        }
    }
    I would like to move this into buildSrc so in the modules I can just do:
    kotlin {
        configureExperimentalAnnotations()
    }
    To do this, I'd want to do this as an extension function on
    KotlinProjectExtension
    , but I have no idea which dependency I need in the
    buildSrc
    Gradle script for that.
    kotlin-gradle-plugin
    doesn't have it. Any advice?
    t
    u
    33 replies · 3 participants
  • s

    Slackbot

    07/19/2021, 10:42 AM
    This message was deleted.
    t
    a
    2 replies · 3 participants
  • r

    Rob Elliot

    07/21/2021, 9:39 AM
    Hi all - when using the
    kotlin-maven-plugin
    , is there a way to exclude a dependency from the test compile classpath? Context - I’m migrating a project from JUnit 4 to JUnit 5. But it uses testcontainers, which has a transitive dependency on JUnit 4. It’s really easy to accidentally use JUnit 4 annotations, and then find your tests aren’t running… I’d like to exclude JUnit 4 from the test compile classpath so that if you do so you find out fast. Maven doesn’t distinguish between compile & runtime for test scope (why not?!) so I can’t just drop it down to be a runtime scoped dependency. I could exclude it as a dependency of testcontainers, but: a) that would exclude it from the runtime classpath, and testcontainers probably needs it b) the odds are some other dependency will bring it in, now or later… playing whack-a-mole like that is zero fun (Yes it would be easy in Gradle. No I’m not up for having that fight now.)
    :not-kotlin: 1
    h
    7 replies · 2 participants
  • e

    Eugen Martynov

    07/23/2021, 6:29 AM
    I’m trying JDK 16 and I see next
    Caused by: java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x52c27981) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x52c27981
    Any ideas? It is JDK 16 ARM and quite standard android project
    e
    1 reply · 2 participants
  • n

    Norbi

    08/06/2021, 10:27 AM
    Is this dependency "multiplication" normal at the "External libraries" in Idea? It is a Gradle project.
    h
    2 replies · 2 participants
  • b

    Brian Donovan

    12/11/2021, 6:02 PM
    Anyone run into this problem where the GENERATE button doesn’t work?
    g
    2 replies · 2 participants
Powered by Linen
Title
b

Brian Donovan

12/11/2021, 6:02 PM
Anyone run into this problem where the GENERATE button doesn’t work?
g

gildor

12/14/2021, 6:06 AM
It’s not an Json (no Quotation marks on keys, brackets do not match, there are no opening brackets), so apparently this plugin doesn’t allow you to generate any data class from this input
if you copying this input from Chrome dev tools, use real JSON view, not a rendered one, and make sure that it still valid json (so brackets match)
View count: 5