matthewprenger / CurseGradle

Gradle plugin to upload Minecraft mods to CurseForge
MIT License
1 stars 1 forks source link

Could not get unknown property 'jar' for task ':remapJar' of type net.fabricmc.loom.task.RemapJarTask. #33

Open Plaban-Kumar-Mondal opened 3 years ago

Plaban-Kumar-Mondal commented 3 years ago

After loading gradle changes this error message is showing: Could not get unknown property 'jar' for task ':remapJar' of type net.fabricmc.loom.task.RemapJarTask.

Fabric Mod Project

curseforge {
    if (project.hasProperty("curseForgeApiKey")) {
        apiKey = project.properties.curseForgeApiKey
    }

    project {
        id = "423726"
        addGameVersion "1.16.4"
        mainArtifact(remapJar.jar) {
            displayName = "GG Enchantment version:$project.version"
        }
    }
    options {
        forgeGradleIntegration = false
    }
}
GhostFire90 commented 2 years ago

"Note: in recent versions, it seems that the changes outlined in this article are not necessary and perhaps even harmful." from the fabric wiki