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

All Questions

Tagged with
-1 votes
0 answers
48 views

What does this Gradle lines mean?

This lines are from GroovyFx project, which was written for Java 8. What does the classpath variables mean and how can be this translated into the latest Gradle specifications?: configurations { ...
DbSchema's user avatar
  • 399
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 ...
18446744073709551615's user avatar
2 votes
1 answer
84 views

Class referred in Annotation cannot be found

In this project: https://github.com/wise-coders/groovyfx., a fork of GroovyFX (see source code). Upgrading to OpenJDK 17 and Gradle 7.6 I get this error (which did not happen under Java 8): Could not ...
DbSchema's user avatar
  • 399
0 votes
1 answer
119 views

Gradle Migration Issue

Upgrading a project from Java 8 to OpenJDK 17, I got an error. Here is the build.gradle. configurations { jansi.extendsFrom(runtime) } sourceSets { demo { compileClasspath += ...
DbSchema's user avatar
  • 399
0 votes
1 answer
55 views

Run a PLpgsql script after an extended task in Flyway and Gradle

I have a Java Spring application using Gradle for dependency management connected to a Postgres database. I am testing it and constantly applying migrations, making changes to the architecture, and ...
Eriol's user avatar
  • 147
0 votes
1 answer
41 views

How are the destinationDirectory properties in the build.gradle Jar closure generated

I was confused when looking at the gradle source code. The destinationDirectory property in the AbstractArchiveTask is not declared AbstractArchiveTask, but why can it be called directly? *archiveTask....
Albert's user avatar
  • 3
0 votes
0 answers
31 views

Gradle: applying plugin from local Maven repository [duplicate]

I have successfully published the artifact into my local m2 repository at location: .m2\repository\com\example\gradle-binary-plugin\1.0 The name of the plugin is gradle-binary-plugin-1.0.jar Now, I ...
meallhour's user avatar
  • 15.1k
0 votes
1 answer
40 views

How to understanc MavenPublication in syntax

when i read doc:https://docs.gradle.org/current/javadoc/org/gradle/api/publish/maven/MavenPublication.html. i saw content blow. A MavenPublication is the representation/configuration of how Gradle ...
arderbud's user avatar
4 votes
3 answers
4k views

Could not find method exec() for arguments. Android Build Error

react-native project randomly started failing with Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method exec() for arguments [...
Christopher V. Young's user avatar
0 votes
1 answer
140 views

JaCoCo coverage with SpockFramework + groovy is incomplete

Given a case statement with a default a unit test for this When IDEA, runs coverage tests, the lines show as covered. When gradle+jacoco creates the reports, the lines show as not covered. Copilot ...
Peter Kahn's user avatar
  • 12.9k
0 votes
1 answer
57 views

Set up a scala project with gradle in intelij

I'm trying to setup a scala project, just to run some basic code and practise scala and gradle. What is the best method to setup a scala project with intellij and gradle? I'm currently using: gradle ...
user23989104's user avatar
0 votes
1 answer
102 views

Liquibase configuration in Gradle conventions plugin

I have a multi module Java / Gradle project where each module has identical configuration, so I would like to move that to a convention plugin as a pre-compiled script plugin. The problem is that all ...
Sean Patrick Floyd's user avatar
0 votes
1 answer
70 views

Quarkus + Gradle: How to Reference an Object in subProjectA from subProjectB in a Multi-Project Setup?

In a non-Quarkus, plain Gradle multi-project setup, I would need to make sure that the settings.gradle file of the root project has include 'subProjectA', 'subProjectB' and that subProjectB build....
Josue Gialis's user avatar
2 votes
1 answer
300 views

Error dependencies/modules org.apache.poi:poi:5.2.5 in JavaFX project with Java21 and Gradle 8.6

I can't seem to integrate libraries org.apache.poi:poi into my project (JavaFX with Java21 and Gradle) when I start task jpackage. During task createMergedModule I get the following errors: Fehler: ...
SM-Net's user avatar
  • 83
1 vote
1 answer
74 views

How do i use gradle plugin generated from shared logic jar in another project?

I have a Gradle 8 project with a build-logic folder. I was able to create a jar for that module and define it as a dependency in a separate project but I'm unable to apply the plugin. now I'm trying ...
Kush Singh's user avatar

15 30 50 per page
1
2 3 4 5
145