All Questions
Tagged with gradle gradle-plugin
1,267
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
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
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
36
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 &...
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?
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 ...
0
votes
1
answer
26
views
how to get instance of org.gradle.plugin.use.PluginDependency in custom plugin
My scenario is to apply other plug-ins in my customized plug-in, but before applying other plug-ins, the dependencies must be configured, otherwise an error will be reported when running, and the plug-...
0
votes
1
answer
71
views
Should isMinifyEnabled=true exist in build.grade of library module?
I am using library modules in my apps.
I have isMinifyEnabled=true in my app level. I have (had) isMinifyEnabled=true also in my libraries. I did it thinking this needs to be done for the code that ...
0
votes
0
answers
63
views
Gradle Unable to Resolve Plugin Despite Successful Curl Request
I am encountering an issue with Gradle when attempting to run a task on a Linux server. Despite having the correct Java and Gradle versions configured, I am getting SSL misconfiguration errors when ...
0
votes
0
answers
53
views
Gradle does not permit writing to files in build directory
I am working on a gradle plugin that downloads a file with tiny mappings to remap a spigot plugin that remaps nms into other mappings, either obfuscate them back from mojang or remap into an ...
1
vote
0
answers
64
views
expo-modules-core inconsistent compatibility 'compileJava' (11) and 'compileKotlin' (17)
I'm doing update of Expo from 48 to 49.0.23 (includes update of React Native from 0.71.8 to 0.72.10).
iOS works fine.
Android ./gradlew build gets error that I cannot bypass:
Execution failed for task ...