Server-side integration plugins: the Velocity proxy plugin plus Fabric, Forge, NeoForge, and Paper mods with a shared module. Gradle build output is not tracked.
45 lines
1.1 KiB
Groovy
45 lines
1.1 KiB
Groovy
plugins {
|
|
id 'fabric-loom' version '1.7.4'
|
|
id 'java'
|
|
}
|
|
|
|
group = 'best.lolicon.felis'
|
|
version = '0.1.0'
|
|
|
|
// MC 1.20.1 is a Java-17 line — the ceiling this JDK can build.
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = 'Fabric'
|
|
url = 'https://maven.fabricmc.net/'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
minecraft 'com.mojang:minecraft:1.20.1'
|
|
// Official Mojang mappings keep MC class/method names identical to the
|
|
// Forge/NeoForge modules, so the command handlers stay near-uniform.
|
|
mappings loom.officialMojangMappings()
|
|
modImplementation 'net.fabricmc:fabric-loader:0.16.5'
|
|
// fabric-command-api-v2 (CommandRegistrationCallback) ships in fabric-api.
|
|
modImplementation 'net.fabricmc.fabric-api:fabric-api:0.92.2+1.20.1'
|
|
}
|
|
|
|
// The zero-dependency link core is compiled straight into the remapped jar.
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir '../shared/src/main/java'
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
}
|