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 Articleparallel 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 ArticleFailing 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 ArticleHow 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 Articleparallel 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 ArticleJava-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 ArticleIntellij 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 ArticleKotlin 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 ArticleGradle 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 ArticleRun 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 ArticleQueryDsl 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 ArticleGradle 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 ArticleExplode 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 ArticleConfigure 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 ArticleExplode 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 ArticleGradle 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 ArticleGradle 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 ArticleAlternative 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 ArticleAlternative 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