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 AMGabor Torok
11/20/2025, 4:30 PMruntimeClasspath works, i found something weird. we are on 8.11.1 , and running this task on different projects yield weird results:
tasks.register('printMyTestClasspath') {
dependsOn 'testClasses'
doLast {
def classpathUrls = sourceSets.test.runtimeClasspath.files
classpathUrls.each {
if (!it.toString().contains(".gradle")) { // to exclude external dependencies
println "classpath file: $it"
}
}
}
}
we have a setup where we have multiple builds depending on each other via includeBuild .
what's weird is that using the above task in show inconsistent results:
β’ sometime the main class directory is in there (build/classes/java/main) and sometime the jar file is in there ( build/libs/something-1.0.jar )
β’ similarly, this is the same for the included builds - i sometimes see the classes/java/main of the dependency project, and sometimes i see the jar
β’ on repeated executions the results seem to stay the same.
My questions are:
β’ What could cause this? The build.gradle files are very similar in our different builds, i did not find any indication of what could cause this difference (sure, i could be missing something.)
β’ Is this a bug? Or something that has been fixed in later versions?
β’ Are there any workarounds that I can use to get some consistency? I want to write tooling that loads the test classes with the class loader, and then checks stuff on them - but i am getting random errors, based on weather some projects classpath has the jar or the classes ...William Chong
11/20/2025, 9:19 PMCould not resolve all artifacts for configuration 'classpath'.> Could not find net.fabricmcfabric loom1.7.6. Searched in the following locations: - https://maven.fabricmc.net/net/fabricmc/fabric-loom/1.7.6/fabric-loom-1.7.6.pom - https://repo.maven.apache.org/maven2/net/fabricmc/fabric-loom/1.7.6/fab ric-loom-1.7.6.pom - https://plugins.gradle.org/m2/net/fabricmc/fabric-loom/1.7.6/fabric-loo m-1.7.6.pom Required by: buildscript of root project 'RealRender' * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to generate a Build Scan (Powered by Develocity).
Get more help at https://help.gradle.org.BUILD FAILED in 6s and I tried using other version of gradle and it doesnt help Iβm sorry for taking up your valuable time I know it might be a easy issue for you guys to solve. Thank you for your patience and guidance
Miha Markic
11/21/2025, 9:28 AMColton Idle
11/21/2025, 6:03 PMAdam
11/22/2025, 11:14 AMColton Idle
11/22/2025, 6:49 PMΠΠΈΠΊΠΎΠ»Π°ΠΉ ΠΠ»Π΅Π±Π°Π½
11/23/2025, 10:12 AMJavi
11/24/2025, 9:37 AMimplementation configuration and looking for the dependencies there.Eli Graber
11/24/2025, 8:15 PMΠΠΈΠΊΠΎΠ»Π°ΠΉ ΠΠ»Π΅Π±Π°Π½
11/25/2025, 9:18 AMplugins {} block.maikelvdh
11/25/2025, 12:00 PMincludeBuild() context? this to keep the mapping from module to project at its originColton Idle
11/26/2025, 2:43 AMid("org.jetbrains.kotlin.plugin.parcelize") . I converted it to an entry in my toml, and converted it to alias(libs.plugins.kotlin.parcelize) in my build file. but now it wont build UNLESS I go to root build.gradle and add ``alias(libs.plugins.kotlin.parcelize) apply false` `
Why is that needed when using version catalog... but when I just used id("org.jetbrains.kotlin.plugin.parcelize") it did not need the extra line in my root build.gradle (bonus points: how did it even work with id if I never declared the version of the plugin I wanted until i now had to add it in version catalog declaration)Sachin HR
11/26/2025, 3:06 PMMatei David
11/26/2025, 10:20 PM~/.gradle. What I currently do is to populate build/gradle with what I need, namely gradle.properties, some init.d/ scripts, and I point TestKit there with withTestKitDir(). This is mostly ok, except that the various Gradle distributions are downloaded in such test user home directories. This is annoying because it's slow the first time around, and also because these directories are not getting cleaned up. E.g. in 1 project after playing with only 9.2.0 and 9.2.1, I have almost 2GB of mostly generated Gradle jars and transforms. Is there a way to improve this? So basically, I don't care to isolate the Gradle artifacts and transforms from my primary Gradle user home, but I definitely want my user home properties and init scripts not to be visible in tests. Is there some way to achieve properties/init script isolation while also avoiding cache duplication?Gabor Torok
11/27/2025, 6:00 PMSystem.setProperty - and if i do, every other project can just check if the property is set, and if it is, use it, and not do the calculations. this actually works, the checks run only once, yay.
however this solution feels a bit hacky, as it is kind of circumventing gradle to pass along the information.
the question is, are there some alternatives that are better for this use case? we are currently using 8.11.1 - is this solution still going to be viable in later releases?Caleb Cushing
11/28/2025, 10:48 PMcatalog {...]
for publishing one?
catalog {
// declare the aliases, bundles and versions in this block
versionCatalog {
library("my-lib", "com.mycompany:mylib:1.2")
}
}
but then says we "The catalog must be created programmatically, see Programming catalogs for details."
which uses the format
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
version("groovy", "3.0.5")
version("checkstyle", "8.37")
library("groovy-core", "org.codehaus.groovy", "groovy").versionRef("groovy")
library("groovy-json", "org.codehaus.groovy", "groovy-json").versionRef("groovy")
library("groovy-nio", "org.codehaus.groovy", "groovy-nio").versionRef("groovy")
library("commons-lang3", "org.apache.commons", "commons-lang3").version {
strictly("[3.8, 4.0[")
prefer("3.9")
}
}
}
}