Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- maven { url = 'https://maven.minecraftforge.net' }
- maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
- }
- dependencies {
- classpath(group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true) { exclude group: 'org.apache.log4j' }
- classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
- }
- }
- plugins {
- id 'eclipse'
- id 'maven-publish'
- }
- apply plugin: 'net.minecraftforge.gradle'
- apply plugin: 'org.spongepowered.mixin'
- version = '1.18.2-1.0'
- group = 'com.mysticsbiomes'
- archivesBaseName = 'mysticsbiomes'
- 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: 'official', version: '1.18.2'
- accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
- runs {
- client {
- workingDirectory project.file('run')
- property 'forge.logging.markers', 'REGISTRIES'
- property 'forge.logging.console.level', 'debug'
- property 'forge.enabledGameTestNamespaces', 'mysticsbiomes'
- mods {
- mysticsbiomes {
- source sourceSets.main
- }
- }
- }
- data {
- workingDirectory project.file('run')
- property 'forge.logging.markers', 'REGISTRIES'
- property 'forge.logging.console.level', 'debug'
- args '--mod', 'mysticsbiomes', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
- mods {
- mysticsbiomes {
- source sourceSets.main
- }
- }
- }
- }
- }
- sourceSets.main.resources {
- srcDir 'src/generated/resources'
- }
- dependencies {
- minecraft 'net.minecraftforge:forge:1.18.2-40.1.0'
- implementation fg.deobf('com.github.glitchfiend:TerraBlender-forge:1.18.2-1.1.0.101')
- }
- jar {
- manifest {
- attributes([
- "Specification-Title" : project.name,
- "Specification-Vendor" : "jay",
- "Specification-Version" : "1",
- "Implementation-Title" : project.name,
- "Implementation-Version" : project.jar.archiveVersion,
- "Implementation-Vendor" : "jay",
- "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
- ])
- }
- }
- jar.finalizedBy('reobfJar')
- publishing {
- publications {
- mavenJava(MavenPublication) {
- artifact jar
- }
- }
- repositories {
- maven {
- url "file://${project.projectDir}/mcmodsrepo"
- }
- }
- }
- tasks.withType(JavaCompile).configureEach {
- options.encoding = 'UTF-8'
- }
Add Comment
Please, Sign In to add comment