import { TEST_DIR, GRADLE_BUILD_SRC_MAIN_DIR } from '../generator-constants.js';
const gatlingFiles = {
    gatlingFiles: [
        {
            templates: ['README.md.jhi.gatling'],
        },
        {
            condition: generator => generator.buildToolGradle,
            path: GRADLE_BUILD_SRC_MAIN_DIR,
            templates: ['jhipster.gatling-conventions.gradle'],
        },
        {
            path: TEST_DIR,
            templates: [
                'gatling/conf/gatling.conf',
                'gatling/conf/logback.xml',
            ],
        },
    ],
};
export default async function writeTask({ application }) {
    await this.writeFiles({
        sections: gatlingFiles,
        context: application,
    });
}
