Skip to content

Commit

Permalink
fix bstats relocation, 1.0.0 will be released after breaking changes …
Browse files Browse the repository at this point in the history
…merge
  • Loading branch information
Mooy1 committed Sep 3, 2021
1 parent 639ddfa commit c6f7a8e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- master
paths:
- 'src/**'
- 'pom.xml'

jobs:
release:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches:
- master
paths:
- 'src/**'
- 'pom.xml'

jobs:
check:
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ It also adds some default commands such as an addon info, aliases, and help comm

<b>MachineBlock</b>: An AbstractMachineBlock which makes it easy to create simple input-output machines

## Future Additions
<b>Translation Utility</b>: Some sort of easy way to create translatable strings for your addon's and infinitylibs's strings

<b>InfinityLib Metrics</b>: Metrics to see which versions or even classes are being used

# How to use

Expand All @@ -69,10 +73,10 @@ Under the `build` section in your `pom.xml`, you should have the following:
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<!-- This will exclude any unused classes from libraries to reduce file size -->
<!-- This will exclude any unused classes from libraries to reduce file size, not required -->
<minimizeJar>true</minimizeJar>
<relocations>
<!-- This is the relocation, make sure to replace the package name -->
<!-- This is the relocation, make sure to replace the package name, REQUIRED -->
<relocation>
<pattern>io.github.mooy1.infinitylib</pattern>
<shadedPattern>YOUR.MAIN.PACKAGE.HERE.infinitylib</shadedPattern>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.mooy1</groupId>
<artifactId>InfinityLib</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down Expand Up @@ -137,7 +137,7 @@
<configuration>
<relocations>
<relocation>
<pattern>org.bstats.bukkit</pattern>
<pattern>org.bstats</pattern>
<shadedPattern>io.github.mooy1.infinitylib.metrics</shadedPattern>
</relocation>
</relocations>
Expand Down

0 comments on commit c6f7a8e

Please sign in to comment.