Basic groovy compile/lint setup

This commit is contained in:
R. Tyler Croy 2016-12-18 09:57:14 -08:00
parent c7310cce0e
commit 0b06c58a28
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
4 changed files with 37 additions and 16 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.gradle/
build/
*.sw*

View File

@ -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'
}
*/

View File

@ -0,0 +1,23 @@
<ruleset xmlns="http://codenarc.org/ruleset/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://codenarc.org/ruleset/1.0 http://codenarc.org/ruleset-schema.xsd"
xsi:noNamespaceSchemaLocation="http://codenarc.org/ruleset-schema.xsd">
<description>HTTP Wizard Codenarc Rules</description>
<ruleset-ref path='rulesets/imports.xml'>
<rule-config name='DuplicateImport'>
<property name='priority' value='1'/>
</rule-config>
</ruleset-ref>
<ruleset-ref path='rulesets/basic.xml'>
<exclude name='StringInstantiation'/>
</ruleset-ref>
<rule class='org.codenarc.rule.generic.IllegalRegexRule'>
<property name="name" value="AuthorTagNotAllowed"/>
<property name='regex' value='\@author'/>
</rule>
</ruleset>

View File

@ -0,0 +1,10 @@
package io.lasagna.httpwizard
class HttpWizard {
void main(String[] argv) {
println 'Hello world'
}
}