From 764de8d3adaf4409dccb3497cf6ca68f8337405b Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Mon, 9 Jul 2018 21:17:20 +0100 Subject: [PATCH] hello groovy --- build.gradle | 5 +++++ host-cache/build.gradle | 13 +++++++++++++ .../groovy/com/muwire/hostcache/HostCache.groovy | 9 +++++++++ settings.gradle | 1 + 4 files changed, 28 insertions(+) create mode 100644 build.gradle create mode 100644 host-cache/build.gradle create mode 100644 host-cache/src/main/groovy/com/muwire/hostcache/HostCache.groovy create mode 100644 settings.gradle diff --git a/build.gradle b/build.gradle new file mode 100644 index 00000000..5c41c842 --- /dev/null +++ b/build.gradle @@ -0,0 +1,5 @@ +allprojects { + repositories { + mavenCentral() + } +} diff --git a/host-cache/build.gradle b/host-cache/build.gradle new file mode 100644 index 00000000..37c77884 --- /dev/null +++ b/host-cache/build.gradle @@ -0,0 +1,13 @@ +apply plugin: 'groovy' +apply plugin: 'application' + +dependencies { + compile 'net.i2p:i2p:0.9.35' + compile 'org.codehaus.groovy:groovy-all:2.5.0' +} + +compileGroovy { + groovyOptions.optimizationOptions.indy = true +} + +mainClassName = 'com.muwire.hostcache.HostCache' diff --git a/host-cache/src/main/groovy/com/muwire/hostcache/HostCache.groovy b/host-cache/src/main/groovy/com/muwire/hostcache/HostCache.groovy new file mode 100644 index 00000000..3c3b0d22 --- /dev/null +++ b/host-cache/src/main/groovy/com/muwire/hostcache/HostCache.groovy @@ -0,0 +1,9 @@ +package com.muwire.hostcache + +public class HostCache { + + public static void main(String[] args) { + print "Hello world" + } + +} diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 00000000..5e93f7ae --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include 'host-cache'