Why do WARs have no dependencies with maven-publish
Hi Daniel, Sounds good. Yes, most of it should work with 5.6.3 (and maybe 5.5.1) already. We just added better documentation for 6.0. Also, “creating and publishing custom components” would be even...
View ArticleAdding a library to .classpath file in Eclipse
Isn’t it good enough to declare the lib entry in the Gradle classpath container? There are a few examples of how to do it here.
View ArticleCompile and test with java 11 and jupiter
regrog: „You gave me a good hint for another topic about build folders in eclipse and gradle. Thanks!…“ You’re welcome! It’s the least I can do Are you able to share what that other topic is? It...
View ArticleAdding a library to .classpath file in Eclipse
Not sure how to declare the lib entry in the gradle classpath container - how to do that?. Using the link you referenced, I tried the below. I could see, using println statements, that the library was...
View ArticleApply plugin in precompile script gradle kotlin
hi i’m trying to apply precompile script gradle.kts file ( gradle.kts script is put in buildSrc/main/java . everything work normally except that i can not add a plugin with version. for example my...
View ArticleBest practice for api vs implementation in multi-module project
I don’t need to retell the documentation here. Your advice is irrelevant, and completely useless, sorry.
View Article[WEBINAR] What's new in Gradle 6.0?
[WEBINAR] What’s new in Gradle 6.0? Join us on November 19th for a live webinar on what’s new in Gradle 6.0
View ArticleDon't run tests unless test task specified on command line
Note: The build I’m working on is a multi-project build. This may impact what solutions will work. I have a project with “unit tests” that are in pretty bad shape. Running all of them for the entire...
View ArticleGradle and webpack --watch
I have a frontend subproject, which build css and js bundles via com.moowork.node plugin. It runs npm run dev under the hood, and my bundles appears. npm run dev calls webpack with some options. Also...
View ArticleBuild Scan activation email not sent
In case this happens to anyone else, try activating the scan on a different browser. That worked for me.
View ArticleInitialize instance variable in loop
why can not initialize instance variable in a loop contained in construct function
View ArticleTransfer Plugin Ownership (Skatteetaten)
Hi! Can someone help with transfering ownership of https://plugins.gradle.org/plugin/no.skatteetaten.gradle.aurora to this user? /Erlend
View ArticlePublish fat jar and thin jar for a project
I am trying to publish both fat jar and thin jar artifacts for a specific project. When I include the shadow plugin logic to publish the fat jar, bot the artifacts are published with dependencies...
View ArticleAdding a library to .classpath file in Eclipse
In Buildship, the whenMerged block does not modify the .classpath file but the content of the Gradle classpath container (i.e. the content of the Project and External Dependencies classpath entry,...
View ArticleConfiguration phase thread safety
I’m writing a plugin for grade and something got me thinking: Can we assume that configuration phase is run from single thread and therefore there is no need to use synchronization. I’m aware that the...
View ArticleInitialize instance variable in loop
Well it really depends on what are you exactly doing. An example would be great: If you meant that: you cannot initialize instance variable from within the class constructor. Then the only reason I...
View ArticleDon't run tests unless test task specified on command line
A dumb solution would be to just make your build aware that it;'s running on jenkins and utilze solution nr 2 . Just add some project property from command line: ./gradlew -Pjenkins=true … and use...
View Article