Thomas Sundberg

March 22, 2015

A Gradle plugin written in Java

Filed under: Automation, Gradle, Java, Tools — Tags: , , , , — Thomas Sundberg @ 15:28

This post is available at http://www.thinkcode.se/blog/2015/03/22/a-gradle-plugin-written-in-java

Advertisements

9 Comments »

  1. Hi Thomas, thanks for the article 🙂 Could you please fix the first word? Instead of “Gralde” use “Gradle”.

    Comment by Igor Popov — April 27, 2015 @ 18:33

  2. Have you been in touch with the Gradle developers to have this tutorial added to the product wiki.
    I found the gradle plugin docs quite lacking in detail and variety.
    This would be a valuable addition to the product docs.
    Well done and thanks

    Comment by John Lonergan — June 29, 2015 @ 19:01

    • Hi!

      You are welcome!

      I haven’t been in contact with the Gradle developers. Do you have an url to the wiki where it could be added?

      /Thomas

      Comment by Thomas Sundberg — June 29, 2015 @ 22:16

  3. For completeness, can you post the content of HelloWorld.java please?

    Comment by Martin d'Anjou — December 15, 2015 @ 14:17

    • Hi!

      This would be tha source for the HelloWorld.java:

      package se.thinkcode;
      
      public class HelloWorld {
          private String greeting;
      
          public HelloWorld(String greeting) {
              this.greeting = greeting;
          }
      
          public String greet() {
              return greeting;
          }
      }
      

      /Thomas

      Comment by Thomas Sundberg — December 15, 2015 @ 22:46

  4. Hi Thomas,

    Thanks for posting this. There is a typo on this line.

    def task = project.task(‘demoype: DemoTask)

    should be

    def task = project.task(‘demo’, type: DemoTask)

    Erwin

    Comment by Erwin — April 26, 2016 @ 16:37


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: