All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ancientlightstudios.quarkus.kotlin.openapi.GenerateTestSourcesMojo.kt Maven / Gradle / Ivy

There is a newer version: 0.4.14
Show newest version
package com.ancientlightstudios.quarkus.kotlin.openapi

import org.apache.maven.plugins.annotations.LifecyclePhase
import org.apache.maven.plugins.annotations.Mojo
import org.apache.maven.plugins.annotations.Parameter
import java.io.File

@Mojo(name = "test-generate", defaultPhase = LifecyclePhase.GENERATE_TEST_SOURCES, requiresProject = true)
class GenerateTestSourcesMojo : GenerateMojo() {

    /**
     * The directory where the generated sources should be put
     */
    @Parameter(defaultValue = "\${project.build.directory}/generated-test-sources/quarkus-kotlin-openapi")
    override lateinit var outputDirectory: File

    override fun registerSourceRoot() {
        project.addTestCompileSourceRoot(outputDirectory.path)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy