Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle caching error #98

Open
kxmpxtxnt opened this issue Feb 1, 2025 · 3 comments
Open

Gradle caching error #98

kxmpxtxnt opened this issue Feb 1, 2025 · 3 comments

Comments

@kxmpxtxnt
Copy link

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Task `:runServer` of type `xyz.jpenilla.runpaper.task.RunServer`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.12.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

See the complete report at file:///home/paul/IdeaProjects/pauli.fyi%20-%20Minecraft/monopoly/build/reports/configuration-cache/35950pq9n8mqcate2jysru3g/478z3us9d6h2wb32ph56e7j0w/configuration-cache-report.html
> Invocation of 'Task.project' by task ':runServer' at execution time is unsupported.

There is no special setup required to reproduce. Just execute the runServer task.

@kxmpxtxnt
Copy link
Author

So it only appears when not specifying the paper version while using the userdev plugin from paper.

@kxmpxtxnt kxmpxtxnt changed the title Invocation in gradle versions since 8.12 (ig?) at execution time is unsupported Gradle caching error Feb 1, 2025
@kxmpxtxnt
Copy link
Author

kxmpxtxnt commented Feb 1, 2025

import net.minecrell.pluginyml.bukkit.BukkitPluginDescription

plugins {
    kotlin("jvm") version "2.1.10"
    kotlin("plugin.serialization") version "2.1.10"
    id("xyz.jpenilla.run-paper") version "2.3.1"
    id("de.eldoria.plugin-yml.paper") version "0.7.0"
    id("io.papermc.paperweight.userdev") version "2.0.0-beta.14"
}

group = "fyi.pauli"
version = "0.0.1"
description = "Monopoly in Minecraft"

repositories {
    mavenCentral()
    maven {
        name = "paper"
        setUrl("https://repo.papermc.io/repository/maven-public/")
    }
}

dependencies {
    paperweight.paperDevBundle("1.21.4-R0.1-SNAPSHOT")

    paperLibrary("com.akuleshov7:ktoml-core:0.5.1")
    paperLibrary("com.akuleshov7:ktoml-file:0.5.1")

    paperLibrary("net.axay", "kspigot", "1.21.0")
}

paper {
    author = "kxmpxtxnt"
    website = "https://pauli.fyi"

    apiVersion = "1.21"

    main = "fyi.pauli.monopoly.MonopolyInternal"
    loader = "fyi.pauli.monopoly.MonopolyPluginLoader"

    hasOpenClassloader = false
    generateLibrariesJson = true
    foliaSupported = true

    load = BukkitPluginDescription.PluginLoadOrder.STARTUP
    defaultPermission = BukkitPluginDescription.Permission.Default.OP
}

runPaper {
}

So this is weird, even tough its working now I sometimes getting this error.

@kxmpxtxnt
Copy link
Author

I cant really see the pattern here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant