Skip to content

Commit

Permalink
feat: use libraries feature for ebean
Browse files Browse the repository at this point in the history
+ make compiled jar much smaller
+ improve compilation time
+ get away of SNAPSHOT
  • Loading branch information
nikosgram committed Jun 21, 2023
1 parent b5bc755 commit cf62dbd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
13 changes: 8 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>minecraftwars</groupId>
<artifactId>gringotts</artifactId>
<version>2.12.5-SNAPSHOT</version>
<version>2.12.5</version>

<properties>
<maven.deploy.skip>false</maven.deploy.skip>
Expand Down Expand Up @@ -96,9 +96,12 @@
</phase>
<configuration>
<target>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\1.19.2\plugins\${project.artifactId}.jar"/>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\1.18.2\plugins\${project.artifactId}.jar"/>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\1.20.1\plugins\${project.artifactId}.jar"/>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\paper\1.19.2\plugins\${project.artifactId}.jar"/>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\paper\1.18.2\plugins\${project.artifactId}.jar"/>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\paper\1.20.1\plugins\${project.artifactId}.jar"/>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\spigot\1.19.2\plugins\${project.artifactId}.jar"/>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\spigot\1.18.2\plugins\${project.artifactId}.jar"/>
<copy file="target\${project.artifactId}-${project.version}.jar" tofile="out\spigot\1.20.1\plugins\${project.artifactId}.jar"/>
</target>
</configuration>
<goals>
Expand Down Expand Up @@ -140,7 +143,7 @@
<groupId>org.avaje</groupId>
<artifactId>ebean</artifactId>
<version>2.8.1</version>
<scope>compile</scope>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.papermc</groupId>
Expand Down
18 changes: 9 additions & 9 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Gringotts
authors: [jasticE, squidicuz, eXeC64, nikosgram, GroobleDierne, hhenrichsen]
authors: [ jasticE, squidicuz, eXeC64, nikosgram, GroobleDierne, hhenrichsen ]
website: https://github.com/nikosgram/Gringotts

version: ${version}
version: ${project.version}
main: org.gestern.gringotts.Gringotts
load: STARTUP
database: true

api-version: "1.18"

awareness:
- !@UTF-8
softdepend: [ PlaceholderAPI ]
loadbefore: [ Vault ]

softdepend: [PlaceholderAPI]
loadbefore: [Vault]
libraries:
- org.avaje:ebean:2.8.1

commands:
vault:
Expand All @@ -26,7 +26,7 @@ commands:
usage: /balance
aliases: money
money:
aliases: [money, m]
aliases: [ money, m ]
description: Money actions
usage: |
/money
Expand All @@ -35,15 +35,15 @@ commands:
/money deposit <amount>
/money send <account> <amount>
moneyadmin:
aliases: [moneyadm, mad]
aliases: [ moneyadm, mad ]
description: Gringotts admin actions
usage: |
/moneyadmin balance <[type:]account>
/moneyadmin add <[type:]account> <amount>
/moneyadmin remove <[type:]account> <amount>
permission: gringotts.admin
gringotts:
aliases: [grin]
aliases: [ grin ]
usage: |
/gringotts reload
/gringotts dependencies
Expand Down

0 comments on commit cf62dbd

Please sign in to comment.