Last active
August 29, 2022 13:42
-
-
Save rafaelpontezup/fe6354645cecae005bf77fd92421150a to your computer and use it in GitHub Desktop.
Stackspot: playing with edit-xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hooks: | |
- type: edit-xml | |
trigger: after-render | |
path: pom.xml | |
encoding: UTF-8 | |
namespaces: | |
- name: ns | |
value: "http://maven.apache.org/POM/4.0.0" | |
- name: xsi | |
value: "http://www.w3.org/2001/XMLSchema-instance" | |
changes: | |
- xpath: .//dependencies | |
append: | |
snippet: snippets/snippet-pom.xml.jinja |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.7.2</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> | |
<groupId>br.com.zup.edu</groupId> | |
<artifactId>casadocodigo</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>casa-do-codigo</name> | |
<description>Aplicacao de livraria online</description> | |
<properties> | |
<java.version>17</java.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-validation</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-actuator</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-test</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<!-- *************** --> | |
<!-- Zalando Problem --> | |
<!-- *************** --> | |
<dependency> | |
<groupId>org.zalando</groupId> | |
<artifactId>problem-spring-web-starter</artifactId> | |
<version>0.27.0</version> | |
</dependency> | |
<!-- ****************** --> | |
<!-- SpringDoc OpenAPI --> | |
<!-- ****************** --> | |
<dependency> | |
<groupId>org.springdoc</groupId> | |
<artifactId>springdoc-openapi-ui</artifactId> | |
<version>1.6.10</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- *********************** --> | |
<!-- Spring Data JPA with {{database_name}} --> | |
<!-- *********************** --> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-data-jpa</artifactId> | |
</dependency> | |
{% if database_name_formatted == 'h2' %} | |
<dependency> | |
<groupId>com.h2database</groupId> | |
<artifactId>h2</artifactId> | |
<scope>runtime</scope> | |
</dependency> | |
{% endif %} | |
{% if database_name_formatted == 'postgresql' %} | |
<dependency> | |
<groupId>org.postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.testcontainers</groupId> | |
<artifactId>junit-jupiter</artifactId> | |
<version>1.17.3</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.testcontainers</groupId> | |
<artifactId>postgresql</artifactId> | |
<version>1.17.3</version> | |
<scope>test</scope> | |
</dependency> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment