https://gradle.com/ logo
Join Slack
Powered by
# plugin-development
  • s

    Slackbot

    02/24/2023, 10:35 PM
    This message was deleted.
    t
    d
    +2
    • 5
    • 12
  • s

    Slackbot

    02/27/2023, 3:31 PM
    This message was deleted.
    v
    r
    • 3
    • 5
  • s

    Slackbot

    02/27/2023, 10:20 PM
    This message was deleted.
    r
    v
    m
    • 4
    • 12
  • s

    Slackbot

    03/03/2023, 10:42 PM
    This message was deleted.
    b
    v
    +2
    • 5
    • 6
  • s

    Slackbot

    03/05/2023, 3:44 PM
    This message was deleted.
    👍 1
    v
    ł
    • 3
    • 6
  • s

    Slackbot

    03/07/2023, 2:34 PM
    This message was deleted.
    m
    a
    • 3
    • 29
  • s

    Slackbot

    03/07/2023, 4:17 PM
    This message was deleted.
    m
    p
    • 3
    • 4
  • s

    Slackbot

    03/08/2023, 9:40 AM
    This message was deleted.
    j
    e
    +6
    • 9
    • 70
  • s

    Slackbot

    03/09/2023, 6:44 PM
    This message was deleted.
    r
    m
    +3
    • 6
    • 19
  • s

    Slackbot

    03/10/2023, 9:44 AM
    This message was deleted.
    👀 1
    v
    a
    • 3
    • 3
  • s

    Slackbot

    03/11/2023, 9:18 AM
    This message was deleted.
    v
    j
    • 3
    • 2
  • s

    Slackbot

    03/13/2023, 2:32 PM
    This message was deleted.
    v
    b
    • 3
    • 12
  • a

    Adam

    03/14/2023, 2:55 PM
    I'm using TestKit to test my Gradle plugin. I want to check that it doesn't log to lifecycle during project configuration. The very first time I run my test with args
    clean --no-configuration-cache --no-build-cache
    , I can see in the log output:
    Copy code
    > Configure project :
    > Configure project :subproject-goodbye
    > Configure project :subproject-hello
    > Task :clean
    > Task :subproject-goodbye:clean
    > Task :subproject-hello:clean
    So I can check the
    BuildResult.output
    to verify that it contains this string exactly. But if I re-run the the second time, the test fails because it's missing the
    Configure project
    lines. I've tried deleting the test project's
    .gradle
    directory, but it didn't have any effect. Is there a nice flag I can use to force Gradle to configure all projects?
  • s

    Slackbot

    03/19/2023, 11:53 PM
    This message was deleted.
    j
    e
    • 3
    • 4
  • s

    Slackbot

    03/21/2023, 10:31 PM
    This message was deleted.
    m
    d
    • 3
    • 6
  • s

    Slackbot

    03/23/2023, 12:50 PM
    This message was deleted.
    v
    t
    e
    • 4
    • 3
  • s

    Slackbot

    03/23/2023, 1:28 PM
    This message was deleted.
    p
    v
    +2
    • 5
    • 11
  • s

    Slackbot

    03/23/2023, 2:52 PM
    This message was deleted.
    👀 3
    ➕ 2
    v
    v
    +2
    • 5
    • 12
  • s

    Slackbot

    03/23/2023, 5:17 PM
    This message was deleted.
    t
    m
    +2
    • 5
    • 17
  • s

    Slackbot

    03/27/2023, 6:26 PM
    This message was deleted.
    r
    o
    v
    • 4
    • 9
  • s

    Slackbot

    03/28/2023, 2:29 PM
    This message was deleted.
    e
    b
    +2
    • 5
    • 16
  • s

    Slackbot

    03/28/2023, 10:54 PM
    This message was deleted.
    e
    r
    • 3
    • 4
  • s

    Slackbot

    03/30/2023, 10:49 AM
    This message was deleted.
    ✅ 1
    d
    j
    • 3
    • 7
  • t

    Tapchicoma

    03/30/2023, 2:26 PM
    I have a few questions regarding
    ProjectBuild
    and usages in the unit tests: • it could be used just to check configuration state with some provided modifications to the
    Project
    instance? Limitations are that it is not possible to use different Gradle versions with it, it does not run tasks execution and does not download any project dependencies - am I correct or there are more? • Is there any downsides to call
    (Project as ProjectInternal).evaluate()
    ? (beside obvious that it is internal Gradle api)
  • s

    Slackbot

    03/30/2023, 3:05 PM
    This message was deleted.
    ✅ 1
    j
    h
    +2
    • 5
    • 6
  • s

    Slackbot

    03/30/2023, 6:49 PM
    This message was deleted.
    v
    r
    g
    • 4
    • 11
  • s

    Slackbot

    04/01/2023, 10:17 AM
    This message was deleted.
    a
    t
    v
    • 4
    • 32
  • s

    Slackbot

    04/01/2023, 8:05 PM
    This message was deleted.
    👀 1
    j
    • 2
    • 15
  • s

    Slackbot

    04/03/2023, 7:40 AM
    This message was deleted.
    a
    • 2
    • 1
  • a

    Adam

    04/05/2023, 2:09 PM
    can I configure the Kotlin DSL plugin to generate pre-compiled script plugins from a non-main source set? I would like to generate some test-plugins using the java-test-fixtures plugin. I think it’s possible using the
    PrecompiledScriptPluginsSupport
    service: https://github.com/gradle/gradle/blob/34453d3231c84f0713123cde78536cb29d735281/subprojects/kotlin-dsl-plugins/src/main/kotlin/org/gradle/kotlin/dsl/plugins/precompiled/PrecompiledScriptPlugins.kt#L44-L50 I’ve made some progress, and IntelliJ seems to be happy, but I get an error when I try and build:
    Copy code
    > Task :compileTestFixturesKotlin FAILED
    ...
    No script runtime was found in the classpath: class 'kotlin.script.templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies
    Of course I could add the dependency directly, but I’d prefer to match the way that Gradle is doing it. However, I can’t find out what’s missing (code in thread). Any clues how Gradle normally adds the script-runtime dependency?
1...101112...36Latest