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

templates.graphql.pom Maven / Gradle / Ivy

package templates.graphql;

import java.io.IOException;
import com.fizzed.rocker.ForIterator;
import com.fizzed.rocker.RenderingException;
import com.fizzed.rocker.RockerContent;
import com.fizzed.rocker.RockerOutput;
import com.fizzed.rocker.runtime.DefaultRockerTemplate;
import com.fizzed.rocker.runtime.PlainTextUnloadedClassLoader;
// import @ [1:1]
import com.fasterxml.jackson.databind.JsonNode;

/*
 * Auto generated code to render template templates/graphql/pom.xml.rocker.raw
 * Do not edit this file. Changes will eventually be overwritten by Rocker parser!
 */
@SuppressWarnings("unused")
public class pom extends com.fizzed.rocker.runtime.DefaultRockerModel {

    static public com.fizzed.rocker.ContentType getContentType() { return com.fizzed.rocker.ContentType.RAW; }
    static public String getTemplateName() { return "pom.xml.rocker.raw"; }
    static public String getTemplatePackageName() { return "templates.graphql"; }
    static public String getHeaderHash() { return "-740952714"; }
    static public long getModifiedAt() { return 1669820837658L; }
    static public String[] getArgumentNames() { return new String[] { "config" }; }

    // argument @ [2:2]
    private JsonNode config;

    public pom config(JsonNode config) {
        this.config = config;
        return this;
    }

    public JsonNode config() {
        return this.config;
    }

    static public pom template(JsonNode config) {
        return new pom()
            .config(config);
    }

    @Override
    protected DefaultRockerTemplate buildTemplate() throws RenderingException {
        // optimized for convenience (runtime auto reloading enabled if rocker.reloading=true)
        return com.fizzed.rocker.runtime.RockerRuntime.getInstance().getBootstrap().template(this.getClass(), this);
    }

    static public class Template extends com.fizzed.rocker.runtime.DefaultRockerTemplate {

        // \n\n    4.0.0\n    
        static private final byte[] PLAIN_TEXT_0_0;
        // \n    
        static private final byte[] PLAIN_TEXT_1_0;
        // \n    jar\n    
        static private final byte[] PLAIN_TEXT_2_0;
        // \n    
        static private final byte[] PLAIN_TEXT_3_0;
        // \n\n    \n        11\n        UTF-8\n        com.networknt.server.Server\n        2.1.4\n        2.14.0\n        1.7.36\n        0.6.3\n        1.2.11\n        3.1.0\n        
        static private final byte[] PLAIN_TEXT_5_0;
        // \n        
        static private final byte[] PLAIN_TEXT_6_0;
        // \n        11.2.0.3\n        
        static private final byte[] PLAIN_TEXT_7_0;
        // \n        8.0.16\n        
        static private final byte[] PLAIN_TEXT_8_0;
        // \n        42.1.1\n        
        static private final byte[] PLAIN_TEXT_9_0;
        // \n        1.3.176\n        
        static private final byte[] PLAIN_TEXT_10_0;
        // \n        2.4\n        1.0.0\n        3.1.0\n        3.1.2\n        3.2.1\n        3.8.1\n        2.8.2\n        1.6.0\n            com.zaxxer\n            HikariCP\n            ${version.hikaricp}\n        \n        
        static private final byte[] PLAIN_TEXT_12_0;
        // \n        \n            com.oracle\n            ojdbc6\n            ${version.oracle}\n        \n        
        static private final byte[] PLAIN_TEXT_13_0;
        // \n        \n            mysql\n            mysql-connector-java\n            ${version.mysql}\n        \n        
        static private final byte[] PLAIN_TEXT_14_0;
        // \n        \n            org.postgresql\n            postgresql\n            ${version.postgres}\n        \n        
        static private final byte[] PLAIN_TEXT_15_0;
        // \n        \n        \n            org.junit.jupiter\n            junit-jupiter\n            ${version.junit}\n            test\n        \n        
        static private final byte[] PLAIN_TEXT_16_0;
        // \n        \n            com.h2database\n            h2\n            ${version.h2}\n            test\n        \n        
        static private final byte[] PLAIN_TEXT_17_0;
        // \n    \n\n    \n        install\n        target\n        ${project.artifactId}-${project.version}\n        \n            \n                com.networknt\n                javadoc-packagelist-maven-plugin\n                ${version.javadoc-packagelist-plugin}\n                \n                    \n...
        static private final byte[] PLAIN_TEXT_18_0;

        static {
            PlainTextUnloadedClassLoader loader = PlainTextUnloadedClassLoader.tryLoad(pom.class.getClassLoader(), pom.class.getName() + "$PlainText", "UTF-8");
            PLAIN_TEXT_0_0 = loader.tryGet("PLAIN_TEXT_0_0");
            PLAIN_TEXT_1_0 = loader.tryGet("PLAIN_TEXT_1_0");
            PLAIN_TEXT_2_0 = loader.tryGet("PLAIN_TEXT_2_0");
            PLAIN_TEXT_3_0 = loader.tryGet("PLAIN_TEXT_3_0");
            PLAIN_TEXT_4_0 = loader.tryGet("PLAIN_TEXT_4_0");
            PLAIN_TEXT_5_0 = loader.tryGet("PLAIN_TEXT_5_0");
            PLAIN_TEXT_6_0 = loader.tryGet("PLAIN_TEXT_6_0");
            PLAIN_TEXT_7_0 = loader.tryGet("PLAIN_TEXT_7_0");
            PLAIN_TEXT_8_0 = loader.tryGet("PLAIN_TEXT_8_0");
            PLAIN_TEXT_9_0 = loader.tryGet("PLAIN_TEXT_9_0");
            PLAIN_TEXT_10_0 = loader.tryGet("PLAIN_TEXT_10_0");
            PLAIN_TEXT_11_0 = loader.tryGet("PLAIN_TEXT_11_0");
            PLAIN_TEXT_12_0 = loader.tryGet("PLAIN_TEXT_12_0");
            PLAIN_TEXT_13_0 = loader.tryGet("PLAIN_TEXT_13_0");
            PLAIN_TEXT_14_0 = loader.tryGet("PLAIN_TEXT_14_0");
            PLAIN_TEXT_15_0 = loader.tryGet("PLAIN_TEXT_15_0");
            PLAIN_TEXT_16_0 = loader.tryGet("PLAIN_TEXT_16_0");
            PLAIN_TEXT_17_0 = loader.tryGet("PLAIN_TEXT_17_0");
            PLAIN_TEXT_18_0 = loader.tryGet("PLAIN_TEXT_18_0");
        }

        // argument @ [2:2]
        protected final JsonNode config;

        public Template(pom model) {
            super(model);
            __internal.setCharset("UTF-8");
            __internal.setContentType(getContentType());
            __internal.setTemplateName(getTemplateName());
            __internal.setTemplatePackageName(getTemplatePackageName());
            this.config = model.config();
        }

