Questions tagged [gradle-plugin]
Gradle is a project build automation tool. A Gradle plugin packages up reusable pieces of build logic, which can be used across many different projects and builds. Gradle allows you to implement your own custom plugins, so you can reuse your build logic, and share it with others.
gradle-plugin
1,618
questions
0
votes
2
answers
36
views
Could not resolve com.android.tools.build:gradle:7.4.2 convention module
I'm trying to write gradle plugin in my android project. I have a build-logic module which contains convenion module. I wrote a small plugin JvmLibraryPlugin and registered it in the convention module ...
0
votes
0
answers
8
views
Script variable conflicts with a named object (Gradle/Groovy DSL)
I am surprised to find out that the name spaces of script variables and named objects interact in a very bad way. In my real build script, the conflicting name was integrationTest and it looked like I ...
0
votes
0
answers
18
views
Updating Android Gradle plugin above 3.2
I am trying to create the sign in keys for my flutter app by running build\Generate signed bundle or apk but I can't since I need to have android gradle plugin 3.2.0 or above. So I tried updating my ...
0
votes
1
answer
16
views
Do I need properties for passing parameters to a Gradle plugin?
I am writing a Gradle plugin. What is the recommended way to pass parameters to it?
The Writing Custom Gradle Plugins Baeldung tutoral (section 4, "Plugin Configuration") recommends creating ...
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 ...
1
vote
1
answer
35
views
gradle plugin not found after publishToMavenLocal
I want to publish my plugin in my local Maven repository, and it does not work. The plugin looks published, but is not found after publishing. This happens even with the "hello-world" plugin ...
0
votes
0
answers
94
views
Dependency 'androidx.appcompat:appcompat-resources:1.7.0' requires version 34 or later to compile
How to know a particular version of dependency can be compiled with a minimum/maximum version of Android SDK API version.
e.g. How to know Dependency 'androidx.appcompat:appcompat-resources:1.7.0' ...
0
votes
1
answer
36
views
Switch repository based on environment
In my local development environment, I need to use my local repo. But when I build in cloud, I need to use remote repo.
Can someone please help me to achieve this as I'm new to gradle?
EDIT:
This is ...
0
votes
1
answer
17
views
Custom gradle Plugin to Run on Client Projects code
In our organization, we have a repository where we export a variety of plugins related to checkstyle, PMD, component testing, and Liquibase, among other things. I created a simple plugin with a task ...
0
votes
0
answers
37
views
plugins\Galactifun.jar does not contain a paper-plugin.yml or plugin.yml. Could not determine plugin type, cannot load a plugin from it
I recently forked a Minecraft plugin by the name of Galactifun in order to adapt it to the needs of my server however I realised I couldn't compile it properly.
The plugin uses a gradle plugin called &...
-1
votes
0
answers
17
views
Build Gradle fail with CordApp
I am following CordApp cordapp-template-java tutorial and the build fails when trying to run startCorda. The following error:
Execution failed for task ':startCorda'.
net.corda.gradle.plugin....
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?
-1
votes
0
answers
29
views
map application not running
i been trying to run an app am working on with flutter and mapbox but it keeps throwing this error
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':...
3
votes
4
answers
664
views
bootJar task fails with Gradle 8.5 and Spring Boot 3.3.0, caused by Spring Boot Gradle plugin's usage of Apache commons compress library
I have the following setup:
Gradle: 8.5
Spring Boot 3.3.0
Kotlin: 1.9.23
Before I used Spring Boot 3.2.6, and after update to the latest version I encounter the following error when running bootJar ...
0
votes
0
answers
31
views
Transform classes with Gradle API's TransformAction
According to the docs, one can register transforms for artifacts and apply tasks that require them, like the Minify example.
I'm looking to have an artifact transform at the .class level, i.e. not ...