Skip to content

Commit

Permalink
Add checkstyle to Gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Sep 12, 2017
1 parent b5dcb11 commit 48d8d9b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'checkstyle'

group = 'com.github.cs125-illinois'

javadoc {
source = sourceSets.main.allJava
destinationDir = file('docs')
source = sourceSets.main.allJava
destinationDir = file('docs')
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
from sourceSets.main.allSource
classifier = 'sources'
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
from javadoc.destinationDir
classifier = 'javadoc'
}

artifacts {
archives sourcesJar
archives javadocJar
archives sourcesJar
archives javadocJar
}

test {
useTestNG()
useTestNG()
}
repositories {
jcenter()
jcenter()
}
dependencies {
testCompile 'org.testng:testng:6.10'
testCompile 'org.testng:testng:6.10'
}
checkstyle {
toolVersion "8.1"
}


Expand Down

0 comments on commit 48d8d9b

Please sign in to comment.