Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- maven { url = 'https://maven.minecraftforge.net' }
- maven { url = 'https://maven.parchmentmc.org' }
- mavenCentral()
- }
- dependencies {
- classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
- classpath 'org.parchmentmc:librarian:1.+'
- }
- }
- apply plugin: 'net.minecraftforge.gradle'
- apply plugin: 'org.parchmentmc.librarian.forgegradle'
- apply plugin: 'eclipse'
- apply plugin: 'maven-publish'
- version = '1.0'
- group = 'io.github.darealturtywurty.beansmod'
- archivesBaseName = 'beansmod'
- java.toolchain.languageVersion = JavaLanguageVersion.of(17)
- println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
- minecraft {
- mappings channel: 'parchment', version: '2022.01.23-1.18.1'
- accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
- runs {
- client {
- workingDirectory project.file('run')
- arg "-mixin.config=" + archivesBaseName + ".mixins.json"
- property 'mixin.env.remapRefMap', 'true'
- property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
- mods {
- beansmod {
- source sourceSets.main
- }
- }
- }
- server {
- workingDirectory project.file('run')
- arg "-mixin.config=" + archivesBaseName + ".mixins.json"
- property 'mixin.env.remapRefMap', 'true'
- property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
- mods {
- beansmod {
- source sourceSets.main
- }
- }
- }
- data {
- workingDirectory project.file('run')
- args '--mod', archivesBaseName, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
- mods {
- beansmod {
- source sourceSets.main
- }
- }
- }
- }
- }
- sourceSets.main.resources { srcDir 'src/generated/resources' }
- repositories {
- // JEI maven
- maven {
- name = "Progwml6 maven"
- url = "https://dvs1.progwml6.com/files/maven/"
- }
- // JEI maven mirror
- maven {
- name = "ModMaven"
- url = "https://modmaven.dev"
- }
- }
- dependencies {
- minecraft 'net.minecraftforge:forge:1.18.1-39.0.64'
- runtimeOnly fg.deobf("mezz.jei:jei-1.18.1:${jei_version}")
- annotationProcessor 'org.spongepowered:mixin:0.8.4:processor'
- }
- jar {
- manifest {
- attributes([
- "Specification-Title" : archivesBaseName,
- "Specification-Vendor" : "TurtyWurty",
- "Specification-Version" : "1",
- "Implementation-Title" : project.name,
- "Implementation-Version" : project.jar.archiveVersion,
- "Implementation-Vendor" : "TurtyWurty",
- "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
- "MixinConfigs": "mixins." + archivesBaseName + ".json"
- ])
- }
- }
- jar.finalizedBy('reobfJar')
- publishing {
- publications {
- mavenJava(MavenPublication) {
- artifact jar
- }
- }
- repositories {
- maven {
- url "file://${project.projectDir}/mcmodsrepo"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement