ClassNotFoundException in custom groovy task
I think I figured it out. The problem was that my buildSrc/build.gradle file needed the following added to it. dependencies { compile(gradleApi()) compile group: 'org.hsqldb', name: 'hsqldb', version:...
View ArticleHow does one specify the IAM Role for accessing an S3 Maven Repo?
I would have liked to respond to S3 resources should not require credentials but the thread appears to be locked. When adding an S3 bucket repository, one can specify Access Keys, but how do you...
View ArticleEclipse downloadTest
To be frank, I misunderstood your question a bit. You can add the dependency to the tests with the following notation. dependencies { implementation("io.undertow:undertow-core:2.0.27.Final:tests") }
View ArticleDistrusted HTTPS Certificate after relocation from plugins.gradle.org to...
It’s disappointing to see that there is no reaction to this issue. It’s now two weeks later and plugins.gradle.org still relocates to a cloudfront.net server that issues these distrusted TLS...
View ArticleCreating a Custom Buildship Configuration for Android
Hi. Apologies for the super-late reply. Is there a way to get the model that the android gradel plugin introduces? In your project configurator, you can query any models you want (see the argument of...
View ArticleScala compiler options in Gradle 6
Does Scala compiler in Gradle 6 supports all compiler options listed on Scala site: https://docs.scala-lang.org/overviews/compiler-options/index.html We tried to enable “-Ybackend-parallelism”, but...
View ArticleWhy does ant task get executed while project is evaluated?
I have multiple projects and one of the project’s buld.gradle has ant task. While evaluating the project, it is observed that ant task is getting executed. How should we restrict it? I am using gradle...
View ArticleTrying to remove attributes from
So the complete solution is would be to move the entire logic to Gradle and let users customize it in eclipse.classpath.file.whenMerged. It would take too much time and we don’t have many resources...
View ArticleGradle Plugin Task Reflection Scans Plugin's Project Class Files Instead of...
Set<File> files = project.getConvention().getPlugin(JavaPluginConvention.class).getSourceSets().getByName("main").getRuntimeClasspath().getFiles(); URL[] urls = files.stream().map(file ->...
View ArticleDistrusted HTTPS Certificate after relocation from plugins.gradle.org to...
Hi @twwwt, Sorry for not seeing this earlier. In the future, please don’t hesitate to reach out to security@gradle.com about issues like this in the future. To respond to your question, that redirect...
View ArticleExecute JUnit tests with a specific JVM
Hi, would need to run gradle(latest version: 6.0.1) with Java JDK 8 and run the unit tests of the projects with another JVM (Java 6), is that possible ? How can I achieve that ?
View ArticleEclipse downloadTest
Thank you Donat! As promised, I’ve posted your answer in stackoverflow as well.
View ArticlePublish without descriptor
Now that the old way is scheduled for removal: how to upload a single file without using Upload task?
View ArticleNoSuchMethodError with Gradle 6.0
I’m using a plugin that calls org.gradle.api.tasks.TaskInputs.property. It worked fine on Gradle versions < 6.0 This method has changed in Gradle 6.0 from TaskInputs property(String name, Object...
View ArticleCan Plugins DSL work with a repo other than the gradle plugins portal
Hi I want to test a custom built version of a plugin that we own with changes made locally. I want to use the Plugins DSL syntax for including the plugin in my test project for testing it. Does gradle...
View ArticleJava 11 - Test Detection Logic - initializationError
I have a JDK 8 project that I am attempting to migrate to JDK 11, and I’m having a problem where Gradle’s test detection logic is behaving differently and is capturing static inner classes inside test...
View ArticleNoSuchMethodError with Gradle 6.0
Hi Arthur, the new method has been introduced in Gradle 4.3, and when you compile a plugin against Gradle 4.3 or later, then the method will be used and the plugin will work with Gradle 6.0. So yes,...
View ArticleNoSuchMethodError with Gradle 6.0
Hi Stefan Thanks for the swift response. Currently this plugin is compiled under v3.5. I guess the min supported version could be moved to 4.3. Is there any data on usage of Gradle versions - e.g....
View Article