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.
J-WatchList/build.gradle

81 lines
1.5 KiB

apply plugin: 'java'
apply plugin: 'checkstyle'
dependencies {
compile 'javax.json:javax.json-api:1.1.4'
compile 'org.glassfish:javax.json:1.1.4'
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')
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDir 'src/main'
}
resources {
srcDir "src/resources"
}
}
test {
java {
srcDir 'src/test'
}
resources {
srcDir "src/resources"
}
}
}
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'
}