forked from public-mirrors/Uniform
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
Groovy
42 lines
1.1 KiB
Groovy
6 months ago
|
plugins {
|
||
6 months ago
|
id 'fabric-loom' version '1.7-SNAPSHOT'
|
||
6 months ago
|
id 'java-library'
|
||
|
id 'maven-publish'
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
6 months ago
|
minecraft 'com.mojang:minecraft:1.21'
|
||
|
mappings 'net.fabricmc:yarn:1.21+build.7:v2'
|
||
6 months ago
|
|
||
|
modCompileOnly 'net.fabricmc:fabric-loader:0.15.11'
|
||
6 months ago
|
modCompileOnly 'net.fabricmc.fabric-api:fabric-api:0.100.4+1.21'
|
||
6 months ago
|
modImplementation include('me.lucko:fabric-permissions-api:0.3.1')
|
||
6 months ago
|
|
||
6 months ago
|
modCompileOnly 'org.projectlombok:lombok:1.18.32'
|
||
6 months ago
|
annotationProcessor 'org.projectlombok:lombok:1.18.32'
|
||
6 months ago
|
|
||
|
shadow project(path: ':common')
|
||
6 months ago
|
}
|
||
|
|
||
6 months ago
|
loom.setAccessWidenerPath(file("src/main/resources/uniform.accesswidener"))
|
||
6 months ago
|
|
||
6 months ago
|
shadowJar {
|
||
|
configurations = [project.configurations.shadow]
|
||
6 months ago
|
destinationDirectory.set(file("$projectDir/build/libs"))
|
||
6 months ago
|
|
||
|
exclude('net.fabricmc:.*')
|
||
|
exclude('net.kyori:.*')
|
||
|
exclude '/mappings/*'
|
||
6 months ago
|
}
|
||
|
|
||
6 months ago
|
remapJar {
|
||
|
dependsOn tasks.shadowJar
|
||
|
mustRunAfter tasks.shadowJar
|
||
|
inputFile = shadowJar.archiveFile.get()
|
||
|
addNestedDependencies = true
|
||
|
|
||
|
destinationDirectory.set(file("$rootDir/target/"))
|
||
|
archiveClassifier.set('')
|
||
|
}
|
||
|
|
||
6 months ago
|
shadowJar.finalizedBy(remapJar)
|