Is it possible to use openxava with gradle ? I can't manage to make it work.
Here's my build.gradle
plugins {
id 'java'
id 'application'
id 'eclipse'
}
repositories {
mavenCentral()
}
compileJava {
options.incremental = true
options.fork = true
}
sourceSets {
main {
java {
srcDirs = ['src/main/java/']
}
}
test {
java {
srcDirs = ['src/test/java/']
}
}
}
// Enable your dependencies here
dependencies {
// implementation files('dependency')
implementation "junit:junit:4.12"
// https://mvnrepository.com/artifact/org.openxava/openxava-archetype
implementation group: 'org.openxava', name: 'openxava-archetype', version: '7.1.4'
}
// Redirect stdout to console
test.testLogging.showStandardStreams = true
application {
// Define the main class for the application.
mainClass = 'main.App'
}
tasks.withType(JavaExec) {
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
enableAssertions = true
}
task RunMe(type: JavaExec) {
mainClass = "an.example.class.path"
}
Thanks :)