Quantcast
Channel: Gradle Forums - Latest posts
Browsing all 20301 articles
Browse latest View live

Force rerun a task by another task

As I said, I’m not fluent in kotlin. TBH I find the source quite ugly but that’s just me. I’m assuming you’ll need two compile tasks in the service project. One for src/main/kotlin and another for the...

View Article


Force rerun a task by another task

Another thing to consider: You could split your generate task into two tasks. The first task (in each subproject) uses the complied classes to generate an xml/json file with all the annotation info....

View Article


How to make plugin dependent on gradle task

Thank you, it was helpful to resolve my issue.

View Article

Gradle download sources failed

I’m using Gradle build tool and I can’t get the source code and docs for spark-core. I’ve already searched and applied: idea { project { jdkName = '1.8' languageLevel = '1.8' } module {...

View Article

JaCoCo Gradle Kotlin DSL exclude file from violation rules

I am trying to set my project up to run JaCoCo and to fail the build if it has less that 80% test coverage. The caveat is that I want to exclude a particular file and I can’t seem to make that work. I...

View Article


Copy dependencies to an offline machine failed.

I followed the steps in the document (https://docs.gradle.org/current/userguide/dependency_resolution.html#sub:cache_copy), but I failed to build with --offline....

View Article

Exception in thread "main" java.util.NoSuchElementException

The NoSuchElementException in Java is thrown when one tries to access an iterable beyond its maximum limit. This means that, this exception is thrown by various accessor methods to indicate that the...

View Article

Build Scan activation email not sent

Activating the scan on a different browser didn’t work for me. Adding the enterprise plugin to the build script did. Don’t really understand why...

View Article


Gradlew build single module doesn't work

Hello. I have a problem with build single module from Gradle multimodule project. I have a structure: -root-project: -first-module -second-module -modules: -first-submodule -second-submodule -...

View Article


Image may be NSFW.
Clik here to view.

Force rerun a task by another task

I created my plugin to use PSI api from JetBrains to parse all kotlin files and gather the annotations info then generate all the classes. That hit the wall due to the complexity of reading...

View Article

Gradle download sources failed

The problem belongs to Scala plugin. If you face this issue, it doesn’t matter on build tool you are using Maven or Gradle probably installation of the Scala plugin solves your problem. My Intellij...

View Article

FAILURE: Build failed with an exception PROBLEM

Hi! Can you help me? I can’t solve this problem FAILURE: Build failed with an exception. Where: Initialization script ‘C:\Users\Erdem\AppData\Local\Temp\Main_main__.gradle’ line: 21 What went wrong: A...

View Article

FAILURE: Build failed with an exception PROBLEM!

Hi! Can you help me? I can’t solve this problem FAILURE: Build failed with an exception. Where: Initialization script ‘C:\Users\Erdem\AppData\Local\Temp\Main_main__.gradle’ line: 21 What went wrong: A...

View Article


Force rerun a task by another task

If there is a way to delay the service from compiling it sources just until all dependant modules have finalised their annotation processing task ( kaptDebugCompile ) You’re trying your old chicken or...

View Article

Force rerun a task by another task

Also adding a SourceSet to android is not that trivial So just add a KotlinCompile task to the project then

View Article


Error when building a minecraft mod project

A problem occurred evaluating root project ‘TestMod’. <---- Name of my mod Failed to apply plugin [id ‘net.minecraftforge.gradle’] Failed to validate certificate for...

View Article

Force rerun a task by another task

@Lance Well that would be great to do but I can’t find a documented resource on how to do that. Are you aware of any?

View Article


"Problem forking build scan upload... java.lang.UnsupportedOperationException"

Argh, sorry @luke_daley. Yes, this was an issue report and I meant to include more context. Also, just updated my profile to use my current email address so I should see responses in a more timely...

View Article

Gradle appears to ignore JUnit @FixMethodOrder annotation

Hi Gradlers, I’m working on converting a large project from Maven to Gradle. Part of it is an integration test suite where the tests must run in a certain order because they’re manipulating a real...

View Article

Force rerun a task by another task

@Lance do you think if I just jar provide these generated sources using a task and make compileDebugKotlin depend on that will solve the problem? classes -> jar -> archive Like this thread...

View Article
Browsing all 20301 articles
Browse latest View live