Eug
11/10/2025, 1:37 PMCaleb Cushing
11/10/2025, 5:58 PMsource(sourceSets.main.map { it.output.generatedSourcesDirs })
but to convert to java...
var sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
getByName doens't have any kind of way to map off that into a provider. assuming this is less efficient
javadoc.source(sourceSets.getByName("main").getOutput().getGeneratedSourcesDirs());
how should I convert to a provider here?Sammie W
11/10/2025, 7:44 PMMatthew Von-Maszewski
11/11/2025, 8:07 PMLauritz Ritter
11/11/2025, 10:56 PMAndroid gradle plugin: 8.6.0
Gradle: 8.10.2
FAILURE:
Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':expo-modules-core:compileReleaseKotlin'.
> Could not resolve all dependencies for configuration ':expo-modules-core:kotlin-extension'.
> Could not resolve all dependencies for configuration ':expo-modules-core:kotlin-extension'.
> Could not find org.jetbrains.kotlin:kotlin-compose-compiler-plugin-embeddable:1.9.25.
Searched in the following locations:
- <http://maven.production.caches.eas-build.internal/artifactory/libs-release/org/jetbrains/kotlin/kotlin-compose-compiler-plugin-embeddable/1.9.25/kotlin-compose-compiler-plugin-embeddable-1.9.25.pom>Colton Idle
11/13/2025, 6:22 AMallprojects {
allprojects {
tasks.withType(JavaCompile).tap {
configureEach {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
}
}
}
I want to just delete it because i dont know what it does. this is in the root build file in an android project. No one on the team seems to know why it was needed, but people dont want to remove it 😂 the allprojects within allprojects is just weird to me. I'm not sure if these are even valid lint flags (what linter? android-lint? or does java have a linter?)Niels Doucet
11/13/2025, 11:01 AMarchives configuration, but I can't seem to resolve that from a different module 🤔
--------------------------------------------------
Variant archives
--------------------------------------------------
Configuration for archive artifacts.
Capabilities
- com.acme:web-module:0.0.0 (default capability)
Artifacts
- build/libs/web-module-0.0.0.jar (artifactType = jar)
- build/libs/web-module-0.0.0.war (artifactType = war)
I tried
implementation(projects.webModule) { artifact { type = "war" } }
or
implementation(projects.webModule) { artifact { extension = "war" } }
but neither worked resulting in
Could not find web-module.war (project :web-module).
According to the documentation, the war plugin creates a new components.web component, but I'm not sure how to depend on/resolve that.Bernhard Posselt
11/13/2025, 12:22 PMMiha Markic
11/14/2025, 8:12 AMTheGoesen
11/14/2025, 9:14 AMMiha Markic
11/14/2025, 9:22 AMgradle.startParameter.taskRequests.toString()
?Fanish
11/14/2025, 9:35 AMAndrew Lethbridge
11/14/2025, 4:27 PMColton Idle
11/14/2025, 7:23 PMsubprojects {
configurations.configureEach {
resolutionStrategy ...
}
afterEvaluate { subproject ->
subproject.apply from: "$subproject.rootDir/jacocoTask.gradle"
}
}
I updated the after evaluate in kts to
afterEvaluate {
apply { from("$rootDir/jacocoTask.gradle") }
}
but now I get an error in my jacocoTask.gradle file on this line
task coverageReport(type: JacocoReport...
So my questions are:
1. Is my conversion correct?
2. I'm assuming the previous code was not correct since I now get an error in my jacoco Task.gradle file? I guess it wasn't being executed at all before? 😱
I'm new to this project so its been ad adventure trying to modernize some of these things 😅Ivan CLOVIS Canet
11/15/2025, 12:04 PMpluginManager.withPlugin , but I don't know the plugin ID.
• I want to supply a configuration option to be executed when the plugin is added
• If the plugin is already added, I want it to execute it immediately
However, this plugin doesn't have an ID.
It's https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plug[…]n/org/jetbrains/kotlin/gradle/targets/js/nodejs/NodeJsPlugin.kt (from KGP)Matei David
11/16/2025, 12:33 AMafterEvaluate , I tried to listen to publications as they are defined with publishing.publications.configureEach {} however, I found out that a publication's artifacts need not be known/defined when the publication is added. Next, I tried publication.artifacts.configureEach {} but this eventually results in strange errors about metadata. I looked a bit around, and I believe publication.artifacts is currently not "lazy enough", so that when I do publication.artifacts, it eagerly populates something too early, resulting in problems later on. I'm not sure if afterEvaluate would really help here. Any other suggestions how to detect duplicate publications reliably?Adam
11/16/2025, 12:40 PMVlastimil Brecka
11/16/2025, 11:39 PM// Root
tasks.register("lintAllDebug") {
group = "verification"
dependsOn(
":foo:app:lintAllDebug",
":bar:app:lintAllDebug",
":quax:app:lintAllDebug"
)
}
B) rely on the same named-ness and just ./gradlew lintAllDebugColton Idle
11/17/2025, 7:43 AMapply plugin is called?
I have an android app module build file that I'm migrating to kts and I noticed that we have apply plugin: "com.google.gms.google-services line at the bottom of the build file. Now I'm wondering if theres any reason why it would be at the bottom vs the 10 plugins at the top of the file. seems like someone in the past made a concious decision to put it at the bottom?Niels Doucet
11/17/2025, 1:38 PMcopySpec that only defines exclusions (with exclude) and I'd like to reuse it in multiple tasks that have differing from clauses.
Is there a way to do so?
(more details in 🧵 )Sebastian Schuberth
11/18/2025, 10:37 AMsettings.gradle.kts file like
dependencyResolutionManagement {
versionCatalogs {
create("ortLibs") {
from("org.ossreviewtoolkit:version-catalog:71.4.0")
}
}
}
then what's the correct syntax to depend on an artifacts form that catalog in my project's convention plugins hosted in buildSrc?Martmists
11/18/2025, 9:59 PMbuildSrc folder and my-plugin , the latter being included with includeBuild. I have a common.gradle.kts in my buildSrc, but if I try to add plugins { id("my-plugin-id") }, I get Plugin [id: 'my-plugin-id'] was not found in any of the following sources:
How do I fix this? I tried merging my-plugin with it, but because the plugin depends on kapt and kotlin-compiler-embeddable and such it ended up giving all sorts of gradle/kotlin errors. I also couldn't do implementation(project("../my-plugin")) it seems.Eli Graber
11/18/2025, 10:00 PMSettingDust
11/19/2025, 10:45 AMCannot fingerprint input property 'classpaths.$3.$7.id': value 'xyz.bluspring:AsmFabricLoader:1.3.3-SNAPSHOT:20251024.135151-1' cannot be serialized.
Don't know how to serialize an object of type org.gradle.api.internal.artifacts.repositories.resolver.MavenUniqueSnapshotComponentIdentifier.
How to fix it in plugin?
https://github.com/terrarium-earth/jvm-multiplatform/blob/main/classpath-api-stubs/src/main/kotlin/net/msrandom/stubs/GenerateStubApi.kt#L25
https://gradle.com/s/vlkllhuaeyuc2Krysia Michulka
11/19/2025, 12:44 PMKrysia Michulka
11/19/2025, 12:44 PMColton Idle
11/19/2025, 4:32 PMversionCatalogs { create("lib") { from(mysubmoduledir/the.toml )}}
then it builds (hooray), but then if I try to add a toml in my actual projects gradle folder then I get an error
"You can only call the 'from' method a single time." Ideas?Miha Markic
11/20/2025, 10:57 AMMiha Markic
11/20/2025, 10:59 AMMiha Markic
11/20/2025, 11:00 AM