io.takari.builder.GeneratedSourcesDirectory Maven / Gradle / Ivy
package io.takari.builder;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Similar to @{@link OutputDirectory} but the directory is also added as compile or testCompile
* source root to MavenProject model as a result of the build.
*/
@Target({FIELD})
@Retention(RUNTIME)
public @interface GeneratedSourcesDirectory {
/**
* @see Parameter#required()
*/
boolean required() default true;
/**
* @see Parameter#value()
*/
String[] value() default {};
/**
* @see Parameter#defaultValue()
*/
String[] defaultValue() default {};
// TODO make type user-configuraable
ResourceType sourceType() default ResourceType.MAIN;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy