Skip to content

Jessitron

Search
  • Blog
  • Twitter
  • Patreon
  • Talks
  • Newsletter
  • Search

gradle

using checkstyle in gradle

July 20, 2012 by jessitron

The checkstyle plugin brings code quality checks into the gradle build. This way, if team members are using disparate IDEs or have different settings, consistent coding standards are enforced in the build. Here’s how to add checkstyle to your Java build in two steps:1) In build.gradle, add this:     apply plugin: ‘checkstyle’    checkstyle … Read moreusing checkstyle in gradle

Categories UncategorizedTags gradle, Java

Connecting Java Projects in Gradle

June 12, 2012 by jessitron

The problem: multiple Java projects, each with their own Gradle build, dependent on each other but not linked.The goal: connect them into one great build to rule them all.The caveat: without messing with the individual builds. It is 3 days before go-live at this startup. The solution:1) get all of the projects under one subdirectory. … Read moreConnecting Java Projects in Gradle

Categories UncategorizedTags gradle

Excluding manual tests in Gradle

April 11, 2012 by jessitron

test { exclude ‘**/Manual*’} this is here because I know I will forget it.

Categories UncategorizedTags gradle, reference

IntelliJ IDEA 11

December 20, 2011 by jessitron

The new version of IntelliJ IDEA is out, and I’m liking it. Gradle integration: creating a new project from a build.gradle was smooth and easy. Then when dependencies were added to the gradle file, the gradle plugin came in handy. One line added to build.gradle apply plugin: ‘idea’ and then one execution of gradle idea … Read moreIntelliJ IDEA 11

Categories UncategorizedTags android, gradle, Idea, Java, jug

Gradle is easy: Groovy tests

December 13, 2011 by jessitron

Today in Unit Testing, an evil framework class hid my important return value away in a private field. Groovy to the rescue! So far, all our code and tests are in Java. It took only two lines in build.gradle, as specified in the gradle documentation, and poof. I put my little test class in src/test/groovy/package/structure, … Read moreGradle is easy: Groovy tests

Categories UncategorizedTags gradle, groovy, tdd, testing

Stupid Gradle Tricks #1: what can I do in this block?

November 26, 2011 by jessitron

In the previous post, we saw that each labeled block in a Gradle build file is really a closure with DELEGATE_FIRST scope. Each of these blocks has access to all the methods on the delegate object. The class of that delegate object varies by block. Even looking at the source code to identify the class … Read moreStupid Gradle Tricks #1: what can I do in this block?

Categories UncategorizedTags gradle

Lifting the blankets of Gradle

November 25, 2011 by jessitron

Gradle, the build system, is a DSL on top of Groovy. The build scripts (which are really configuration scripts) are Groovy code. So why do they look so weird? Today I configured a particular obscure property of the eclipse plugin in milestone 6 of Gradle. The answer looks like: apply plugin: ‘eclipse-wtp’eclipse { wtp { … Read moreLifting the blankets of Gradle

Categories UncategorizedTags functional, gradle, groovy

popular

  • Choices with def and val in Scala
    Choices with def and val in Scala
  • PowerShell equivalent of find
    PowerShell equivalent of find
  • Converting from svn to git
    Converting from svn to git
  • Five levels of learning
    Five levels of learning
  • OKRs for Evil and Good
    OKRs for Evil and Good

meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Blog
  • Twitter
  • Patreon
  • Talks
  • Newsletter

Tags

abstraction agile architecture automation business change clojure complexity concurrency design DevOps Docker Engineering functional functionalPrinciples Generativity git honeycomb Java javascript learning observability philosophy property-based testing reference ruby scala science Software Development symmathesy systems Systems Thinking teams testing thinkingFunctionally tistil typescript Web Development wit Yak Shaving

Archives

Search

© 2026 Jessitron • Powered by WPKoi
Scroll back to top