William Dix
10/13/2022, 4:48 PM./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 issueSlackbot
10/14/2022, 4:39 PMSlackbot
10/14/2022, 4:46 PMSlackbot
10/14/2022, 7:12 PMSlackbot
10/14/2022, 11:48 PMSlackbot
10/15/2022, 2:38 PMVicky D
10/17/2022, 3:26 AMcustom 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.Slackbot
10/17/2022, 5:57 PMSlackbot
10/17/2022, 8:59 PMManuel Mathias Magalhães
10/18/2022, 1:57 AM[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.Slackbot
10/18/2022, 2:02 AMChristoph Loy
10/18/2022, 12:08 PMdef 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())
Sebastian Schuberth
10/18/2022, 12:43 PMsetStandardOutput
to redirect to a ByteArrayOutputStream
, but that will only give me the stdout contents after the whole launch completed.Slackbot
10/18/2022, 1:23 PMSlackbot
10/18/2022, 1:46 PMSlackbot
10/18/2022, 2:34 PMSlackbot
10/18/2022, 2:37 PMSlackbot
10/18/2022, 3:50 PMSlackbot
10/18/2022, 6:02 PMSlackbot
10/19/2022, 9:56 AMSlackbot
10/19/2022, 10:32 AMSlackbot
10/20/2022, 3:59 AMSlackbot
10/20/2022, 10:40 AMSlackbot
10/20/2022, 3:31 PMSlackbot
10/20/2022, 4:32 PMSlackbot
10/20/2022, 4:59 PMMichael Bailey
10/20/2022, 6:33 PMSlackbot
10/20/2022, 11:58 PMSlackbot
10/21/2022, 4:07 PMSlackbot
10/23/2022, 8:42 AM