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
  • k

    kyonifer

    03/20/2018, 6:04 PM
    is there some way to do something like
    plugins{ kotlin("jvm") version extra["kotlinVersion"] }
    in kotlin-dsl? (to keep nested projects using the same version of kotlin) The above complains that extra isnt visible from the plugins block
    m
    c
    t
    • 4
    • 8
  • h

    hmole

    03/21/2018, 1:19 PM
    Why does gradle new configurations
    api
    exposes implementation details and
    implementation
    hides them? Why are the names confused?
    m
    c
    g
    • 4
    • 6
  • h

    hastebrot

    03/21/2018, 7:57 PM
    yeah, I’ve just updated my
    settings.gradle
    to
    settings.gradle.kts
    . It works without problems. A few months ago I had problems importing the project into IntelliJ and
    rootProject.name
    was missing a setter method. I see this was fixed in the meantime. Great work!
    g
    • 2
    • 1
  • p

    pcarrier

    03/27/2018, 12:32 PM
    how can I force the version of kotlin with the gradle kotlin plugin? moving from groovy to kts broke all the things
    t
    • 2
    • 2
  • t

    Tobi

    03/28/2018, 7:23 AM
    Does anyone work in a multi-module project and a
    buildSrc
    module to maintain dependencies?
    c
    • 2
    • 2
  • p

    pcarrier

    03/28/2018, 7:32 PM
    @Tobi I do now
    ❤️ 1
    t
    • 2
    • 2
  • l

    Leeroy Smith

    03/30/2018, 3:17 AM
    Hey! I'm trying to do something like this: https://stackoverflow.com/a/36130467 but it doesnt work at all. I'm using Junit 5 🙂
    m
    • 2
    • 1
  • b

    barteks2x

    04/01/2018, 6:04 PM
    I NEED snapshot
    c
    • 2
    • 2
  • j

    jmfayard

    04/03/2018, 6:29 AM
    Hello, newbie question I want to migrate my gradle buildscripts to the kotlin DSL Any recommendation/resources on how to proceed? Is the Kotlin DSL mature enough to configure android projects too now? Can I have in a multi-module project the android module configured with groovy and the others configured with the Kotlin DSL?
    m
    • 2
    • 1
  • e

    eriwen

    04/03/2018, 7:58 PM
    Not as part of
    gradle init
    , but this might get you started quickly: https://guides.gradle.org/building-kotlin-jvm-libraries/
    k
    f
    n
    • 4
    • 8
  • p

    Pere Casafont

    04/04/2018, 6:56 AM
    hi, I have a very weird issue with submodules: when trying to use classes from another imported submodule, kotlin complains it can't find them (eg https://circleci.com/gh/PCasafont/L2T_Server/10); any clues?
    • 1
    • 2
  • n

    nimtiazm

    04/09/2018, 5:52 AM
    let me check sdkman
    g
    • 2
    • 1
  • f

    flstaats

    04/10/2018, 3:50 PM
    Does anyone have a simple working example of getting Spek to run Unit Tests with the new Gradle 4.6 native support for Junit 5 in Kotlin DSL.
    ➕ 1
    g
    • 2
    • 1
  • j

    jlleitschuh

    04/13/2018, 1:11 AM
    @Andrew Gazelka Restart IntelliJ
    a
    • 2
    • 5
  • h

    hastebrot

    04/13/2018, 7:14 AM
    @Andrew Gazelka normally you have to wait a few seconds until the errors go away. This problem is fixed in upcoming Kotlin 1.2.40
    a
    • 2
    • 1
  • d

    Diarmuid

    04/14/2018, 8:17 AM
    anyone know of a good example of gradle kotlin dsl building a spring boot app?
    c
    t
    • 3
    • 3
  • r

    Robert Menke

    04/14/2018, 2:39 PM
    When I look at this file I immediately have questions that I don’t know the answer to like where is this recursive call even being used
    is List<*> -> it.addTo(configuration)
    ? Which versions of these dependencies are you using? Why does the configuration function accept any? I realize you probably have good answers to those questions, but I don’t think there’s any reason to complicate dependency specs.
    c
    • 2
    • 4
  • j

    jakiej

    04/17/2018, 5:44 AM
    Hey there, we want to write a gradle plugin that takes a kotlin source folder (some DSL), and then compile it and load a top level val from it. is this doable and how?
    g
    m
    • 3
    • 9
  • m

    mkobit

    04/19/2018, 9:10 PM
    maybe they edited the pages and saving them makes it seem like a "republish"?
    e
    • 2
    • 1
  • i

    ikej

    04/20/2018, 6:35 AM
    With Kotlin 1.2.40 the "everything is red" state when opening build files in the IDE is gone and it even shows a progress bar for resolving the dependencies! This feels so much better.
    🎉 7
    👍 6
    o
    • 2
    • 2
  • m

    mtl

    04/22/2018, 7:17 PM
    Hi all, so I am trying to use the Kotlin DSL, specifically I'm translating https://github.com/vert-x3/vertx-examples/blob/master/kotlin-examples/web/build.gradle to the Kotlin DSL, however it's not immediately apparent how would I pass arguments as in here https://github.com/vert-x3/vertx-examples/blob/master/kotlin-examples/web/build.gradle#L55 Any suggestions?
    c
    n
    • 3
    • 5
  • s

    stepango

    04/24/2018, 7:59 AM
    Hi everyone! I want to migrate huge app to Kotlin-dsl step by step to do this I'm planing to extract pieces of code to
    kts
    files and use it from groovy. How could i achieve that.
    apply from: "file.gradle.kts"
    is not working in this case. Is there any other way?
    g
    c
    • 3
    • 19
  • p

    Paul Woitaschek

    04/25/2018, 12:44 PM
    Do you know if the room maintainers are aware of this?
    e
    • 2
    • 5
  • d

    dave08

    04/25/2018, 1:04 PM
    Hi guys! I hope this is the right place to ask... If I have a Jenkins pipeline building my Kotlin (Ktor) project using Gradle, how do I keep the build artifact cache from build to build (the Jenkins slave is always on the same node). I'm currently running:
    docker run --rm -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:4.5.1-jdk8-alpine gradle shadowJar --no-daemon --console plain
    ?
    g
    • 2
    • 14
  • b

    BorzdeG

    04/25/2018, 3:19 PM
    Tell me, what am I doing wrong? Here’s the project:
    <https://github.com/BorzdeG/samples-kotlin-subprojects>
    Here’s the command:
    ./gradlew classes
    As a result I get this error:
    e: $PROJECT_DIR/client/src/main/kotlin/demo/client/Client.kt: (3, 20): Unresolved reference: CoreModel
    e: $PROJECT_DIR/client/src/main/kotlin/demo/client/Client.kt: (9, 12): Unresolved reference: CoreModel
    > Task :client:compileKotlin FAILED
    g
    • 2
    • 7
  • h

    holgerbrandl

    04/27/2018, 9:54 AM
    Why isn’t the
    build.gradle.kts
    using the green gradle icon as the
    build.gralde
    in IJ? Is there a yt ticket?
    i
    • 2
    • 2
  • t

    tyrondis

    04/27/2018, 4:48 PM
    Hey everyone, I need some help with Gradle Script Kotlin: I have a multi-module project and I would like to extract some helper functions into a common file. But I am struggling to find out how exactly to import them. Any pointers?
    c
    • 2
    • 2
  • a

    aarjav

    04/28/2018, 10:07 PM
    are there any kotlin dsl documentation pages similar to https://docs.gradle.org/current/dsl/?
    e
    • 2
    • 1
  • g

    guenther

    04/30/2018, 8:49 AM
    When using the Kotlin-DSL, dependencies can be specified with
    implementation(...)
    or
    apiElements
    or ... but not with
    api(...)
    . Shouldn't this also be possible?
    g
    • 2
    • 4
  • g

    gildor

    05/01/2018, 7:08 AM
    Gradle now has own Slack :gradle: https://discuss.gradle.org/t/introducing-gradle-community-slack/26731
    👍 4
    o
    • 2
    • 1
Powered by Linen
Title
g

gildor

05/01/2018, 7:08 AM
Gradle now has own Slack :gradle: https://discuss.gradle.org/t/introducing-gradle-community-slack/26731
👍 4
o

orangy

05/01/2018, 9:52 AM
It would be nice to link a channel between two Slacks, but AFAIK the feature only works for commercial plans…
👍 1
View count: 4