(T-303-HUGB, Hugbúnaðarfræði, 2016-3)
Sample program used to show students Gradle in action. Based on Jón Ingi's Hello World Gradle app.
- build.gradle (The gradle build file that we use)
- gradle (Folder containing the gradle wrapper)
- gradlew (Linux/Unix script to run the gradle wrapper)
- gradlew.bat (Windows script to run the gradle wrapper)
- settings.gradle (Settings file for gradle, not used in our example, can for example contain definitions if we have multiple projects)
- src (Source folder for our code)
- Fork this repo to your own account (or organization's account).
- Clone this repo to your computer
- Using https:
git clone https://github.com/YOUR-GITHUB/chuck_joke.git
- Or, better yet, using ssh:
git clone [email protected]:YOUR-GITHUB/chuck_joke.git
- Using https:
- Make sure it runs on your setup:
./gradlew check
orgradlew.bat check
if you are running on Windows. - If everything is OK, you can use the scripts in the
bin/
folder to compile, package, run or deploy. - To make the server run on a different port, other than 4567, you'll need to do
export PORT=1337
(for port 1337 on *nix computers) orset PORT=1337
on Windows.