Questions tagged [buildsrc]

21 questions
0
votes
1 answer

Cannot resolve external dependency org.jetbrains.kotlin:kotlin-sam-with-receiver:1.5.31 because no repositories are defined

Trying to add buildSrc to manage dependencies getting the following error: Error while evaluating property 'filteredArgumentsMap' of task ':buildSrc:compileKotlin'
Md. Shofiulla
  • 2,135
  • 1
  • 13
  • 19
0
votes
1 answer

Unresolved reference on fly in buildSrc

I'm trying to write code in buildSrc in Android project, but it allways notice me Unresolved reference: xxx, like this: Although the compilation can pass, it is always inconvenient. I've tried restarting the IDE, Invalidate Caches, reinstalling the…
Madray Haven
  • 192
  • 9
0
votes
1 answer

How to create multi project fat jar as bundle of some libraries with buildSrc

First of all, sorry for my poor english. Goal I want create multi project containing some custom libraries as subproject with gradle. For centralized dependency version control, using buildSrc and setting versions (spring-boot, detekt, ktlint…
0
votes
1 answer

In gradle 7.x, is it possible to invoke function defined in `org.gradle.kotlin.dsl.*` in buildSrc?

In my multi-module project built by Gradle, a few repeated dependency declarations can be aggregated into a utility function The easiest way to define such function that can be used by all submodules is to do it in buildSrc: What is the purpose of…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
0
votes
1 answer

How to get rid of Kotlin DSL warnings

I have just started learning KotlinDSL recently. And in Android added buildSrc. In this folder I have module plugins: AppModulePlugin, CommonModulePlugin, FeatureModulePlugin. All of this compiles and the application installs correctly, everything…
No Name
  • 741
  • 8
  • 18
0
votes
1 answer

How in buildSrc use project() instead of const string, Gradle Dependency Management with Kotlin

I use const string in my project, like here: https://handstandsam.com/2018/02/11/kotlin-buildsrc-for-better-gradle-dependency-management. In my build.gradle.kts my dependencies block looks like: dependencies { compile(project(DepModule.cmn)) …
Darkin Rall
  • 377
  • 1
  • 4
  • 17
1
2