fluxguard-java
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.github.zeeshan-2k1</groupId>
<artifactId>fluxguard-java</artifactId>
<version>0.1.2</version>
</dependency><?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>
<groupId>io.github.zeeshan-2k1</groupId>
<artifactId>fluxguard-java</artifactId>
<version>0.1.2</version>
<packaging>jar</packaging>
<name>FluxGuard Java</name>
<description>Distributed rate limiting for Java — Redis-backed Lua scripts and in-memory algorithms</description>
<url>https://github.com/Zeeshan-2k1/fluxguard</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Zeeshan Ashraf</name>
<email>ashraf2k1zeeshan@gmail.com</email>
<url>https://github.com/Zeeshan-2k1</url>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/Zeeshan-2k1/fluxguard.git</connection>
<developerConnection>scm:git:ssh://git@github.com:Zeeshan-2k1/fluxguard.git</developerConnection>
<url>https://github.com/Zeeshan-2k1/fluxguard</url>
</scm>
<!--
IMPORTANT: No <distributionManagement> block here.
central-publishing-maven-plugin manages its own upload URL internally.
Having distributionManagement pointing to s01.oss.sonatype.org causes
Maven to attempt a second deploy to the old OSSRH — which fails with 401
for io.github.* namespaces since they live on the new Central Portal only.
-->
<properties>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<lettuce.version>6.4.2.RELEASE</lettuce.version>
<junit.version>5.11.4</junit.version>
<spring.boot.version>3.4.1</spring.boot.version>
</properties>
<dependencies>
<dependency>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
<version>${lettuce.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>${spring.boot.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring.boot.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.27.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.18.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-core</artifactId>
<version>1.14.2</version>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<release>17</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>copy-fixtures</id>
<phase>generate-test-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/test-classes/fixtures</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/../fixtures/vectors</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.17.1</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Attaches -sources.jar (required by Maven Central) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Attaches -javadoc.jar (required by Maven Central) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>17</source>
<doclint>none</doclint>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Signs all artifacts with GPG (required by Maven Central) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<configuration>
<!--
useAgent=false forces GPG to read the passphrase from the
gpg.passphrase server entry in settings.xml instead of
trying to contact a GUI pinentry agent (which doesn't exist in CI).
-->
<useAgent>false</useAgent>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
central-publishing-maven-plugin replaces nexus-staging-maven-plugin.
Required for io.github.* namespaces — these are on the new Central
Portal (central.sonatype.com), NOT on s01.oss.sonatype.org.
publishingServerId must match the <server><id> in settings.xml.
autoPublish=true: automatically releases after validation passes.
waitUntil=published: CI job waits until the artifact is fully live
(typically 10-30 min) before marking the job as successful.
Change waitUntil=uploaded if you don't want to wait in CI.
-->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>uploaded</waitUntil>
<deploymentName>fluxguard-java-${project.version}</deploymentName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>