Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [gradle-kotlin-dsl]

Kotlin language support for Gradle build scripts.

gradle-kotlin-dsl
0 votes
0 answers
4 views

Does gradle kotlin buildSrc support defining dependent modules in this format implementation(project(mapOf("path" to ":myModule")))

I am currently migrating my android project to employ buildSrc for its gradle kts configuration. I am stuck with the following types of dependency declarations in their original form as i can not see ...
Hector's user avatar
  • 4,874
0 votes
1 answer
29 views

Local AGP jar was not found in any of the following sources

It happened so that I need to make an app buildable using local tools only. I am stuck with local AGP jar. I have tried to add it to classpath: classpath(files("gradle/com.android.tools.build....
Void's user avatar
  • 1,291
0 votes
0 answers
8 views

How to migrate to Gradle kts prototbuf configuration in my Android application build file

I am migrating to Gradle kts in my current Andriod application. The protobuf configuration is proving to be very challenging the original verson for gradle is as follows:- // Versions def ...
Hector's user avatar
  • 4,874
0 votes
0 answers
17 views

How to specify an assertj template for every subproject?

I have defined some assertj templates in one of my subprojects. In the root build.gradle.kts I have: plugins { id("org.assertj.generator") version "1.1.0" apply false } ...
peer's user avatar
  • 4,557
0 votes
0 answers
20 views

composeCompiler inside a Gradle Plugin

I would like to configure the compiseCompiler inside my Plugin but I am unable to access it. I tried this way: class AndroidApplicationComposeConventionPlugin : Plugin<Project> { override ...
No_Name's user avatar
  • 98
0 votes
0 answers
25 views

Realm Database Dependency Issue

For my android app, I am trying to use Realm's NoSQL embedded database to store files locally as well as on the cloud. However, most of the documentation that I look up seems to be for Kotlin-based ...
Agasti Mhatre's user avatar
0 votes
0 answers
65 views

Which Kotlin-DSl version should I be using and where to find it

I am upgrading various libraries in my project, to include upgrading to Kotlin 2.0.0 and converting from Groovy to Kotlin-DSL for my gradle builds. When running a gradle build, it runs to a success, ...
GeorgeRussell's user avatar
0 votes
1 answer
29 views

How to declare a common dependency for all subprojects?

Facing this issue with dependency injecting libraries. All subprojects have a di and i have to declare DI library every time. Is there a better way?
androidDeweleper's user avatar
0 votes
0 answers
20 views

Qclass dose not generated(non-existent Qclass) witth Springboot3 + JDK17 + Gradle

spirngboot 3.3.1 + JDK17; Problem occurred during migration from Springboot 2.7 to 3.3 my build.gradle.kts enter image description hereplugins { id("java") id("org....
tray's user avatar
  • 3
-1 votes
0 answers
37 views

how can i update the kotlin version in my flutter project?

I am trying to make a flutter app, which upon entering mobile number sends and otp verfication code, using firebase authentication but later an error showed up: Execution failed for task ':app:...
dhr7v's user avatar
  • 1
0 votes
0 answers
27 views

Unexpected tokens (use ';' to separate expressions on the same line) in build.gradle.kts if i use DS Photo Editor SDK Library

[ // DS Photo Editor SDK implementation fileTree(dir: 'libs', include: ['*.jar']) implementation(name:'ds-photo-editor-sdk-v10', ext:'aar')]
Suleman afzal's user avatar
0 votes
0 answers
35 views

Realm objects not being recognised. How to connect MongoDB Realm to a Kotlin Android studio project?

I am still new to kotlin and I've been trying to set up MongoDB Realm for my project and I am not sure what's wrong. I have set up the dependencies , I don't have any build errors however when I try ...
SeeSharpish's user avatar
0 votes
0 answers
35 views

How to properly setup project version code and name in gradle 8.4

I'm setting up some projects in gradle 8.4 and trying to create a good versioning system for those projects, my first instinct was to set the variables for minor/major/patch etc. in gradle.properties ...
wilson mielke's user avatar
0 votes
0 answers
20 views

How to include gradle dependencies in osgi bundle using bnd plugin

I want include dependecies in my bundle entry named libs using gradle and the bnd plugin, here is my build.gradle.kts. import aQute.bnd.gradle.Bundle import org.osgi.framework.Constants plugins { ...
Remering's user avatar
4 votes
0 answers
120 views

Significantly slower compilation time after migration to Kotlin 2.0.0 from 1.9.23

I have a Spring Boot mutliproject that I just updated to Kotlin version 2.0.0 from the earlier version 1.9.23. I use IntelliJ as my IDE and ran the code migration scan tool and no warnings or errors ...
Tristan Adams's user avatar

15 30 50 per page
1
2 3 4 5
89