From 1c40a3465b6e27254cc6d4a22c9df75de5251723 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sun, 25 Oct 2020 11:11:53 +0100 Subject: [PATCH] Added a simple hello world as a base Signed-off-by: Louis Vallat --- build.gradle | 30 ++++++++++++++----- .../java/xyz/vallat/louis/MovieQuoteBot.java | 9 ++++++ 2 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 src/main/java/xyz/vallat/louis/MovieQuoteBot.java diff --git a/build.gradle b/build.gradle index f0e33bf..4e81683 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,24 @@ -/* - * This file was generated by the Gradle 'init' task. - * - * This is a general purpose Gradle build. - * Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds - */ - - plugins { +plugins { id 'java' } + +group 'xyz.vallat.louis' +version '0.1-SNAPSHOT' + +jar { + manifest { + attributes 'Main-Class': 'xyz.vallat.louis.MovieQuoteBot' + } + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + + from { + configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } + } +} + +repositories { + mavenCentral() +} + +dependencies { +} \ No newline at end of file diff --git a/src/main/java/xyz/vallat/louis/MovieQuoteBot.java b/src/main/java/xyz/vallat/louis/MovieQuoteBot.java new file mode 100644 index 0000000..1015a37 --- /dev/null +++ b/src/main/java/xyz/vallat/louis/MovieQuoteBot.java @@ -0,0 +1,9 @@ +package xyz.vallat.louis; + +public class MovieQuoteBot { + + public static void main(String[] args) { + System.out.println("Hello World!"); + } + +}