<?xml version="1.0"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.gitee.jmash</groupId>
		<artifactId>jmash</artifactId>
		<version>1.0.0</version>
	</parent>
	<version>1.0.9</version>
	<artifactId>jmash-rbac-lib</artifactId>
	<name>jmash-rbac-lib</name>
	<url>https://gitee.com/jmash/rbac.git</url>
	<properties>
		<maven.test.skip>false</maven.test.skip>
		<java.version>17</java.version>
	</properties>
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<scm>
		<connection>https://gitee.com/jmash/jmash.git</connection>
		<url>https://gitee.com/jmash/jmash</url>
	</scm>
	<developers>
		<developer>
			<name>CGD</name>
			<email>52398508@qq.com</email>
		</developer>
	</developers>
	<dependencies>
		<!-- jmash common -->
		<dependency>
			<groupId>com.gitee.jmash</groupId>
			<artifactId>jmash-common</artifactId>
			<version>1.0.7</version>
		</dependency>
		<!-- core lib -->
		<dependency>
			<groupId>com.gitee.jmash</groupId>
			<artifactId>jmash-core-lib</artifactId>
			<version>1.0.3</version>
		</dependency>
	    <!-- JMash Core -->
		<dependency>
			<groupId>com.gitee.jmash</groupId>
			<artifactId>jmash-core</artifactId>
			<version>1.0.8</version>
		</dependency>				
		<dependency>
			<groupId>com.gitee.jmash</groupId>
			<artifactId>proto-beanutils</artifactId>
		</dependency>		
		<!-- GRPC -->
		<dependency>
			<groupId>io.grpc</groupId>
			<artifactId>grpc-services</artifactId>
			<scope>provided</scope>
		</dependency>
		<!-- shiro jakarta -->
		<dependency>
			<groupId>org.apache.shiro</groupId>
			<artifactId>shiro-core</artifactId>
			<classifier>jakarta</classifier>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.slf4j</groupId>
					<artifactId>slf4j-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>io.smallrye</groupId>
			<artifactId>smallrye-jwt</artifactId>
		</dependency>
		<!-- Junit5 -->
		<dependency>
			<groupId>org.junit.jupiter</groupId>
			<artifactId>junit-jupiter-engine</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
		<extensions>
			<extension>
				<groupId>kr.motd.maven</groupId>
				<artifactId>os-maven-plugin</artifactId>
				<version>1.6.2</version>
			</extension>
		</extensions>
		<plugins>
			<plugin>
				<groupId>org.xolstice.maven.plugins</groupId>
				<artifactId>protobuf-maven-plugin</artifactId>
				<version>0.6.1</version>
				<configuration>
					<protocArtifact>
						com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
					<pluginId>grpc-java</pluginId>
					<pluginArtifact>
						io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
							<goal>compile-custom</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<!-- 包冲突显示插件 -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<version>1.4.1</version>
				<executions>
					<execution>
						<id>enforce</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireUpperBoundDeps />
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- mvn clean deploy -P release -->
		</plugins>
	</build>
</project>
