73 lines
1.9 KiB
Groovy
73 lines
1.9 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url = 'https://maven.minecraftforge.net' }
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
|
|
}
|
|
}
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'maven-publish'
|
|
|
|
version = '1.0.4'
|
|
group = 'com.example.soundmod'
|
|
archivesBaseName = 'soundmod'
|
|
|
|
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
|
|
|
|
minecraft {
|
|
mappings channel: 'official', version: '1.16.5'
|
|
|
|
runs {
|
|
client {
|
|
workingDirectory project.file('run')
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
property 'forge.logging.console.level', 'debug'
|
|
mods {
|
|
soundmod {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
server {
|
|
workingDirectory project.file('run')
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
property 'forge.logging.console.level', 'debug'
|
|
mods {
|
|
soundmod {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
shade
|
|
implementation.extendsFrom shade
|
|
}
|
|
|
|
dependencies {
|
|
minecraft 'net.minecraftforge:forge:1.16.5-36.2.39'
|
|
shade 'javazoom:jlayer:1.0.1'
|
|
}
|
|
|
|
jar {
|
|
from {
|
|
configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
manifest {
|
|
attributes([
|
|
"Specification-Title": "soundmod",
|
|
"Specification-Vendor": "Codex",
|
|
"Specification-Version": "1",
|
|
"Implementation-Title": project.name,
|
|
"Implementation-Version": "${version}",
|
|
"Implementation-Vendor": "Codex",
|
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
|
])
|
|
}
|
|
}
|