FunctionalStorage/build.gradle

121 lines
3.9 KiB
Groovy
Raw Normal View History

2021-12-17 18:36:34 -06:00
buildscript {
repositories {
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
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'
group = 'com.buuz135'
version = '1.18.1-0.0.8'
2021-12-17 18:36:34 -06:00
java {
archivesBaseName = 'functionalstorage'
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
minecraft {
mappings channel: 'official', version: '1.18.1'
2021-12-24 10:15:57 -06:00
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
2021-12-17 18:36:34 -06:00
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
2021-12-17 18:36:34 -06:00
mods {
functionalstorage {
source sourceSets.main
}
}
}
server {
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
2021-12-17 18:36:34 -06:00
mods {
functionalstorage {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
2021-12-17 18:36:34 -06:00
args '--mod', 'functionalstorage', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
functionalstorage {
source sourceSets.main
}
}
}
}
}
// Include resources generated by data generators.
sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories {
maven {
name 'jared maven'
url "https://maven.blamejared.com/"
}
2021-12-19 10:24:58 -06:00
maven {
// location of the maven that hosts JEI files
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
url = "https://www.cursemaven.com"
}
2021-12-17 18:36:34 -06:00
}
dependencies {
minecraft 'net.minecraftforge:forge:1.18.1-39.0.5'
2021-12-27 11:38:16 -06:00
implementation fg.deobf (project.dependencies.create('com.hrznstudio:titanium:1.18-3.4.0-27'))
2021-12-19 10:24:58 -06:00
compileOnly fg.deobf("mezz.jei:jei-1.18.1:9.1.0.46:api")
runtimeOnly fg.deobf("mezz.jei:jei-1.18.1:9.1.0.46")
runtimeOnly fg.deobf("curse.maven:refined-storage-243076:3569563")
2022-01-03 13:23:22 -06:00
implementation fg.deobf("curse.maven:the-one-probe-245211:3586969")
runtimeOnly fg.deobf("curse.maven:create-328085:3600402")
runtimeOnly fg.deobf("curse.maven:flywheel-486392:3600401")
annotationProcessor "org.spongepowered:mixin:0.8.5:processor"
2021-12-17 18:36:34 -06:00
}
// Example for how to get properties into the manifest for reading at runtime.
jar {
manifest {
attributes([
"Specification-Title" : "functionalstorage",
"Specification-Vendor" : "Buuz135, Rid",
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : project.jar.archiveVersion,
"Implementation-Vendor" : "Buuz135, Rid",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
jar.finalizedBy('reobfJar')