        @Override
        protected void __doRender() throws IOException, RenderingException {
            // PlainText @ [2:24]
            __internal.aboutToExecutePosInTemplate(2, 24);
            __internal.writeValue(PLAIN_TEXT_0_0);
            // ValueExpression @ [5:14]
            __internal.aboutToExecutePosInTemplate(5, 14);
            __internal.renderValue(config.get("groupId").textValue(), false);
            // PlainText @ [5:48]
            __internal.aboutToExecutePosInTemplate(5, 48);
            __internal.writeValue(PLAIN_TEXT_1_0);
            // ValueExpression @ [6:17]
            __internal.aboutToExecutePosInTemplate(6, 17);
            __internal.renderValue(config.get("artifactId").textValue(), false);
            // PlainText @ [6:54]
            __internal.aboutToExecutePosInTemplate(6, 54);
            __internal.writeValue(PLAIN_TEXT_2_0);
            // ValueExpression @ [8:11]
            __internal.aboutToExecutePosInTemplate(8, 11);
            __internal.renderValue(config.get("artifactId").textValue(), false);
            // PlainText @ [8:48]
            __internal.aboutToExecutePosInTemplate(8, 48);
            __internal.writeValue(PLAIN_TEXT_3_0);
            // ValueExpression @ [9:14]
            __internal.aboutToExecutePosInTemplate(9, 14);
            __internal.renderValue(config.get("version").textValue(), false);
            // PlainText @ [9:48]
            __internal.aboutToExecutePosInTemplate(9, 48);
            __internal.writeValue(PLAIN_TEXT_4_0);
            // IfBlockBegin @ [24:9]
            __internal.aboutToExecutePosInTemplate(24, 9);
            if (config.get("supportDb").booleanValue() || config.get("supportH2ForTest").booleanValue()) {
                // PlainText @ [24:102]
                __internal.aboutToExecutePosInTemplate(24, 102);
                __internal.writeValue(PLAIN_TEXT_5_0);
                // IfBlockEnd @ [24:9]
                __internal.aboutToExecutePosInTemplate(24, 9);
            } // if end @ [24:9]
            // PlainText @ [26:10]
            __internal.aboutToExecutePosInTemplate(26, 10);
            __internal.writeValue(PLAIN_TEXT_6_0);
            // IfBlockBegin @ [27:9]
            __internal.aboutToExecutePosInTemplate(27, 9);
            if (config.get("supportDb").booleanValue() && "oracle".equalsIgnoreCase(config.path("dbInfo").path("name").textValue())) {
                // PlainText @ [27:130]
                __internal.aboutToExecutePosInTemplate(27, 130);
                __internal.writeValue(PLAIN_TEXT_7_0);
                // IfBlockEnd @ [27:9]
                __internal.aboutToExecutePosInTemplate(27, 9);
            } // if end @ [27:9]
            // PlainText @ [29:10]
            __internal.aboutToExecutePosInTemplate(29, 10);
            __internal.writeValue(PLAIN_TEXT_6_0);
            // IfBlockBegin @ [30:9]
            __internal.aboutToExecutePosInTemplate(30, 9);
            if (config.get("supportDb").booleanValue() && "mysql".equalsIgnoreCase(config.path("dbInfo").path("name").textValue())) {
                // PlainText @ [30:129]
                __internal.aboutToExecutePosInTemplate(30, 129);
                __internal.writeValue(PLAIN_TEXT_8_0);
                // IfBlockEnd @ [30:9]
                __internal.aboutToExecutePosInTemplate(30, 9);
            } // if end @ [30:9]
            // PlainText @ [32:10]
            __internal.aboutToExecutePosInTemplate(32, 10);
            __internal.writeValue(PLAIN_TEXT_6_0);
            // IfBlockBegin @ [33:9]
            __internal.aboutToExecutePosInTemplate(33, 9);
            if (config.get("supportDb").booleanValue() && "postgres".equalsIgnoreCase(config.path("dbInfo").path("name").textValue())) {
                // PlainText @ [33:132]
                __internal.aboutToExecutePosInTemplate(33, 132);
                __internal.writeValue(PLAIN_TEXT_9_0);
                // IfBlockEnd @ [33:9]
                __internal.aboutToExecutePosInTemplate(33, 9);
            } // if end @ [33:9]
            // PlainText @ [35:10]
            __internal.aboutToExecutePosInTemplate(35, 10);
            __internal.writeValue(PLAIN_TEXT_6_0);
            // IfBlockBegin @ [36:9]
            __internal.aboutToExecutePosInTemplate(36, 9);
            if (config.get("supportH2ForTest").booleanValue()) {
                // PlainText @ [36:60]
                __internal.aboutToExecutePosInTemplate(36, 60);
                __internal.writeValue(PLAIN_TEXT_10_0);
                // IfBlockEnd @ [36:9]
                __internal.aboutToExecutePosInTemplate(36, 9);
            } // if end @ [36:9]
            // PlainText @ [38:10]
            __internal.aboutToExecutePosInTemplate(38, 10);
            __internal.writeValue(PLAIN_TEXT_11_0);
            // IfBlockBegin @ [229:9]
            __internal.aboutToExecutePosInTemplate(229, 9);
            if (config.get("supportDb").booleanValue() || config.get("supportH2ForTest").booleanValue()) {
                // PlainText @ [229:102]
                __internal.aboutToExecutePosInTemplate(229, 102);
                __internal.writeValue(PLAIN_TEXT_12_0);
                // IfBlockEnd @ [229:9]
                __internal.aboutToExecutePosInTemplate(229, 9);
            } // if end @ [229:9]
            // PlainText @ [235:10]
            __internal.aboutToExecutePosInTemplate(235, 10);
            __internal.writeValue(PLAIN_TEXT_6_0);
            // IfBlockBegin @ [236:9]
            __internal.aboutToExecutePosInTemplate(236, 9);
            if (config.get("supportDb").booleanValue() && "oracle".equalsIgnoreCase(config.path("dbInfo").path("name").textValue())) {
                // PlainText @ [236:130]
                __internal.aboutToExecutePosInTemplate(236, 130);
                __internal.writeValue(PLAIN_TEXT_13_0);
                // IfBlockEnd @ [236:9]
                __internal.aboutToExecutePosInTemplate(236, 9);
            } // if end @ [236:9]
            // PlainText @ [242:10]
            __internal.aboutToExecutePosInTemplate(242, 10);
            __internal.writeValue(PLAIN_TEXT_6_0);
            // IfBlockBegin @ [243:9]
            __internal.aboutToExecutePosInTemplate(243, 9);
            if (config.get("supportDb").booleanValue() && "mysql".equalsIgnoreCase(config.path("dbInfo").path("name").textValue())) {
                // PlainText @ [243:129]
                __internal.aboutToExecutePosInTemplate(243, 129);
                __internal.writeValue(PLAIN_TEXT_14_0);
                // IfBlockEnd @ [243:9]
                __internal.aboutToExecutePosInTemplate(243, 9);
            } // if end @ [243:9]
            // PlainText @ [249:10]
            __internal.aboutToExecutePosInTemplate(249, 10);
            __internal.writeValue(PLAIN_TEXT_6_0);
            // IfBlockBegin @ [250:9]
            __internal.aboutToExecutePosInTemplate(250, 9);
            if (config.get("supportDb").booleanValue() && "postgres".equalsIgnoreCase(config.path("dbInfo").path("name").textValue())) {
                // PlainText @ [250:132]
                __internal.aboutToExecutePosInTemplate(250, 132);
                __internal.writeValue(PLAIN_TEXT_15_0);
                // IfBlockEnd @ [250:9]
                __internal.aboutToExecutePosInTemplate(250, 9);
            } // if end @ [250:9]
            // PlainText @ [256:10]
            __internal.aboutToExecutePosInTemplate(256, 10);
            __internal.writeValue(PLAIN_TEXT_16_0);
            // IfBlockBegin @ [264:9]
            __internal.aboutToExecutePosInTemplate(264, 9);
            if (config.get("supportH2ForTest").booleanValue()) {
                // PlainText @ [264:60]
                __internal.aboutToExecutePosInTemplate(264, 60);
                __internal.writeValue(PLAIN_TEXT_17_0);
                // IfBlockEnd @ [264:9]
                __internal.aboutToExecutePosInTemplate(264, 9);
            } // if end @ [264:9]
            // PlainText @ [271:10]
            __internal.aboutToExecutePosInTemplate(271, 10);
            __internal.writeValue(PLAIN_TEXT_18_0);
        }
    }

    private static class PlainText {

        static private final String PLAIN_TEXT_0_0 = "\n\n    4.0.0\n    ";
        static private final String PLAIN_TEXT_1_0 = "\n    ";
        static private final String PLAIN_TEXT_2_0 = "\n    jar\n    ";
        static private final String PLAIN_TEXT_3_0 = "\n    ";
        static private final String PLAIN_TEXT_4_0 = "\n\n    \n        11\n        UTF-8\n        com.networknt.server.Server\n        2.1.4\n        2.14.0\n        1.7.36\n        0.6.3\n        1.2.11\n        5.8.1\n        2.3.0.Final\n        19.0\n        2.1.5\n        ";
        static private final String PLAIN_TEXT_5_0 = "\n        3.1.0\n        ";
        static private final String PLAIN_TEXT_6_0 = "\n        ";
        static private final String PLAIN_TEXT_7_0 = "\n        11.2.0.3\n        ";
        static private final String PLAIN_TEXT_8_0 = "\n        8.0.16\n        ";
        static private final String PLAIN_TEXT_9_0 = "\n        42.1.1\n        ";
        static private final String PLAIN_TEXT_10_0 = "\n        1.3.176\n        ";
        static private final String PLAIN_TEXT_11_0 = "\n        2.4\n        1.0.0\n        3.1.0\n        3.1.2\n        3.2.1\n        3.8.1\n        2.8.2\n        1.6.0\n        2.22.2\n        3.1.0\n    \n\n    \n        \n            com.networknt\n            config\n            ${version.light-4j}\n        \n        \n            com.networknt\n            utility\n            ${version.light-4j}\n        \n        \n            com.networknt\n            security\n            ${version.light-4j}\n        \n        \n            com.networknt\n            client\n            ${version.light-4j}\n        \n        \n            com.networknt\n            audit\n            ${version.light-4j}\n        \n        \n            com.networknt\n            info\n            ${version.light-4j}\n        \n        \n            com.networknt\n            health\n            ${version.light-4j}\n        \n        \n            com.networknt\n            status\n            ${version.light-4j}\n        \n        \n            com.networknt\n            exception\n            ${version.light-4j}\n        \n        \n            com.networknt\n            body\n            ${version.light-4j}\n        \n        \n            com.networknt\n            mask\n            ${version.light-4j}\n        \n        \n            com.networknt\n            metrics\n            ${version.light-4j}\n        \n        \n            com.networknt\n            handler\n            ${version.light-4j}\n        \n        \n            com.networknt\n            sanitizer\n            ${version.light-4j}\n        \n        \n            com.networknt\n            traceability\n            ${version.light-4j}\n        \n        \n            com.networknt\n            correlation\n            ${version.light-4j}\n        \n        \n            com.networknt\n            service\n            ${version.light-4j}\n        \n       \n            com.networknt\n            registry\n            ${version.light-4j}\n        \n        \n            com.networknt\n            balance\n            ${version.light-4j}\n        \n        \n            com.networknt\n            cluster\n            ${version.light-4j}\n        \n        \n            com.networknt\n            consul\n            ${version.light-4j}\n        \n        \n            com.networknt\n            decryptor\n            ${version.light-4j}\n        \n        \n            com.networknt\n            server\n            ${version.light-4j}\n        \n        \n            com.networknt\n            cors\n            ${version.light-4j}\n        \n\n        \n            com.networknt\n            graphql-common\n            ${version.light-4j}\n        \n        \n            com.networknt\n            graphql-router\n            ${version.light-4j}\n        \n        \n            com.networknt\n            graphql-security\n            ${version.light-4j}\n        \n        \n            com.networknt\n            graphql-validator\n            ${version.light-4j}\n        \n\n        \n            com.fasterxml.jackson.core\n            jackson-databind\n            ${version.jackson}\n        \n        \n            com.fasterxml.jackson.core\n            jackson-core\n            ${version.jackson}\n        \n        \n            com.fasterxml.jackson.datatype\n            jackson-datatype-jsr310\n            ${version.jackson}\n        \n        \n            ch.qos.logback\n            logback-classic\n            ${version.logback}\n        \n        \n            io.undertow\n            undertow-core\n            ${version.undertow}\n        \n        \n            com.graphql-java\n            graphql-java\n            ${version.graphql}\n        \n        \n            io.reactivex.rxjava2\n            rxjava\n            ${version.rxjava}\n        \n        ";
        static private final String PLAIN_TEXT_12_0 = "\n        \n            com.zaxxer\n            HikariCP\n            ${version.hikaricp}\n        \n        ";
        static private final String PLAIN_TEXT_13_0 = "\n        \n            com.oracle\n            ojdbc6\n            ${version.oracle}\n        \n        ";
        static private final String PLAIN_TEXT_14_0 = "\n        \n            mysql\n            mysql-connector-java\n            ${version.mysql}\n        \n        ";
        static private final String PLAIN_TEXT_15_0 = "\n        \n            org.postgresql\n            postgresql\n            ${version.postgres}\n        \n        ";
        static private final String PLAIN_TEXT_16_0 = "\n        \n        \n            org.junit.jupiter\n            junit-jupiter\n            ${version.junit}\n            test\n        \n        ";
        static private final String PLAIN_TEXT_17_0 = "\n        \n            com.h2database\n            h2\n            ${version.h2}\n            test\n        \n        ";
        static private final String PLAIN_TEXT_18_0 = "\n    \n\n    \n        install\n        target\n        ${project.artifactId}-${project.version}\n        \n            \n                com.networknt\n                javadoc-packagelist-maven-plugin\n                ${version.javadoc-packagelist-plugin}\n                \n                    \n                        package\n                        \n                            gen-package-list\n                        \n                    \n                \n            \n            \n                org.apache.maven.plugins\n                maven-compiler-plugin\n                ${version.maven-compiler}\n                \n                    ${java.version}\n                \n            \n            \n                org.codehaus.mojo\n                versions-maven-plugin\n                ${versions.maven-version}\n            \n            \n                org.apache.maven.plugins\n                maven-surefire-plugin\n                ${version.maven-surefire}\n                \n                    \n                        org.junit.platform\n                        junit-platform-surefire-provider\n                        1.2.0\n                    \n                    \n                        org.junit.jupiter\n                        junit-jupiter\n                        ${version.junit}\n                    \n                \n            \n            \n                org.apache.maven.plugins\n                maven-jar-plugin\n                ${version.maven-jar}\n                \n                    \n                        \n                            ${project.main.class}\n                        \n                    \n                \n            \n        \n\n        \n            \n                \n                \n                    org.eclipse.m2e\n                    lifecycle-mapping\n                    1.0.0\n                    \n                        \n                            \n                                \n                                    \n                                        \n                                            org.apache.maven.plugins\n                                        \n                                        \n                                            maven-compiler-plugin\n                                        \n                                        \n                                            [3.3,)\n                                        \n                                        \n                                            compile\n                                            testCompile\n                                        \n                                    \n                                    \n                                        \n                                    \n                                \n                            \n                        \n                    \n                \n            \n        \n\n    \n\n\n    \n        \n            sonatype-snapshots\n            https://oss.sonatype.org/content/repositories/snapshots\n            \n                true\n            \n        \n    \n\n    \n        \n            release\n            \n                \n                    \n                        org.apache.maven.plugins\n                        maven-shade-plugin\n                        ${version.maven-shade}\n                        \n                            \n                                package\n                                \n                                    shade\n                                \n                                \n                                    ${project.build.directory}/dependency-reduced-pom.xml\n                                    \n                                        \n                                            *:*\n                                            \n                                                module-info.class\n                                                META-INF/*.SF\n                                                META-INF/*.DSA\n                                                META-INF/*.RSA\n                                            \n                                        \n                                    \n                                    \n                                        \n                                    \n                                \n                            \n                        \n                    \n                    \n                        org.apache.maven.plugins\n                        maven-source-plugin\n                        ${version.maven-source}\n                        \n                            \n                                attach-sources\n                                \n                                    jar\n                                \n                            \n                        \n                    \n                    \n                        org.apache.maven.plugins\n                        maven-javadoc-plugin\n                        ${version.maven-javadoc}\n                        \n                            \n                                attach-javadocs\n                                \n                                    jar\n                                \n                            \n                        \n                    \n                    \n                        org.codehaus.mojo\n                        exec-maven-plugin\n                        ${version.exec-maven}\n                        \n                            java\n                            \n                                -jar\n                                ${project.build.directory}/${project.build.finalName}.${project.packaging}\n                            \n                        \n                    \n                \n            \n        \n        \n            debug\n            \n                true\n            \n            \n                \n                    \n                        org.codehaus.mojo\n                        exec-maven-plugin\n                        ${version.exec-maven}\n                        \n                            ${project.build.directory}\n                            java\n                            \n                                -cp\n                                \n                                ${project.main.class}\n                            \n                        \n                    \n                \n            \n        \n    \n\n";

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy