allan.conda
10/18/2021, 5:11 AMursus
10/18/2021, 10:32 AM> Task :clean
> Task :android-test-utils:clean
> Task :base-moshi:clean
> Task :base-di:clean FAILED
> Task :base-android:clean
> Task :base:clean
> Task :base-conductor:clean
> Task :base-coil:clean
> Task :auto-initialized-compiler:clean
> Task :base-net:clean
> Task :base-sqldelight:clean
> Task :auto-initialized-compiler:clean FAILED
> Task :global:clean
> Task :crashlytics:clean
> Task :base:clean FAILED
> Task :test-utils:clean
> Task :hashes:clean
> Task :regex:clean
> Task :formatter:clean
> Task :triggers-test-utils:clean
> Task :sqldelight-android-driver:clean
> Task :timestamp-parser:clean
> Task :usage-units:clean
> Task :activity-ui-helper:contract:clean
> Task :analytics:test-utils:clean
> Task :analytics:contract:clean
> Task :approvals:contract:clean
> Task :approvals:impl:clean
> Task :auth:test-utils:clean
> Task :analytics:exponea-tracker:clean
> Task :analytics:impl:clean
> Task :activity-ui-helper:impl:clean
> Task :payments-ui:clean
> Task :auth-flow:contract:clean
> Task :auth:contract:clean
> Task :auth:impl:clean
> Task :card-registration:contract:clean
> Task :chat:contract:clean
> Task :card-registration:impl:clean
> Task :auth-flow:impl:clean
> Task :chat:impl:clean
> Task :complex-syncer:test-utils:clean
> Task :config:config-api:clean
> Task :config:test-utils:clean
> Task :config:contract:clean
> Task :contacts:contract:clean
> Task :contacts:test-utils:clean
> Task :device-metadata:test-utils:clean
> Task :device-metadata:contract:clean
> Task :contacts:impl:clean
> Task :device-metadata:impl:clean
> Task :gdpr:impl:clean
> Task :gdpr:contract:clean
> Task :config:impl:clean
> Task :complex-syncer:contract:clean
> Task :in-app-review:contract:clean
....
and keeps going for 5minutes only to then print out red text that base-di:clean failed -- also, why on earth does clean fail is beyond me as wellStrum355
10/18/2021, 11:43 AMKotlinCompile
tasks in init scripts? Im trying to do tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile(.class)?)
(with and without .class) but the fqn never seems to resolveankushg
10/18/2021, 9:12 PMfreeCompilerArgs
vs kotlinOptions
Is there a philosophy on which CLI args should be configurable via gradle properties vs which ones shouldn't? Are there docs on which flags are more experimental than others?
I initially assumed that maybe only stable things make it into the Gradle DSL, but I'm also seeing a few experimental things available in there too (e.g., KotlinCommonOptions.useFir
)
I mostly want to avoid spamming youtrack tickets or PRs for every little CLI arg if there's a process that's being followed that I just don't know about 😅Philip Dukhov
10/22/2021, 3:14 PMinclude(":module-name")
project(":module-name").projectDir = File("../../project-dir/")
But I'm getting an error about unrecognized class from buildSrc
folder of OtherProject
, from other project gradle.build
file. Itself OtherProject
builds fine. Do I need to add buildSrc
explicitly somehow?
Edit. I've tried includeBuild
as @Vampire suggested, but it doesn't seems working with my KMM module. I'm using this code:
includeBuild("../../project-dir/") {
dependencySubstitution {
substitute(module("com.project:module-name"))
.with(project(":module-name"))
}
}
Which produces the following error
ArtifactNotFoundException: Could not find kotlinx-coroutines-core-1.5.1-native-mt-samplessources.jar
Egons Zile
10/22/2021, 3:45 PMJeff Lockhart
10/22/2021, 8:26 PMinclude(":shared")
project(":shared").projectDir = File("../path-to-android-project/shared")
And added implementation(project(":shared"))
to the commonMain dependencies.
But I'm getting weird behavior now. The project UI on the left shows two copies of the project, one as a "module" (single blue square icon) appears as before without the shared module beneath. But a second "module group" (4 blue squares icon) appears as well with the shared module beneath.
When I attempt to build the project, I get the error:
Could not resolve project :shared.
Required by:
project :appHow can I successfully add a module like this to the project?
nilTheDev
10/25/2021, 7:50 AM<<
syntax I encountered which is an alternative of doLast
. Here is a snippet,
3.times {
task "yayGradle$it" << {
println 'Gradle rocks'
}
}
but it isn't working. I anticipate the syntax my have been deprecated. Can anyone point out which version I can use to run that snippet?ursus
10/28/2021, 1:05 AMSylvain Patenaude
10/28/2021, 1:41 PMiosSimTest
but not iosTest
in my project gradle tasks?
Did that task use to be there or am I crazy?mbonnin
10/28/2021, 3:26 PMorg.jetbrains.kotlin.jvm
doesn't create any publication and leaves that to the user
• org.jetbrains.kotlin.multiplatform
does
This feels somewhat inconsistent. Are there any plans to configure publication automatically when using the JVM plugin?LastExceed
10/28/2021, 6:16 PMval generateSources by tasks.creating {
outputs.dir("build/generated/")
doLast {
File(
outputs.files.single(),
"generated.kt"
).writeText("""fun foo() = println("hello from generated code")""")
}
}
sourceSets["main"].java.srcDir(generateSources.outputs.files)
it works, but it requires me to put the code generation logic inside build.gradle
. how do move it into a subproject ?mbonnin
10/29/2021, 9:46 AMproject.getKotlinPluginVersion: String
into a KotlinVersion(Int, Int,Int)
?Tomasz Krakowiak
10/29/2021, 10:18 AMnatario1
10/30/2021, 9:35 PMKotlinCompilation.associateWith
do?Slackbot
10/31/2021, 12:08 PMZac Sweers
11/01/2021, 8:01 PMEndre Deak
11/01/2021, 8:48 PM-Xmx4096m
but when I do the build in Docker then I don’t need this amount of memory.
What’s the right way to tell my local gradle to use that amount of memory outside of my gradle,properties
file in my project? I use IntelliJ IDEA and command line too, so ideally when I kick off a gradle command via the IDE or just type gradle command
, the same settings would be picked up, but when it runs within the docker image, then it just ignores it.groostav
11/05/2021, 7:27 PMerror in project :B
Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
I have a ~simple gradle.build.kts with two projects (:A and :B, where B depends on A with a deps{compile(project(":A"))}
), and about 20 runtime deps.
1. under intelliJ i can verify that the output class files from :A
are in java 11 (bytecode v55)
2. when i omit my problem section and compile :B
without it, I get java 11 (bytecode v55) classes
I'm using
tasks.compileJava {
options.release.set(11)
sourceCompatibility = "11"
targetCompatibility = "11"
}
tasks.compileKotlin {
kotlinOptions.jvmTarget = "11"
sourceCompatibility = "11"
}
everywhere I can think.
help?Su5eD
11/06/2021, 11:15 AMkotlin_builtins
classes not being foundShabinder Singh
11/07/2021, 6:57 AMShabinder Singh
11/07/2021, 7:11 AMursus
11/07/2021, 10:59 PMimplementation project("..contract")
or something like that?Miquel Àngel Román
11/08/2021, 8:55 AMPiotr Krzemiński
11/09/2021, 1:00 PMFAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':buildSrc'.
> Could not resolve all artifacts for configuration ':buildSrc:classpath'.
> Could not resolve org.gradle.kotlin:gradle-kotlin-dsl-plugins:2.1.4.
Required by:
project :buildSrc > org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.1.4
> Could not resolve org.gradle.kotlin:gradle-kotlin-dsl-plugins:2.1.4.
> Could not get resource '<https://plugins.gradle.org/m2/org/gradle/kotlin/gradle-kotlin-dsl-plugins/2.1.4/gradle-kotlin-dsl-plugins-2.1.4.module>'.
> Could not GET '<https://jcenter.bintray.com/org/gradle/kotlin/gradle-kotlin-dsl-plugins/2.1.4/gradle-kotlin-dsl-plugins-2.1.4.module>'.
> PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
on Gradle 7.2 - a bunch of these:
> Could not resolve all artifacts for configuration ':buildSrc:classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21.
Required by:
project :buildSrc
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21.
> Could not get resource '<https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.5.21/kotlin-stdlib-jdk8-1.5.21.pom>'.
> Could not HEAD '<https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.5.21/kotlin-stdlib-jdk8-1.5.21.pom>'.
> PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21.
Bintray was deprecated, right?ipolyzos
11/09/2021, 3:26 PMOleh
11/09/2021, 5:25 PMMBegemot
11/10/2021, 4:17 PMeygraber
11/10/2021, 7:24 PM> Task :buildSrc:compileKotlin
'compileJava' task (current target is 11) and 'compileKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
My buildSrc build.gradle.kts
is in 🧵 and I believe I'm setting all of the Java and Kotlin targets correctly.Ansh Tyagi
11/11/2021, 9:09 AM./gradlew run
the program doesnt wait for the input. I want to take in input from the stdin, hence i am using readLine(). Do we have to specify some args in build.gradle.kts?Ansh Tyagi
11/11/2021, 9:09 AM./gradlew run
the program doesnt wait for the input. I want to take in input from the stdin, hence i am using readLine(). Do we have to specify some args in build.gradle.kts?Vampire
11/11/2021, 9:40 AMrun
is a JavaExec
typed task.
JavaExec
has a property standardInput
which by default as documented is set to an empty stream.
Set it to <http://System.in|System.in>
and it should work.