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

    Jack Bear

    01/26/2023, 11:14 PM
    Hello I hope everyone's doing well.
  • j

    Jack Bear

    01/26/2023, 11:14 PM
    I've got some issues while while build gradle of Java Forge MDK.
    🧵 1
  • j

    Jack Bear

    01/26/2023, 11:15 PM
    Is there anybody that can help me?
    🧵 1
  • s

    SUCHITRA GIRI

    01/27/2023, 1:17 AM
    Hello everyone, Hope all are doing great! I have some doubt to adding invisible recaptcha dependencies in my gradle project it throwing error. Here is the dependencies which I am following though google recaptcha doc https://cloud.google.com/recaptcha-enterprise/docs/libraries. But my project uses gradlew version
    Gradle 4.10.2
    , project deployed on google app engine . So it might be the reason that new version of recapcha dependency causing problem. Here is the error can someone please help to figure it out that which recaptcha dependency should l use to my project's gradle version??
  • s

    Slackbot

    01/27/2023, 1:19 AM
    This message was deleted.
    🧵 1
    v
    s
    • 3
    • 9
  • j

    Jack Bear

    01/27/2023, 2:04 AM
    hello evereyone
  • j

    Jack Bear

    01/27/2023, 2:04 AM
    Please help me
    🧵 1
  • j

    Jack Bear

    01/27/2023, 2:31 AM
    Copy code
    > Configure project :
    Java: 17.0.5, JVM: 17.0.5+1-b653.23 (JetBrains s.r.o.), Arch: amd64
    Download <https://maven.minecraftforge.net/it/unimi/dsi/fastutil/8.5.9/fastutil-8.5.9.jar>, took 14 m 38 s 384 ms (23.38 MB)
    Download <https://maven.minecraftforge.net/com/ibm/icu/icu4j/71.1/icu4j-71.1.jar>, took 22 m 2 s 587 ms (13.96 MB)
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring root project 'base-defense-mod'.
    > Could not resolve all files for configuration ':_compileJava_1'.
       > Could not download icu4j-71.1.jar (com.ibm.icu:icu4j:71.1)
          > Could not get resource '<https://maven.minecraftforge.net/com/ibm/icu/icu4j/71.1/icu4j-71.1.jar>'.
             > Premature end of Content-Length delimited message body (expected: 13,963,762; received: 9,553,048)
       > Could not download fastutil-8.5.9.jar (it.unimi.dsi:fastutil:8.5.9)
          > Could not get resource '<https://maven.minecraftforge.net/it/unimi/dsi/fastutil/8.5.9/fastutil-8.5.9.jar>'.
             > Premature end of Content-Length delimited message body (expected: 23,376,043; received: 6,136,040)
    
    * Try:
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    
    
    ...
    🧵 1
  • s

    Slackbot

    01/27/2023, 2:32 AM
    This message was deleted.
    🧵 1
    v
    j
    • 3
    • 24
  • s

    Slackbot

    01/27/2023, 8:10 AM
    This message was deleted.
    v
    n
    • 3
    • 7
  • d

    Dariusz Kuc

    01/27/2023, 3:10 PM
    cross posting -> https://gradle-community.slack.com/archives/CJYS1DAP5/p1674782428023379
  • j

    Jack Bear

    01/27/2023, 5:44 PM
    Hello everyone. I need your faithful help. I have MDK project that needs to be run. But while configuring project, specific jar file downloading always failed. I don't know what the problem is exactly but I think maybe proxy or network problem. So What I want is, is it possible that I configure gradle on other's computer and copy configured project? Would cloned project run on my computer also?
  • a

    Andrew Lethbridge

    01/27/2023, 11:30 PM
    Hey folks. Having an odd issue and wondering if anyone can shed some light onto the fundamental difference in the following code. I have a Gradle project which is shipping a custom Gradle plugin. This Gradle plugin is basically a collection of convention plugins for different languages and application types. “java-maven-jar”, “java-gradle-plugin”, “java-aws-lambda” etc. My Gradle plugin project actually applies the plugin to itself. It started as a Java project and was applying a plugin “companyName-java-gradle-plugin” but the core code has been slowing moving over to Kotlin. My plugins block looks like so:
    Copy code
    plugins {
        kotlin("jvm") version "1.7.20"
        id("companyName-java-gradle-plugin")
    }
    Everything up to this point works fine, no issues whatsoever. I recently added Kotlin as a top level language in this convention plugin so I am able to switch my plugin block to
    Copy code
    plugins {
        id("companyName-kotlin-gradle-plugin")
    }
    This required me to add the Jetbrains Kotlin plugin as an implementation dependency in my own build script vs getting that code from the plugins block and Gradle plugin portal.
    Copy code
    implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
    I am applying the plugin internally like so
    Copy code
    class InternalKotlinPlugin : Plugin<Project>
    {
        override fun apply(project: Project) {
            project.plugins.apply(KotlinPlatformJvmPlugin::class.java)
            // other convention logic.
        }
    }
    This all seems to work fine from a compilation perspective but the addition of that dependency seems to have changed my buildscript classpath and I am seeing weird issues at runtime which leads me to believe its a classpath issue, but I haven’t proven this to be true yet. My ultimate question is: Is there any fundamental difference in the buildscript classpath between
    Copy code
    plugins {
        kotlin("jvm") version "1.7.20"
    }
    vs
    Copy code
    plugins {
        id("companyName-kotlin-gradle-plugin")
    }
    Where that custom plugin has an implementation dependency against the Kotlin plugin and is applying it via a class reference instead of the buildscript DSL?
  • i

    Ivan Alvarado

    01/27/2023, 11:36 PM
    Hello everyone 👋, I have a general question to ask the community. Our CI pipeline runs build steps on clean agents (without state) and every now-and-then a step will crash with:
    Copy code
    ----- End of the daemon log -----
    
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
    We've identified a subset of steps this only happens to. We've added functionality to capture the daemon logs that live in
    /.gradle/daemon/<gradle version>/daemon*.log
    , however there's a lot of noise in the logs. What are some things that we should be looking for to help us diagnose why the daemon crashed? Or, what are some common causes? We've tried increasing the memory size for the daemon by updating
    -Xmx
    to 16GB for
    kotlin.daemon.jvm.options
    , as well as,
    -Xmx
    for
    org.gradle.jvmargs
    . Thanks in advance 🙏
  • m

    Matthew Von-Maszewski

    01/28/2023, 1:36 AM
    see if /var/log/syslog has crash / OOM information.
    🧵 1
  • s

    Slackbot

    01/28/2023, 2:38 PM
    This message was deleted.
    v
    m
    • 3
    • 5
  • m

    Manuel Dahmen

    01/28/2023, 7:12 PM
    now it's working. Thanks.
    🧵 1
  • m

    Manuel Dahmen

    01/28/2023, 7:14 PM
    I saw this task Task :configJavafxRun activated by run task;
    🧵 1
  • s

    Slackbot

    01/28/2023, 9:54 PM
    This message was deleted.
    v
    l
    j
    • 4
    • 15
  • s

    Slackbot

    01/30/2023, 9:57 AM
    This message was deleted.
    n
    t
    +2
    • 5
    • 15
  • s

    Slackbot

    01/30/2023, 9:57 AM
    This message was deleted.
    🧵 1
    v
    m
    • 3
    • 2
  • s

    Slackbot

    01/30/2023, 1:00 PM
    This message was deleted.
    v
    m
    g
    • 4
    • 6
  • n

    Nishant Tyagi

    01/30/2023, 6:59 PM
    Hello @TeamCollaboration So I have android studio (snip given) I am trying to build android app using cordova. Installed gradle version 7. 6 . Then tried with 6.7. On running the command " cordova build android" I keep getting the error (snip given)
  • s

    Slackbot

    01/30/2023, 7:00 PM
    This message was deleted.
    v
    n
    • 3
    • 2
  • s

    Slackbot

    01/30/2023, 9:31 PM
    This message was deleted.
    c
    j
    • 3
    • 2
  • s

    Slackbot

    01/31/2023, 10:45 AM
    This message was deleted.
    j
    l
    • 3
    • 2
  • s

    Slackbot

    01/31/2023, 12:17 PM
    This message was deleted.
    j
    p
    • 3
    • 4
  • s

    Slackbot

    01/31/2023, 2:42 PM
    This message was deleted.
    v
    m
    • 3
    • 2
  • m

    Mohammad

    01/31/2023, 8:55 PM
    Anyone can help with this? https://stackoverflow.com/questions/75302920/gradle-include-classes-from-source-set-in-a-gradle-test-suite
  • s

    Smart Chocolate

    01/31/2023, 10:19 PM
    I get the following message:-
    🧵 1
1...363738...102Latest