Git Product home page Git Product logo

gradle_demo's Introduction

Gradle Demo

Tutorial to help understand the basics of Gradle. Compile, pack, and execute a simple program using Gradle as the buildscript.

Part 1 - Basics

Generates a jar file that can be executed. The expected output is an array of each string provided. Configures the sourceSets and jar tasks provided by the java plugin.

Part 2 - Dependencies

Supports the StringUtils library now being used in the program. Defines where the dependecy can be found, and which version to use. Unpacks the dependency to be available to the jar.

Part 3 - Tasks

Creates three custom tasks.

  1. hello - simply print messages. Used to demonstrate the phases of a task.
  2. runJar - executes the jar file. Used to demonstrate task dependencies.
  3. run - executes the compiled classes. Used as an alternative to the above.

Resources

This tutorial was heavily based on another tutorial that can be found here. I highly suggest watching the three part series.

The original intent of this project was in conjuction with a presentation that can be found here.

gradle_demo's People

Contributors

davishyer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.