/
senioravanti
/
spring-java-fixikbot
Обзор
Документация
Войти
/
senioravanti
/
spring-java-fixikbot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
pom.xml
368 строк
10 KB
senioravanti
feat: implement registration
16 июл 2025, 22:48
16 июл 2025, 22:48
71411f8
Код
Авторство
О чём код?
<?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>3.5.3</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>ru.manannikov</groupId> <artifactId>fixikbot</artifactId> <version>0.1</version> <name>demo</name> <url/> <licenses> <license/> </licenses> <developers> <developer/> </developers> <scm> <connection/> <developerConnection/> <tag/> <url/> </scm> <properties> <java.version>22</java.version> <apache-poi.version>5.4.1</apache-poi.version> <testcontainers.version>1.21.3</testcontainers.version> <flyway.version>11.10.1</flyway.version> <groovy-maven-plugin.version>2.1.1</groovy-maven-plugin.version> <telegrambots.version>9.0.0</telegrambots.version> <postgres.tag>${env.POSTGRES_TAG}</postgres.tag> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jooq</artifactId> </dependency> <dependency> <groupId>org.jooq</groupId> <artifactId>jooq-codegen</artifactId> <version>${jooq.version}</version> </dependency> <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId> <version>${flyway.version}</version> </dependency> <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-database-postgresql</artifactId> <version>${flyway.version}</version> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>${postgresql.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <exclusions> <exclusion> <groupId>io.lettuce</groupId> <artifactId>lettuce-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>${jedis.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-layout-template-json</artifactId> <version>${log4j2.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>${apache-poi.version}</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> <version>${lombok.version}</version> </dependency> <dependency> <groupId>org.telegram</groupId> <artifactId>telegrambots-springboot-webhook-starter</artifactId> <version>${telegrambots.version}</version> </dependency> <dependency> <groupId>org.telegram</groupId> <artifactId>telegrambots-client</artifactId> <version>${telegrambots.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-testcontainers</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>postgresql</artifactId> <version>${testcontainers.version}</version> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>junit-jupiter</artifactId> <version>${testcontainers.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <excludes> <exclude> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </exclude> </excludes> </configuration> </plugin> <!-- clear ; mvn clean package -P no-jooqing -DskipTests --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${java.version}</source> <target>${java.version}</target> <annotationProcessorPaths> <path> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> </path> </annotationProcessorPaths> </configuration> </plugin> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <version>${groovy-maven-plugin.version}</version> <executions> <execution> <id>testcontainers-start</id> <phase>generate-sources</phase> <goals><goal>execute</goal></goals> <configuration> <source> import org.testcontainers.containers.PostgreSQLContainer String postgresTag = project.properties.getProperty("postgres.tag", "17.5-alpine3.22") db = new PostgreSQLContainer("postgres:$postgresTag") .withUsername("postgres") .withDatabaseName("postgres") .withPassword("postgres") db.start() project.properties.setProperty('db.url', db.getJdbcUrl()) project.properties.setProperty('db.username', db.getUsername()) project.properties.setProperty('db.password', db.getPassword()) </source> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.testcontainers</groupId> <artifactId>postgresql</artifactId> <version>${testcontainers.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.flywaydb</groupId> <artifactId>flyway-maven-plugin</artifactId> <version>${flyway.version}</version> <executions> <execution> <id>testcontainers-migrate</id> <phase>generate-sources</phase> <goals><goal>migrate</goal></goals> <configuration> <url>${db.url}</url> <user>${db.username}</user> <password>${db.password}</password> <locations> <location>filesystem:src/main/resources/db/migration</location> </locations> <defaultSchema>public</defaultSchema> <createSchemas>true</createSchemas> </configuration> </execution> </executions> </plugin> <!-- clear ; mvn clean generate-sources --> <plugin> <groupId>org.jooq</groupId> <artifactId>jooq-codegen-maven</artifactId> <version>${jooq.version}</version> <executions> <execution> <id>jooq-codegen</id> <phase>generate-sources</phase> <goals><goal>generate</goal></goals> </execution> </executions> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> </dependency> </dependencies> <configuration> <jdbc> <url>${db.url}</url> <user>${db.username}</user> <password>${db.password}</password> </jdbc> <generator> <database> <properties> <property> <key>unqualifiedSchema</key> <value>none</value> </property> <property> <key>defaultNameCase</key> <value>lower</value> </property> </properties> <includes>.*</includes> <excludes> flyway_schema_history|users\.search_vector </excludes> <includeExcludeColumns>true</includeExcludeColumns> <inputSchema>public</inputSchema> </database> <target> <packageName>ru.manannikov.fixikbot.jooq</packageName> <directory>src/main/java</directory> </target> </generator> <configurationFiles> <configurationFile>src/main/resources/jooq.xml</configurationFile> </configurationFiles> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>no-jooqing</id> <build> <plugins> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <version>${groovy-maven-plugin.version}</version> <executions> <execution> <id>testcontainers-start</id> <phase>none</phase> </execution> </executions> </plugin> <plugin> <groupId>org.flywaydb</groupId> <artifactId>flyway-maven-plugin</artifactId> <version>${flyway.version}</version> <executions> <execution> <id>testcontainers-migrate</id> <phase>none</phase> </execution> </executions> </plugin> <plugin> <groupId>org.jooq</groupId> <artifactId>jooq-codegen-maven</artifactId> <version>${jooq.version}</version> <executions> <execution> <id>jooq-codegen</id> <phase>none</phase> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>