Basic groovy compile/lint setup
This commit is contained in:
parent
c7310cce0e
commit
0b06c58a28
|
@ -1,2 +1,3 @@
|
||||||
.gradle/
|
.gradle/
|
||||||
build/
|
build/
|
||||||
|
*.sw*
|
||||||
|
|
19
build.gradle
19
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 plugin: 'groovy'
|
||||||
// Apply the java plugin to add support for Java
|
apply plugin: 'codenarc'
|
||||||
apply plugin: 'java'
|
|
||||||
|
|
||||||
// In this section you declare where to find the dependencies of your project
|
|
||||||
repositories {
|
repositories {
|
||||||
// Use 'jcenter' for resolving your dependencies.
|
|
||||||
// You can declare any Maven/Ivy/file repository here.
|
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
|
|
||||||
// In this section you declare the dependencies for your production and test code
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
compile localGroovy()
|
||||||
// The production code uses the SLF4J logging API at compile time
|
// The production code uses the SLF4J logging API at compile time
|
||||||
compile 'org.slf4j:slf4j-api:1.7.18'
|
compile 'org.slf4j:slf4j-api:1.7.18'
|
||||||
|
|
||||||
|
@ -29,4 +17,3 @@ dependencies {
|
||||||
// 'test.useTestNG()' to your build script.
|
// 'test.useTestNG()' to your build script.
|
||||||
testCompile 'junit:junit:4.12'
|
testCompile 'junit:junit:4.12'
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
|
@ -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>
|
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
package io.lasagna.httpwizard
|
||||||
|
|
||||||
|
|
||||||
|
class HttpWizard {
|
||||||
|
void main(String[] argv) {
|
||||||
|
println 'Hello world'
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue