java-micronaut.common.configuration.pom.xml.mustache Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>{{groupId}}</groupId> <artifactId>{{artifactId}}</artifactId> <version>{{artifactVersion}}</version> <packaging>${packaging}</packaging> <parent> <groupId>io.micronaut</groupId> <artifactId>micronaut-parent</artifactId> <version>{{{micronautVersion}}}</version> </parent> <properties> <packaging>jar</packaging> <jdk.version>1.8</jdk.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- If you are building with JDK 9 or higher, you can uncomment the lines below to set the release version --> <!-- <release.version>8</release.version> --> <micronaut.version>{{{micronautVersion}}}</micronaut.version> <exec.mainClass>{{groupId}}.Application</exec.mainClass> <micronaut.runtime>netty</micronaut.runtime> {{#generateSwagger1Annotations}} <swagger-annotations-version>1.6.5</swagger-annotations-version> {{/generateSwagger1Annotations}} {{#generateSwagger2Annotations}} <swagger-annotations-version>2.2.7</swagger-annotations-version> {{/generateSwagger2Annotations}} </properties> <repositories> <repository> <id>central</id> <url>https://repo.maven.apache.org/maven2</url> </repository> </repositories> <dependencies> <dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-inject</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-validation</artifactId> <scope>compile</scope> </dependency> {{#isTestSpock}} <dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-inject-groovy</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.spockframework</groupId> <artifactId>spock-core</artifactId> <scope>test</scope> <exclusions> <exclusion> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>io.micronaut.test</groupId> <artifactId>micronaut-test-spock</artifactId> <scope>test</scope> </dependency> {{/isTestSpock}} {{#isTestJunit}} <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.micronaut.test</groupId> <artifactId>micronaut-test-junit5</artifactId> <scope>test</scope> </dependency> {{/isTestJunit}} <dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-http-client</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-http-server-netty</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-runtime</artifactId> <scope>compile</scope> </dependency> {{#reactive}} <dependency> <groupId>io.micronaut.reactor</groupId> <artifactId>micronaut-reactor</artifactId> <scope>compile</scope> </dependency> {{/reactive}} {{#useAuth}} <dependency> <groupId>io.micronaut.security</groupId> <artifactId>micronaut-security</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>io.micronaut.security</groupId> <artifactId>micronaut-security-oauth2</artifactId> <scope>compile</scope> </dependency> {{/useAuth}} <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <scope>runtime</scope> </dependency> {{#generateSwagger1Annotations}} <dependency> <groupId>io.swagger</groupId> <artifactId>swagger-annotations</artifactId> <version>${swagger-annotations-version}</version> </dependency> {{/generateSwagger1Annotations}} {{#generateSwagger2Annotations}} <dependency> <groupId>io.swagger.core.v3</groupId> <artifactId>swagger-annotations</artifactId> <version>${swagger-annotations-version}</version> </dependency> {{/generateSwagger2Annotations}} {{#micronaut_serde_jackson}} <dependency> <groupId>io.micronaut</groupId> <artifactId>micronaut-runtime</artifactId> <scope>compile</scope> <exclusions> <exclusion> <groupId>io.micronaut</groupId> <artifactId>micronaut-jackson-databind</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>io.micronaut.serde</groupId> <artifactId>micronaut-serde-jackson</artifactId> <scope>compile</scope> </dependency> {{/micronaut_serde_jackson}} </dependencies> <build> <plugins> <plugin> <groupId>io.micronaut.build</groupId> <artifactId>micronaut-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <!-- Uncomment to enable incremental compilation --> <!-- <useIncrementalCompilation>false</useIncrementalCompilation> --> <annotationProcessorPaths combine.children="append"> <path> <groupId>io.micronaut</groupId> <artifactId>micronaut-http-validation</artifactId> <version>${micronaut.version}</version> </path> {{#useAuth}} <path> <groupId>io.micronaut.security</groupId> <artifactId>micronaut-security-annotations</artifactId> <version>${micronaut.security.version}</version> </path> {{/useAuth}} {{#micronaut_serde_jackson}} <path> <groupId>io.micronaut.serde</groupId> <artifactId>micronaut-serde-processor</artifactId> <version>${micronaut.serialization.version}</version> </path> {{/micronaut_serde_jackson}} </annotationProcessorPaths> <compilerArgs> <arg>-Amicronaut.processing.group={{groupId}}</arg> <arg>-Amicronaut.processing.module={{artifactId}}</arg> </compilerArgs> </configuration> </plugin> {{#isTestSpock}} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> <include>**/*Spec.*</include> <include>**/*Test.*</include> </includes> </configuration> </plugin> <plugin> <groupId>org.codehaus.gmavenplus</groupId> <artifactId>gmavenplus-plugin</artifactId> <version>1.9.0</version> <executions> <execution> <goals> <goal>addSources</goal> <goal>generateStubs</goal> <goal>compile</goal> <goal>removeStubs</goal> <goal>addTestSources</goal> <goal>generateTestStubs</goal> <goal>compileTests</goal> <goal>removeTestStubs</goal> </goals> </execution> </executions> </plugin> {{/isTestSpock}} </plugins> </build> </project>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy