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

    orangy

    04/16/2017, 8:02 AM
    @annyce probably #gradle could be a better place to ask
    a
    • 2
    • 1
  • d

    dsyang

    05/23/2017, 2:04 AM
    How difficult would it be to change
    kotlinc
    to read the package declaration on java sources to determine fq-names? Bonus question, how difficult would it be for us to pass arbitrary .java files instead of folders into
    kotlinc-jvm
    ?
    a
    • 2
    • 1
  • u

    udalov

    05/23/2017, 12:42 PM
    @dsyang passing individual .java files to
    kotlinc
    is supported since last week, you can either check out the dev build
    1.1.4-dev-311
    or later, or wait for the next EAP of 1.1.3 the issue is https://youtrack.jetbrains.com/issue/KT-17697
    👍 3
    💯 2
    😍 1
    d
    • 2
    • 1
  • j

    jw

    05/31/2017, 4:00 PM
    think i found it. -Dkotlin.compiler.execution.strategy="in-process"
    i
    a
    • 3
    • 6
  • j

    jw

    05/31/2017, 4:06 PM
    same reason you disable the Gradle daemon on CI
    d
    • 2
    • 4
  • j

    jw

    05/31/2017, 4:07 PM
    of course now i'm getting a SIGSEGV from the JVM by moving it in process so ¯\_(ツ)_/¯
    a
    • 2
    • 1
  • t

    trevjones

    06/09/2017, 11:47 PM
    it would be nice if the gradle plugin would detect the jre version based on the stdlib artifact being used and update all the kotlin compile tasks to the appropriate jvm target
    d
    • 2
    • 6
  • p

    pardom

    06/23/2017, 6:35 PM
    Is there a JB hosted maven repo? I'm looking for a repo that hosts "intellij-core-analysis"
    e
    • 2
    • 1
  • p

    paulblessing

    07/20/2017, 6:37 PM
    Looking at this again, it seems like the Kotlin compiler daemon takes care of cleaning itself up if the Gradle build is run without using the Gradle daemon. It's only when the Gradle build terminates abnormally that the Kotlin compiler daemon seems to stick around.
    o
    • 2
    • 1
  • g

    greenrobot

    08/07/2017, 3:22 PM
    We would like to understand extension functions a bit better. How does the compiler know they are available? We have a class transformer in place as part of our Gradle plugin, and after that step extensions functions raise compiler errors when used from another module. (Context: https://github.com/greenrobot/ObjectBox/issues/134)
    y
    • 2
    • 4
  • m

    mingkangpan

    08/30/2017, 2:16 PM
    anyone using Android Studio 3.0 Beta2? and facing error with 'kotlin-kapt' and dagger2? everytime if I change the dagger tree I have to clean the project or project wont compile where do I report a bug for kapt actually? 😄
    a
    • 2
    • 1
  • j

    janusz

    09/08/2017, 4:11 PM
    I’ve tried
    detekt
    and
    ktlint
    . Do you know if there is anything else?
    t
    • 2
    • 2
  • t

    trevjones

    09/13/2017, 3:18 PM
    assuming they are just data classes and don’t house any logic it would be best to ignore them in both your testing efforts as well as your coverage report.
    t
    e
    • 3
    • 5
  • e

    Eugenio

    09/16/2017, 9:12 AM
    message has been deleted
    o
    • 2
    • 1
  • t

    trubesv

    09/16/2017, 12:08 PM
    Hello all 🙂 Is there a way to "speed up" editing
    .gradle
    files in IntelliJ? It gets stuck for a few second when I type each character, like it's saving/reloading.. Very frustrating Also, Gradle eats up my RAM incrementally, I think I messed my setup 😕 Do you have any advice regarding these issues? Thanks! :kotlin:
    g
    • 2
    • 4
  • a

    artem_zin

    10/26/2017, 10:35 PM
    JB people, can you please explain performance differences between running Gradle build with separate Kotlin Compiler Daemon vs in-process compilation? What is the lifecycle of in-process compilation? Isn’t Gradle daemon enough to keep compiler “hot” (class loading, JIT)? Thanks! --- Reason why I’m asking is because we’re facing issues with Kotlin Compiler Daemon with a single Kotlin module in project when we build it with
    --parallel
    , see
    <https://youtrack.jetbrains.com/issue/KT-15562#comment=27-2494744>
    g
    b
    a
    • 4
    • 28
  • b

    bringoff

    10/27/2017, 8:53 AM
    I’m facing random compiling error on CI. The same code may compile successfully and after adding git tag (which triggering new CI check) the same code fails to build with error
    Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
    . I’ve tried to add different params to build command, but this didn’t help. Adding
    -Dkotlin.compiler.execution.strategy=in-process
    broke android data binding annotation processing. My current gradle build command looks like this:
    ./gradlew -Pkotlin.incremental=false -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false testBetaQaUnitTest lintBetaQa testProdReleaseUnitTest lintProdRelease
    a
    • 2
    • 3
  • h

    holgerbrandl

    11/11/2017, 10:48 PM
    @ilya.gorbunov I’ve tried but no luck yet. See http://holgerbrandl.github.io/krangl/javadoc/krangl/krangl/builder.html for the result, and for the corresponding source https://github.com/holgerbrandl/krangl/blob/master/src/main/kotlin/krangl/Builder.kt#L45 . From what I can see the referenced sample should be fine as well (see https://github.com/holgerbrandl/krangl/blob/master/src/main/kotlin/krangl/samples/DokkaSamples.kt#L13)
    i
    o
    • 3
    • 10
  • a

    artem_zin

    11/14/2017, 11:28 PM
    Between Kotlin 1.1.51 and 1.1.60
    kotlin-annotation-processing
    artifact was discontinued and now there is a
    kotlin-annotation-processing-gradle
    instead (as well as
    -maven
    which was there for some time)
    <https://github.com/JetBrains/kotlin/commit/feee93186bdab504c5bf94d1c046bf7f2a0697af>
    1. Does it mean that
    -gradle
    version will become more Gradle-specific? Reason why I'm asking is because OkBuck + Buck need it to support Kapt and relied on
    kotlin-annotation-processing
    before, but now it's gone 2. Changelog doesn't seem to reflect this change
    <https://github.com/JetBrains/kotlin/blob/1.1.60/ChangeLog.md>
    cc @h0tk3y
    👍 2
    y
    c
    • 3
    • 4
  • k

    kirillrakhman

    11/21/2017, 8:35 AM
    the 30 seconds should only be spent on the first build. incremental build should only rebuild the files you changed
    m
    y
    • 3
    • 6
  • h

    holgerbrandl

    11/23/2017, 7:04 PM
    Do kotlin/kotlinc require a jdk or do they work also with “just” a jre?
    c
    • 2
    • 2
  • d

    dharrigan

    12/05/2017, 1:21 PM
    Hey, with gradle kotlin scripts, one of the things that I find a bit toooo noisy compared to plain groovy gradle scripts, is the necessity to put in
    ${property("foo")}
    inside dependencies definitions, i.e.,
    compile("com.google.protobuf:protobuf-java:${property("protobufVersion")}")
    I know there is another way of defining the var inside the kts file,
    var foo="1.2"
    then using
    $foo
    inside the dependency definition. The latter being more "groovy" like (without the var definition). Is there no shorter way of expressing this?
    c
    • 2
    • 4
  • a

    austynm

    12/06/2017, 6:22 PM
    I am attempting to build the Kotlin Gradle Plugin from source and I have grabbed the latest version off of Github. In the instructions it says
    For local development, if you’re not working on bytecode generation or the standard library, it’s OK to have only JDK 8 installed, and to point all of the environment variables mentioned above to your JDK 8 installation.
    When I do that I get the following error:
    A problem occurred configuring root project 'kotlin'.
    > Invalid environment value JDK_16: "/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home", expecting JDK home path
    What am I doing wrong here?
    i
    • 2
    • 3
  • e

    Eugen Martynov

    12/13/2017, 5:50 PM
    Does kapt support incremental builds?
    g
    s
    • 3
    • 29
  • k

    kirillrakhman

    12/19/2017, 10:30 AM
    Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
    Is this something, the JB guys are aware of? Would be kinda awkward if the Kotlin plugin stopped working with Gradle 5.0
    g
    • 2
    • 2
  • t

    thalescm

    12/19/2017, 2:16 PM
    Trying to compile passing the same module-name for both compilation invocations of main and test and the error still happens 😕
    u
    • 2
    • 5
  • t

    thalescm

    01/16/2018, 6:21 PM
    Sharing here as well due to still be related and having way more people then #compiler channel. Hoping someone knows this 😄
    o
    • 2
    • 1
  • t

    thalescm

    01/17/2018, 2:42 PM
    Any news here? Is there someone from the kt team that can help me?
    o
    y
    • 3
    • 7
  • t

    thalescm

    01/18/2018, 3:06 PM
    Does anyone knows how a build file xml should look like?
    u
    • 2
    • 1
  • t

    thalescm

    01/18/2018, 9:11 PM
    Or the normal flow of gradle would be to use kotlinc to compile sources (without creating the jar) and them zip everything together later on?
    u
    • 2
    • 1
Powered by Linen
Title
t

thalescm

01/18/2018, 9:11 PM
Or the normal flow of gradle would be to use kotlinc to compile sources (without creating the jar) and them zip everything together later on?
u

udalov

01/22/2018, 3:48 PM
yes, this is the intended way
View count: 2