Quantcast
Channel: Gradle Forums - Latest posts
Browsing all 20397 articles
Browse latest View live

Does Gradle --scan option make --stacktrace redundant?

Turns out it does include, scan includes everything and makes --stacktrace redundant.

View Article


Jar tasks not executing

Hi, I’m migrating from maven to gradle and I can’t build my project I have a dependency api(project(":myLibrary")) but only compileJava executed Compilation fails because cannot find a jar file (jar...

View Article


Gradle 6.5-rc-1 is now available for testing

Gradle 6.5 RC1 is available for testing; see the release notes for more information.

View Article

Loading native dll within a Gradle PlugIn

Hello, my team works on a Gradle PlugIn with a custom task that uses the Google ORTools library. Therefore we try to load the native jniortools.dll when executing the task. The dll file is located in...

View Article

Image may be NSFW.
Clik here to view.

buildSrc precompiled kotlin script problems in IntelliJ

The associated Gradle Project isn’t imported. That’s the banner IntelliJ IDEA shows me at the top of my .gradle.kts script-plugin file in my buildSrc directory. It offers a “Load script configuration”...

View Article


Unable to resolve gradle plugin -

HI All, I am new to gradle .Unable to resolve plugin issue for past few days.please help Please find below gradle build --scan 3:23:22 pm: Executing task ‘build --scan’… FAILURE: Build failed with an...

View Article

Extracting files from dependency regardless of whether it is jar or project...

Hi, I know similar topics have been asked before regarding how to setup a task (usually something like extractApi) to extract a file from dependency jar/zip. task extractApi(type: Copy) { from {...

View Article

Runnig gradle wrapper failed for updating if plugin resolution defined in...

I have a project root and project child inside it. In root project file ‘settings.gradle.kts’ file contains plugin resolution code: ... pluginManagement { val kotlinVersion: String by settings...

View Article


How to download/consume published artifacts using gradle

I am trying to publish artifacts to private-GitLab with two dependencies(Web and Actuator) as below dependencies { compile("org.springframework.boot:spring-boot-starter-actuator")...

View Article


Image may be NSFW.
Clik here to view.

[Feedback needed] Gradle Module Metadata

CedricChampeau: We’re looking for early adopters, both on the library authors side (you build a library, and you’d like to publish Gradle Module Metadata) and as a consumer of module metadata. Hi...

View Article

Gradle-model-core dependency for Gradle 5.6.3

To provide a bit more info, I am using ClassGenerator to create instances of the classes. In 5.6.3, this interface has been made package private (that might be why I am getting the above error). Below...

View Article

Publishing local plugin

Did you create a com.abc.demo.properties file in src/main/resources/META-INF/gradle-plugins/ containing implementation-class=com.abc.demo.PlaygroundPlugin? Please look up the details in the...

View Article

Boolean dependency attribute problems in Kotlin DSL

I’ve just seen SO answer recommending to replace of “Boolean::class.java” by “Boolean::class.javaObjectType”

View Article


Using Kotlin extension properties & functions from Kotlin DSL in my plugin's...

That’s right, you don’t get generated accessors in .kt files. But you can also use .gradle.kts files in your plugin project, and they do get generated accessors. See Precompiled script plugins in the...

View Article

Specifying arguments in gradlew

I see that arguments can be specified in gradlew shell script: # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script....

View Article


Image may be NSFW.
Clik here to view.

Replace default artifact from Jar task - Need new solution for Gradle 5+

Many thanks for this thread. I tried a whole day to solve this problem for me. Finally I created this generic script file: fixArtifactConfiguration.gradle configurations.each { configuration ->...

View Article

Image may be NSFW.
Clik here to view.

Conditional dependency substitution of war-file

Maybe this thread helps you: Replace default artifact from Jar task - Need new solution for Gradle 5+ Help/Discuss I asked this long ago and there is an archived answer from the Old Forum, but that...

View Article


Image may be NSFW.
Clik here to view.

EAR plugin & composite build

The problem is discussed and solved in this thread: Replace default artifact from Jar task - Need new solution for Gradle 5+ Help/Discuss I asked this long ago and there is an archived answer from the...

View Article

Gradle Enterprise Gradle plugin 3.3.2 has been released

The Gradle Enterprise Gradle plugin v3.3.2 has been released. New in this version: Stale build scan files are cleaned up Dock icon is not shown on macOS when provisioning an access key Problems...

View Article

Gradle Enterprise Gradle plugin 3.3.3 has been released

The Gradle Enterprise Gradle plugin v3.3.3 has been released. New in this version: Problems launching the background upload process are logged to the upload failure log file Compatible with...

View Article
Browsing all 20397 articles
Browse latest View live


Latest Images