You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.3 KiB
72 lines
1.3 KiB
apply plugin: 'java'
|
|
apply plugin: 'checkstyle'
|
|
|
|
dependencies {
|
|
compile fileTree(include: ['*.jar'], dir:'lib')
|
|
testCompile fileTree(include: ['*.jar'], dir:'lib')
|
|
testImplementation fileTree(include: ['*.jar'], dir:'lib')
|
|
testRuntime fileTree(include: ['*.jar'], dir:'lib')
|
|
checkstyle files('lib/checkstyle-8.20-all.jar')
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion '8.20'
|
|
configFile file('checkstyle.xml')
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir 'src/main'
|
|
}
|
|
resources {
|
|
srcDir "src/resources"
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
srcDir 'src/test'
|
|
}
|
|
}
|
|
}
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
showStandardStreams = true
|
|
}
|
|
}
|
|
|
|
task run(type: JavaExec) {
|
|
group = 'Run'
|
|
description = 'Run main'
|
|
standardInput = System.in
|
|
|
|
classpath sourceSets.main.runtimeClasspath
|
|
main = "ui.Main"
|
|
//args "arg1", "arg2"
|
|
}
|
|
|
|
task debug(type: JavaExec) {
|
|
group = 'Run'
|
|
description = 'Debug main'
|
|
standardInput = System.in
|
|
|
|
classpath sourceSets.main.runtimeClasspath
|
|
main = "ui.Main"
|
|
debug = true
|
|
//args "arg1", "arg2"
|
|
}
|
|
|
|
task tags(type: Exec) {
|
|
description = 'Update tags file'
|
|
|
|
commandLine 'ctags', '-R', 'src'
|
|
}
|
|
|
|
checkstyleMain {
|
|
source ='src/main'
|
|
}
|
|
checkstyleTest {
|
|
source ='src/test'
|
|
}
|