diff --git a/.gitignore b/.gitignore index 67bcc2f..23483cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .gradle/ build/ +*.sw* diff --git a/build.gradle b/build.gradle index c2eca0b..e83bd38 100644 --- a/build.gradle +++ b/build.gradle @@ -1,25 +1,13 @@ -/* - * This build file was auto generated by running the Gradle 'init' task - * by 'tyler' at '12/18/16 9:49 AM' with Gradle 2.12 - * - * This generated file contains a commented-out sample Java project to get you started. - * For more details take a look at the Java Quickstart chapter in the Gradle - * user guide available at https://docs.gradle.org/2.12/userguide/tutorial_java_projects.html - */ -/* -// Apply the java plugin to add support for Java -apply plugin: 'java' +apply plugin: 'groovy' +apply plugin: 'codenarc' -// In this section you declare where to find the dependencies of your project repositories { - // Use 'jcenter' for resolving your dependencies. - // You can declare any Maven/Ivy/file repository here. jcenter() } -// In this section you declare the dependencies for your production and test code dependencies { + compile localGroovy() // The production code uses the SLF4J logging API at compile time compile 'org.slf4j:slf4j-api:1.7.18' @@ -29,4 +17,3 @@ dependencies { // 'test.useTestNG()' to your build script. testCompile 'junit:junit:4.12' } -*/ diff --git a/config/codenarc/codenarc.xml b/config/codenarc/codenarc.xml new file mode 100644 index 0000000..64bad3b --- /dev/null +++ b/config/codenarc/codenarc.xml @@ -0,0 +1,23 @@ + + + HTTP Wizard Codenarc Rules + + + + + + + + + + + + + + + + + diff --git a/src/main/groovy/io/lasagna/httpwizard/HttpWizard.groovy b/src/main/groovy/io/lasagna/httpwizard/HttpWizard.groovy new file mode 100644 index 0000000..4ae99aa --- /dev/null +++ b/src/main/groovy/io/lasagna/httpwizard/HttpWizard.groovy @@ -0,0 +1,10 @@ + + +package io.lasagna.httpwizard + + +class HttpWizard { + void main(String[] argv) { + println 'Hello world' + } +}