|
|
|
plugins {
|
|
|
|
id 'fabric-loom' version '1.7-SNAPSHOT'
|
|
|
|
id 'java-library'
|
|
|
|
id 'maven-publish'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
minecraft 'com.mojang:minecraft:1.20.6'
|
|
|
|
mappings 'net.fabricmc:yarn:1.20.6+build.3:v2'
|
|
|
|
|
|
|
|
modCompileOnly 'net.fabricmc:fabric-loader:0.15.11'
|
|
|
|
modCompileOnly 'net.fabricmc.fabric-api:fabric-api:0.100.0+1.20.6'
|
|
|
|
modImplementation include('me.lucko:fabric-permissions-api:0.3.1')
|
|
|
|
|
|
|
|
modCompileOnly 'org.projectlombok:lombok:1.18.32'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.32'
|
|
|
|
|
|
|
|
shadow project(path: ':common')
|
|
|
|
}
|
|
|
|
|
|
|
|
loom {
|
|
|
|
accessWidenerPath = file("src/main/resources/uniform.accesswidener")
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
configurations = [project.configurations.shadow]
|
|
|
|
destinationDirectory.set(file("$projectDir/build/libs"))
|
|
|
|
|
|
|
|
exclude('net.fabricmc:.*')
|
|
|
|
exclude('net.kyori:.*')
|
|
|
|
exclude '/mappings/*'
|
|
|
|
}
|
|
|
|
|
|
|
|
remapJar {
|
|
|
|
dependsOn tasks.shadowJar
|
|
|
|
mustRunAfter tasks.shadowJar
|
|
|
|
inputFile = shadowJar.archiveFile.get()
|
|
|
|
addNestedDependencies = true
|
|
|
|
|
|
|
|
destinationDirectory.set(file("$rootDir/target/"))
|
|
|
|
archiveClassifier.set('')
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar.finalizedBy(remapJar)
|