https://gradle.com/ logo
Join Slack
Powered by
# community-support
  • w

    William Dix

    10/13/2022, 4:48 PM
    hey y'all i'm experiencing a weird issue with dependency resolution while using lockfiles. i have a task that fails when run on it's own (i.e.
    ./gradlew task
    b/c it does not resolve dependencies which are part of the lock state; however if I run the task alongside a clean (i.e.
    ./gradlew clean task
    ) this issue does not appear. another interesting piece of data
    ./gradlew clean
    followed by
    ./gradlew task
    also fails with the dependency resolution issue
  • s

    Slackbot

    10/14/2022, 4:39 PM
    This message was deleted.
    m
    • 2
    • 1
  • s

    Slackbot

    10/14/2022, 4:46 PM
    This message was deleted.
    v
    k
    • 3
    • 4
  • s

    Slackbot

    10/14/2022, 7:12 PM
    This message was deleted.
    r
    c
    +2
    • 5
    • 9
  • s

    Slackbot

    10/14/2022, 11:48 PM
    This message was deleted.
    c
    v
    • 3
    • 3
  • s

    Slackbot

    10/15/2022, 2:38 PM
    This message was deleted.
    p
    v
    • 3
    • 4
  • v

    Vicky D

    10/17/2022, 3:26 AM
    Hello! I have a question about defining a
    custom model
    for
    tooling API
    . (Simple example is to get the list of all the plugins applied to a project) What works: Define a model, create a custom plugin to register the model, and then from a sample project, create the
    ProjectConnection
    , and invoke the method on the model interface for a sample project. • Plugin to register the model • Invocation What does not work: Rather than having a plugin just to register the model, I am trying to add a task to that plugin,
    getPlugins,
    and invoking the same thing I was invoking from invocation (above). But here is where it throws the error:
    No model of type 'CustomModel' is available in this build
    • Plugin with model registration and task definition to invoke the method on model Is it not possible to register a model and define a task that will create the
    ProjectConnection
    in the same plugin? What am I understanding incorrectly? I could not find clear documentation about it.
  • s

    Slackbot

    10/17/2022, 5:57 PM
    This message was deleted.
    ✅ 1
    e
    s
    t
    • 4
    • 3
  • s

    Slackbot

    10/17/2022, 8:59 PM
    This message was deleted.
    c
    z
    +3
    • 6
    • 16
  • m

    Manuel Mathias Magalhães

    10/18/2022, 1:57 AM
    Hello, i've been trying to use gradlew to build this project https://github.com/FabricMC/fabric-example-mod, but i've been getting this error
    [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not load compiled classes for settings file '/home/maneglegle/Desktop/github.com/fabric-example-mod/settings.gradle' from cache.
    , I've tried deleting .gradle/cache, running gradlew with -
    -no-configuration-cache --no-configure-on-demand --configuration-cache-problems warn --no-build-cache
    , using a clean install, using a IDE (i tried on eclipse and idea, both gave me similar errors but with different settings.graddle paths), But nothing works.
  • s

    Slackbot

    10/18/2022, 2:02 AM
    This message was deleted.
    debug-stack.txt
    🧵 1
    v
    • 2
    • 2
  • c

    Christoph Loy

    10/18/2022, 12:08 PM
    Hey guys 🙂 I am trying to let one configuration extend from another. Unfortunately, when calling "resolve" on my second configuration, I just get an empty list, even though the first configuration contains a resolvable dependency. Do you guys know why?
    Copy code
    def config = project.configurations.create("foo")
    config.canBeResolved(true)
    config.dependencies.add(project.getDependencies().create('com.google.guava:guava:31.1-jre'))
    
    def config2 = project.configurations.detachedConfiguration()
    config2.extendsFrom(config)
    config2.canBeConsumed(true)
    println(config2.resolve())
  • s

    Sebastian Schuberth

    10/18/2022, 12:43 PM
    Is there a way to get stdout / stderr "on-the-fly" when connecting to a Gradle build via the Tooling API? I'm currently using the launcher's
    setStandardOutput
    to redirect to a
    ByteArrayOutputStream
    , but that will only give me the stdout contents after the whole launch completed.
  • s

    Slackbot

    10/18/2022, 1:23 PM
    This message was deleted.
    v
    • 2
    • 1
  • s

    Slackbot

    10/18/2022, 1:46 PM
    This message was deleted.
    🗑️ 2
    c
    • 2
    • 1
  • s

    Slackbot

    10/18/2022, 2:34 PM
    This message was deleted.
    c
    n
    • 3
    • 6
  • s

    Slackbot

    10/18/2022, 2:37 PM
    This message was deleted.
    v
    • 2
    • 1
  • s

    Slackbot

    10/18/2022, 3:50 PM
    This message was deleted.
    ✅ 1
    v
    s
    • 3
    • 2
  • s

    Slackbot

    10/18/2022, 6:02 PM
    This message was deleted.
    c
    • 2
    • 1
  • s

    Slackbot

    10/19/2022, 9:56 AM
    This message was deleted.
    n
    t
    v
    • 4
    • 13
  • s

    Slackbot

    10/19/2022, 10:32 AM
    This message was deleted.
    f
    s
    • 3
    • 4
  • s

    Slackbot

    10/20/2022, 3:59 AM
    This message was deleted.
    c
    m
    e
    • 4
    • 7
  • s

    Slackbot

    10/20/2022, 10:40 AM
    This message was deleted.
    d
    m
    +2
    • 5
    • 5
  • s

    Slackbot

    10/20/2022, 3:31 PM
    This message was deleted.
    v
    s
    • 3
    • 2
  • s

    Slackbot

    10/20/2022, 4:32 PM
    This message was deleted.
    c
    v
    • 3
    • 2
  • s

    Slackbot

    10/20/2022, 4:59 PM
    This message was deleted.
    v
    e
    c
    • 4
    • 36
  • m

    Michael Bailey

    10/20/2022, 6:33 PM
    Anyone been able to have multiple precompiled script plugins in different subprojects where one plugin applies the other plugin AND makes use of version catalogs? Running into this issue: https://github.com/gradle/gradle/issues/22468
  • s

    Slackbot

    10/20/2022, 11:58 PM
    This message was deleted.
    c
    e
    v
    • 4
    • 34
  • s

    Slackbot

    10/21/2022, 4:07 PM
    This message was deleted.
    c
    e
    v
    • 4
    • 19
  • s

    Slackbot

    10/23/2022, 8:42 AM
    This message was deleted.
    h
    • 2
    • 1
1...242526...102Latest