forked from clone/WorldGuardWrapper
		
	Add maven coordinates
This commit is contained in:
		
							parent
							
								
									8487298362
								
							
						
					
					
						commit
						ac2fbacbbf
					
				
							
								
								
									
										50
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										50
									
								
								README.md
									
									
									
									
									
								
							|  | @ -2,3 +2,53 @@ | ||||||
| [](https://ci.codemc.org/view/Author/job/CodeMC/job/WorldEditWrapper/) | [](https://ci.codemc.org/view/Author/job/CodeMC/job/WorldEditWrapper/) | ||||||
| 
 | 
 | ||||||
| A wrapper for the WorldGuard API that allows plugins to support both v6 and v7 APIs. | A wrapper for the WorldGuard API that allows plugins to support both v6 and v7 APIs. | ||||||
|  | 
 | ||||||
|  | ## Maven dependency | ||||||
|  | How to include WorldEditWrapper into your maven project: | ||||||
|  | 
 | ||||||
|  | ```xml | ||||||
|  |     <repositories> | ||||||
|  |         <repository> | ||||||
|  |             <id>codemc-repo</id> | ||||||
|  |             <url>https://repo.codemc.org/repository/maven-public/</url> | ||||||
|  |         </repository> | ||||||
|  |     </repositories> | ||||||
|  | 
 | ||||||
|  |     <dependencies> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>org.codemc.worldguardwrapper</groupId> | ||||||
|  |             <artifactId>worldguardwrapper</artifactId> | ||||||
|  |             <version>1.0.0-SNAPSHOT</version> | ||||||
|  |         </dependency> | ||||||
|  |     </dependencies> | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | Remember to include/relocate the library into your final jar, example: | ||||||
|  | 
 | ||||||
|  | ```xml | ||||||
|  |     <build> | ||||||
|  |         <plugins> | ||||||
|  |             <plugin> | ||||||
|  |                 <groupId>org.apache.maven.plugins</groupId> | ||||||
|  |                 <artifactId>maven-shade-plugin</artifactId> | ||||||
|  |                 <version>3.1.1</version> | ||||||
|  |                 <executions> | ||||||
|  |                     <execution> | ||||||
|  |                         <phase>package</phase> | ||||||
|  |                         <goals> | ||||||
|  |                             <goal>shade</goal> | ||||||
|  |                         </goals> | ||||||
|  |                     </execution> | ||||||
|  |                 </executions> | ||||||
|  |                 <configuration> | ||||||
|  |                     <relocations> | ||||||
|  |                         <relocation> | ||||||
|  |                             <pattern>org.codemc.worldguardwrapper</pattern> | ||||||
|  |                             <shadedPattern>YOUR.PLUGIN.PACKAGE.libs.worldguardwrapper</shadedPattern> | ||||||
|  |                         </relocation> | ||||||
|  |                     </relocations> | ||||||
|  |                 </configuration> | ||||||
|  |             </plugin> | ||||||
|  |         </plugins> | ||||||
|  |     </build> | ||||||
|  | ``` | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user