|
1 | 1 | # Utilities
|
2 |
| - Some advanced java utils: database api, jda commandmanager, common utils |
| 2 | +Some advanced java utils: database api, jda commandmanager, common utils |
| 3 | + |
| 4 | +## Import |
| 5 | + |
| 6 | +#### Maven |
| 7 | + |
| 8 | +````xml |
| 9 | +<repositories> |
| 10 | + <!-- Jitpack Repository for Utility Dependencies --> |
| 11 | + <repository> |
| 12 | + <id>jitpack.io</id> |
| 13 | + <url>https://jitpack.io</url> |
| 14 | + </repository> |
| 15 | +</repositories> |
| 16 | + |
| 17 | +<dependencies> |
| 18 | + <!-- Common Utils --> |
| 19 | + <dependency> |
| 20 | + <groupId>com.github.anweisen.Utility</groupId> |
| 21 | + <artifactId>common-utils</artifactId> |
| 22 | + <version>${utilities.version}</version> |
| 23 | + </dependency> |
| 24 | + |
| 25 | + <!-- Bukkit Utils --> |
| 26 | + <dependency> |
| 27 | + <groupId>com.github.anweisen.Utility</groupId> |
| 28 | + <artifactId>bukkit-utils</artifactId> |
| 29 | + <version>${utilities.version}</version> |
| 30 | + </dependency> |
| 31 | + |
| 32 | + <!-- Database API --> |
| 33 | + <dependency> |
| 34 | + <groupId>com.github.anweisen.Utility</groupId> |
| 35 | + <artifactId>database-api</artifactId> |
| 36 | + <version>${utilities.version}</version> |
| 37 | + </dependency> |
| 38 | + <!-- Database SQL Implementation --> |
| 39 | + <dependency> |
| 40 | + <groupId>com.github.anweisen.Utility</groupId> |
| 41 | + <artifactId>database-sql</artifactId> |
| 42 | + <version>${utilities.version}</version> |
| 43 | + </dependency> |
| 44 | + <!-- Database MongoDB Implementation --> |
| 45 | + <dependency> |
| 46 | + <groupId>com.github.anweisen.Utility</groupId> |
| 47 | + <artifactId>database-mongodb</artifactId> |
| 48 | + <version>${utilities.version}</version> |
| 49 | + </dependency> |
| 50 | + |
| 51 | + <!-- JDA Manager --> |
| 52 | + <dependency> |
| 53 | + <groupId>com.github.anweisen.Utility</groupId> |
| 54 | + <artifactId>jda-manager</artifactId> |
| 55 | + <version>${utilities.version}</version> |
| 56 | + </dependency> |
| 57 | +</dependencies> |
| 58 | +```` |
| 59 | + |
| 60 | +#### Gradle |
| 61 | + |
| 62 | +````groovy |
| 63 | +
|
| 64 | +// Jitpack Repository for Utility Dependencies |
| 65 | +repositories { |
| 66 | + maven { url 'https://jitpack.io' } |
| 67 | +} |
| 68 | +
|
| 69 | +dependencies { |
| 70 | + implementation 'com.github.anweisen.Utility:common-utils:${utilities.version}' |
| 71 | + |
| 72 | + implementation 'com.github.anweisen.Utility:bukkit-utils:${utilities.version}' |
| 73 | + |
| 74 | + implementation 'com.github.anweisen.Utility:database-api:${utilities.version}' |
| 75 | + implementation 'com.github.anweisen.Utility:database-sql:${utilities.version}' |
| 76 | + implementation 'com.github.anweisen.Utility:database-mongodb:${utilities.version}' |
| 77 | + |
| 78 | + implementation 'com.github.anweisen.Utility:database-jda-manager:${utilities.version}' |
| 79 | +} |
| 80 | +
|
| 81 | +```` |
0 commit comments