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

Explode WAR file with Distribution plugin

I have a multi project build with 2 modules. root myWebApp distribution myWebApp uses the ‘war’ plugin and creates a war file (obviously) I would like to create a distribution zip file containing the...

View Article


Image may be NSFW.
Clik here to view.

parallel gradle builds running on jenkins causing issue with gradle global cache

I have commented out this very line and have seen situation improve. Basically, this line rm -rf /var/lib/jenkins/.gradle/caches existed for historical reasons, which I’m unaware of and nobody in the...

View Article


Failing Tests NoClassDefFoundError

I am having a bit of a problem running some of my tests. Just on my work computer it fails when running the test. Running the tests on CI (Jenkins) and on other computers the tests runs just fine. I...

View Article

How to execute a task before executing or building the subprojects in gradle?

How to execute a task before executing or building the subprojects in gradle? I have a multi-project build with the following build.gradle in the root project apply plugin: 'com.google.protobuf'...

View Article

Image may be NSFW.
Clik here to view.

parallel gradle builds running on jenkins causing issue with gradle global cache

sukantamaikap: I also have disabled use global cache for now. I don’t know what you mean by this. What is the global “cache”? Gradle has many caches (e.g. dependency cache, file hashes cache, metadata...

View Article


Java-library - enforce jar file to be build if added to another projects...

Hello, I try depend on a java-library “anotherProject” within a multi project build like : project.dependencies.add("myconfiguration", project.findProject("anotherProject")) I need to extract the...

View Article

Intellij gradle build vs. cmdline build

Over the years(especially with maven), I have seen tons of confusion when cmdline and IDE share the same output folders. For instance, intellij may be building while I then go and run ./gradlew...

View Article

Kotlin vs. Groovy for Gradle DSL

Hey gradle users! In January 2020, how is the maturity of the Kotlin DSL? Who’s using it in production? Has it been a good experience? Are there any limitations or blind spots? Is it as mature as the...

View Article


Gradle upgrade to 5.6 broke since new gradle is claiming old dirs to be...

I have a directory structure like this webpieces core core-project1 core-project2 http http1-parser http2-parser It seems gradle is now injecting the subprojects section into ‘core’ even though ‘core’...

View Article


Image may be NSFW.
Clik here to view.

Run cleanTaskName without adding depencies

I found kind of a workaround, abusing onlyIf{} However, if the same task type is executed twice, a dummy task must be executed in between… (similar used to force cache only by stashing outputs in...

View Article

Image may be NSFW.
Clik here to view.

QueryDsl annotatioprocessor class not found

If your Gradle is above 5, it won’t work. github.com/ewerk/gradle-plugins Upgrade integration-test plugin to Gradle 5+ opened 09:24AM - 06 May 19 UTC holgerstolzenberg plugin: integration-test status:...

View Article

Gradle upgrade to 5.6 broke since new gradle is claiming old dirs to be...

How are you adding these projects in settings.gradle? If you’re doing something like: include ":core:core-project1" Then core is a parent project for core-project1. This has always worked this way....

View Article

Explode WAR file with Distribution plugin

The solution is to add a configuration in myWebApp that resolves to a directory containing the exploded web application. In “myWebApp”, build.gradle: plugins { id 'war' id 'eclipse' } configurations {...

View Article


Configure a plugin that uses contianers from another plugin

I am trying to create a plugin that uses another plugin. I have figured out how to apply the plugin but I cannot figure out how to configure the plugin. I can configure it in my build.gradle. I want...

View Article

Image may be NSFW.
Clik here to view.

Explode WAR file with Distribution plugin

mich9463: distributions { main { contents { into(‘somedirectory/webapps’) { from (project.zipTree(project.configurations.warFiles)) } } } I my case I’m using from...

View Article


Image may be NSFW.
Clik here to view.

Gradle upgrade to 5.6 broke since new gradle is claiming old dirs to be...

hmmm, yes, :core:core-project1 is exactly how I add it though core directory is empty with just actual gradle projects in it. Is there any way I can fix this issue? or does the jacoco plugin somehow...

View Article

Gradle upgrade to 5.6 broke since new gradle is claiming old dirs to be...

ah, I have narrowed it down to this section. NOTE the findAll piece section like so executionData = files(executionData.findAll { it.exists() }) that exists in this section. It seems to no longer work...

View Article


Image may be NSFW.
Clik here to view.

Alternative to `libsDir`

Lance: project How to do the same thing from a snippet that does a few subprojects to gather all the jars for a project into a staging directory like so subprojects { … … task syncJars(type: Sync,...

View Article

폭음이 oepa.or.kr/ - 우리카지노

두 가닥의 폭음이 https://oepa.or.kr/ - 우리카지노턴지며 더킹카지노그들은 퍼스트카지노가슴팍에 샌즈카지노일 코인카지노장씩을 더나인카지노격중당하고 피 를 토하며 날아갔다. “크아악!” “케에엑!”

View Article

Alternative to `libsDir`

You need to think about which task created the jar rather than the location of the jars. Perhaps task syncJars(type: Sync) { from tasks.withType(Jar) ... }

View Article
Browsing all 19850 articles
Browse latest View live