Gradle builds jar from Kotlin without dependencies

I am building a jar for an AWS Lambda function. The code is written in Kotlin under src/main/kotlin/com/serverless I need to build a shadow jar that includes the AWS dependencies. Currently the jar does not contain any dependencies. buildscript { repositories { mavenCentral() jcenter() maven { url “https://plugins.gradle.org/m2/” } } dependencies { classpath “org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61” classpath…

kotlin Get random string from array

New to kotlin and quite a few questions and answers, mostly in Java. After following the documentation and verifying against numerous SO questions/answers Android Studio is complaining about the following in a function. The function is fun getRandomQuote() { val randomValue = Random.nextInt(quotes.size) //return quotes[randomValue] return quotes.get(randomValue) } quotes is an arrayOf(strings) val quotes =…