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.+'
- }
- }
- plugins {
- id 'eclipse'
- id 'maven-publish'
- }
- apply plugin: 'net.minecraftforge.gradle'
- apply plugin: 'org.parchmentmc.librarian.forgegradle'
- version = '1.4.0.3'
- group = 'com.peeko32213.unusualprehistory'
- archivesBaseName = 'unusualprehistory'
- 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.11.27-1.19.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', 'unusualprehistory'
- mods {
- unusualprehistory {
- source sourceSets.main
- }
- }
- }
- server {
- workingDirectory project.file('run')
- property 'forge.logging.markers', 'REGISTRIES'
- property 'forge.logging.console.level', 'debug'
- property 'forge.enabledGameTestNamespaces', 'unusualprehistory'
- mods {
- unusualprehistory {
- source sourceSets.main
- }
- }
- }
- gameTestServer {
- workingDirectory project.file('run')
- property 'forge.logging.markers', 'REGISTRIES'
- property 'forge.logging.console.level', 'debug'
- property 'forge.enabledGameTestNamespaces', 'unusualprehistory'
- mods {
- unusualprehistory {
- source sourceSets.main
- }
- }
- }
- data {
- workingDirectory project.file('run')
- property 'forge.logging.markers', 'REGISTRIES'
- property 'forge.logging.console.level', 'debug'
- args '--mod', 'unusualprehistory', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
- mods {
- unusualprehistory {
- source sourceSets.main
- }
- }
- }
- }
- }
- // Include resources generated by data generators.
- sourceSets.main.resources { srcDir 'src/generated/resources' }
- repositories {
- maven {
- url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
- }
- maven {// location of the maven that hosts JEI files
- name = "Progwml6 maven"
- url = "https://dvs1.progwml6.com/files/maven/"
- }
- maven {
- // location of a maven mirror for JEI files, as a fallback
- name = "ModMaven"
- url = "https://modmaven.dev"
- }
- }
- dependencies {
- minecraft 'net.minecraftforge:forge:1.19.2-43.2.17'
- implementation fg.deobf('software.bernie.geckolib:geckolib-forge-1.19:3.1.39')
- compileOnly(fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}"))
- compileOnly(fg.deobf("mezz.jei:jei-${mc_version}-forge-api:${jei_version}"))
- runtimeOnly(fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}"))
- }
- jar {
- manifest {
- attributes([
- "Specification-Title" : "unusualprehistory",
- "Specification-Vendor" : "Peeko32213",
- "Specification-Version" : "1.4.0.3", // We are version 1.4.0.3 of ourselves
- "Implementation-Title" : project.name,
- "Implementation-Version" : project.jar.archiveVersion,
- "Implementation-Vendor" : "unusualprehistory",
- "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' // Use the UTF-8 charset for Java compilation
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement