ModsJava
spigot-injection | [ 1.8 - 1.20.x ] | DI library like Spring framework
Java mod listed for Minecraft 1.8–1.19. Download on the author's site.
⬇ Download on Spigot
Spigot Injection
What is this library?
This is a dependency injection library that includes command, configuration, database, listener, scheduler and scanner system with auto-injection. Spigot-injection uses Basic Dependency Injection for dependency injection.
Getting Started
You can use this library with maven or gradle. You just need to add the dependency to your pom.xml or build.gradle file to use it. Then you can create your main class and start the injection process.
Prerequisites
- Spigot 1.8.8 or above
- Java Development Kit (JDK) 8 or above
Installation
Maven
Code (Text):
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<!-- Core of dependency injection -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-core</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based config support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-config</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based command support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-command</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based listener support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-listener</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based scheduler support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-scheduler</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
<!-- Native database support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-database-native</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Hibernate database support (you need to add hibernate dependency to your project as extra) -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-database-hibernate</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<!-- Core of dependency injection -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-core</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based config support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-config</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based command support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-command</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based listener support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-listener</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based scheduler support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-scheduler</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
<!-- Native database support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-database-native</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Hibernate database support (you need to add hibernate dependency to your project as extra) -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-database-hibernate</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
Code (Text):
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
//Core of dependency injection
implementation 'com.github.hakan-krgn.spigot-injection:injection-core:0.1.4.3'
//Annotation based config support
implementation 'com.github.hakan-krgn.spigot-injection:injection-config:0.1.4.3'
//Annotation based command support
implementation 'com.github.hakan-krgn.spigot-injection:injection-command:0.1.4.3'
//Annotation based listener support
implementation 'com.github.hakan-krgn.spigot-injection:injection-listener:0.1.4.3'
//Annotation based scheduler support
implementation 'com.github.hakan-krgn.spigot-injection:injection-scheduler:0.1.4.3'
//Native database support
implementation 'com.github.hakan-krgn.spigot-injection:injection-database-native:0.1.4.3'
//Hibernate database support (you need to add hibernate dependency to your project as extra)
implementation 'com.github.hakan-krgn.spigot-injection:injection-database-hibernate:0.1.4.3'
}
maven { url 'https://jitpack.io' }
}
dependencies {
//Core of dependency injection
implementation 'com.github.hakan-krgn.spigot-injection:injection-core:0.1.4.3'
//Annotation based config support
implementation 'com.github.hakan-krgn.spigot-injection:injection-config:0.1.4.3'
//Annotation based command support
implementation 'com.github.hakan-krgn.spigot-injection:injection-command:0.1.4.3'
//Annotation based listener support
implementation 'com.github.hakan-krgn.spigot-injection:injection-listener:0.1.4.3'
//Annotation based scheduler support
implementation 'com.github.hakan-krgn.spigot-injection:injection-scheduler:0.1.4.3'
//Native database support
implementation 'com.github.hakan-krgn.spigot-injection:injection-database-native:0.1.4.3'
//Hibernate database support (you need to add hibernate dependency to your project as extra)
implementation 'com.github.hakan-krgn.spigot-injection:injection-database-hibernate:0.1.4.3'
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
spigot-injection | [ 1.8 - 1.20.x ] | DI library like Spring framework is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 356 times (via Spigot). Download it and open it directly in the game.