#openxava + gradle

4 messages · Page 1 of 1 (latest)

primal pike
#

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 :)

rain pathBOT
#

This post has been reserved for your question.

Hey @primal pike! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

primal pike
#

openxava + gradle