hellofabric/app/build.gradle
2026-01-18 21:07:17 +03:00

64 lines
1.2 KiB
Groovy

plugins {
id 'java'
id 'java-library'
}
version = "0.0.1"
repositories {
mavenCentral()
maven {
url "https://repo.spongepowered.org/maven/"
}
maven {
url "https://maven.fabricmc.net/"
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
dependencies {
api libs.guava
api "com.google.code.gson:gson:_"
api "net.fabricmc:fabric-loader:_"
api "net.fabricmc:access-widener:_"
api "org.ow2.asm:asm:_"
api "org.ow2.asm:asm-analysis:_"
api "org.ow2.asm:asm-commons:_"
api "org.ow2.asm:asm-tree:_"
api "org.ow2.asm:asm-util:_"
api "net.fabricmc:sponge-mixin:_"
}
jar {
archiveFileName = "hellofabric.jar"
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.collect { it.getName() }.join(' '),
'Specification-Version': 8.0,
'Multi-Release': 'true',
'Implementation-Title': "HelloFabric",
'Implementation-Version': version
)
}
}
task copyDependencies(type: Copy) {
group 'build'
from configurations.runtimeClasspath
into "build/libs/deps/"
}
assemble {
group 'build'
dependsOn 'jar'
dependsOn 'copyDependencies'
}