Skip to content

Commit

Permalink
work on gradle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skiprocks999 committed Jan 21, 2024
1 parent b7e25f3 commit 04da017
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 1,198 deletions.
53 changes: 26 additions & 27 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,26 @@ plugins {
id 'com.matthewprenger.cursegradle' version "${cursegradle_version}"
}

repositories {
mavenLocal()
maven {
// location of the maven that hosts JEI files since January 2023
name = "Jared's maven"
url = "https://maven.blamejared.com/"
}
maven {
// location of a maven mirror for JEI files, as a fallback
name = "ModMaven"
url = "https://modmaven.dev"
}
}

//apply plugin: 'net.minecraftforge.gradle'
//apply plugin: 'org.spongepowered.mixin'
//apply plugin: 'org.parchmentmc.librarian.forgegradle'

//apply plugin: 'eclipse'
//apply plugin: 'maven-publish'
//apply from: 'https://raw.githubusercontent.com/SizableShrimp/Forge-Class-Remapper/main/classremapper.gradle'
group = mod_group_id
version = "${minecraft_version}-" + mod_version

libsDirName = "../output"
distsDirName = "../output"

group = mod_id
version = "${minecraft_version}-" + mod_version

base {

archivesName = mod_name
Expand Down Expand Up @@ -138,26 +143,14 @@ minecraft {
*/

dependencies {
implementation "net.neoforged:neoforge:${forge_version}"
compileOnly "mezz.jei:jei-${minecraft_version}-common-api:${jei_version}"
compileOnly "mezz.jei:jei-${minecraft_version}-forge-api:${jei_version}"
runtimeOnly "mezz.jei:jei-${minecraft_version}-forge:${jei_version}"
implementation("net.neoforged:neoforge:${forge_version}")
compileOnly("mezz.jei:jei-${minecraft_version}-common-api:${jei_version}")
compileOnly("mezz.jei:jei-${minecraft_version}-neoforge-api:${jei_version}")
// at runtime, use the full JEI jar for NeoForge
runtimeOnly("mezz.jei:jei-${minecraft_version}-neoforge:${jei_version}")
}

repositories {
mavenLocal()
maven {
// location of the maven that hosts JEI files since January 2023
name = "Jared's maven"
url = "https://maven.blamejared.com/"
}
maven {
// location of a maven mirror for JEI files, as a fallback
name = "ModMaven"
url = "https://modmaven.dev"
}

}

tasks.withType(ProcessResources).configureEach {
var replaceProperties = [
Expand All @@ -170,6 +163,7 @@ tasks.withType(ProcessResources).configureEach {
mod_name : mod_name,
mod_license : mod_license,
mod_version : version,
credits : mod_credits,
mod_authors : mod_authors,
mod_description: mod_desc,
]
Expand All @@ -180,6 +174,11 @@ tasks.withType(ProcessResources).configureEach {
}
}


task getDeps(type: Copy) {
duplicatesStrategy 'exclude'
}

/*
tasks.named('jar', Jar).configure {
Expand Down
Loading

0 comments on commit 04da017

Please sign in to comment.