Thiago Nerys
03/03/2020, 3:02 PMfun <http://java.io|java.io>.InputStream.extractSummary(): String =
((JsonSlurper().parse(this) as Map<String, Any>)["fields"] as Map<String, Any>)["summary"] as String
I looked around a lot, couldn't find a way to make this code block simpler. Would like to do something similar to Groovy, which allows me to call just this.fields.summary
.
Any ideas?apahl
03/08/2020, 4:39 PMOla Adolfsson
03/09/2020, 12:21 PMEgor Okhterov
03/10/2020, 9:48 AMNodeJS
is used when we include dependency like that?
dependencies {
implementation(npm("react", "16.12.0"))
}
Does gradle download NodeJs
from the internet or it searches for locally installed node.exe
?james_bassett
03/10/2020, 11:28 PMapi
configuration...I was under the impression that it was only available when you had applied the java-library
plugin. However I'm able to use it in Gradle 6.2 (and I can see the effect it has on the module metadata when published to Nexus). A build scan reveals that the java-library
plugin isn't applied, so how is this possible?capitalthree
03/11/2020, 3:31 AMbasher
03/11/2020, 5:15 PMNico
03/12/2020, 10:20 AMSebastien Leclerc Lavallee
03/12/2020, 4:33 PMbuild.gradle
script from groovy to kotlin. Inside one of my build, I have this:
allprojects {
ext.runProtoGen = { inPath, outPath, kotlinPackage = null, logLevel = null, inSubPath = null ->
[...]
}
}
How would I be able to do that with kotlin DSL ? Thanks 🙂Burkhard
03/12/2020, 7:32 PMinspectClassesForKotlinIC
. Did I just miss this or does kotlin 1.3.70 use a new system for incremental building (I’m guessing the IC stands for “incremental compile”)?Slackbot
03/14/2020, 2:11 PMSourabh Rawat
03/14/2020, 5:56 PMarekolek
03/17/2020, 8:44 AMbuild.gradle
I have apply from: 'test.gradle.kts'
, then in test.gradle.kts
I have:
tasks.register("vytibnhcyfugohsjfdbnafvdsa") {
}
After I run Sync Project with Gradle files twice, I get this warning in Android Studio (see image), and the log says
Caused by: org.gradle.api.internal.tasks.DefaultTaskContainer$DuplicateTaskException: Cannot add task 'vytibnhcyfugohsjfdbnafvdsa' as a task with that name already exists.Am I doing something wrong, or is this is a bug?
Chills
03/17/2020, 3:17 PMChills
03/17/2020, 3:42 PMJaxon Du
03/17/2020, 5:50 PMChills
03/17/2020, 6:50 PMrrva
03/17/2020, 7:44 PMrrva
03/17/2020, 8:20 PMx80486
03/18/2020, 5:02 PMGunslingor
03/19/2020, 5:23 AMrrva
03/19/2020, 5:29 AMconfigurations {
karateTestCompile.extendsFrom testCompile
karateTestRuntime.extendsFrom testRuntime
pactTestCompile.extendsFrom testCompile
pactTestRuntime.extendsFrom testRuntime
}
Gunslingor
03/22/2020, 3:32 PMcodec
03/22/2020, 7:53 PMJavaExec
doesn’t honor carriage returns ("\r")
in Java print statements?darkmoon_uk
03/23/2020, 7:41 AMspierce7
03/24/2020, 2:10 AMbuild.gradle
, but now I’m trying to move this to buildSrc
. I’m struggling to find the equivalent way to do this inside buildSrc
, can anyone help me out?
ext.installInternalProductionFlavors = { project ->
project.android.flavorDimensions 'releaseType'
project.android.productFlavors {
internal {
dimension 'releaseType'
matchingFallbacks = ['debug']
}
production {
dimension 'releaseType'
matchingFallbacks = ['release']
}
}
installInternalProductionVariantFilter(project)
}
spierce7
03/24/2020, 2:24 AMplugins {
if (Build.isCi) {
id("com.google.firebase.appdistribution") //TODO not working
}
}
productFlavors {
flavorDimensions("releaseType")
create("internal") {
// ...
if (isCi) {
firebaseAppDistribution { // <--- This doesn't resolve because the plugin is in an if block.
}
}
}
plastiv
03/24/2020, 10:44 AMsystemProp.kotlin.daemon.jvm.options=-Xmx4g
at gradle.properties
stops kotlin daemon from running with Xmx illegal argument
error.spierce7
03/24/2020, 4:39 PMbuildSrc/build.gradle.kts
and the code inside buildSrc/src
. What’s the best way to do that?Gunslingor
03/24/2020, 5:48 PMGunslingor
03/24/2020, 5:48 PMIvan Kubyshkin [JetBrains]
03/25/2020, 9:04 AMid 'org.jetbrains.kotlin.js' version '1.3.71'
?nodejs
as a targetkotlin {
target {
nodejs()
}
}
Gunslingor
03/26/2020, 5:23 AMIvan Kubyshkin [JetBrains]
03/26/2020, 5:35 AMGunslingor
03/26/2020, 1:08 PM