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

Cannot apply plugin by id in init.gradle script

If you try to reference a class in an init script without adding it to the classpath, that error will occur in any version of Gradle. The line you copied from the thread isn’t stand-alone. It’s within...

View Article


Cannot apply plugin by id using kotlin DSL

I’m unable to add a plugin using id (Kotlin DSL). Not sure if the problem is with my setup, or something else. Here is a minimal setup to reproduce the problem:...

View Article


Wrap JavadocJar and SourcesJar via gradle standalone plugin

I am building a standalone gradle and for some reason I want to wrap the process of creating publication and including sourcesJar and javadocJar inside this plugin. The publication is created fine but...

View Article

Cannot apply plugin by id using kotlin DSL

Did you add the classpath dependency? Can you share your buildScript dependencies?

View Article

Cannot apply plugin by id using kotlin DSL

(typing on my phone) I’ve linked to a github repo in the original post. Would that work for you?

View Article


Gradle + sonar 2.8 issue

Task ‘:sonarqube’ is not up-to-date because: Task has not declared any outputs despite executing actions. User cache: C:\Users\sonar\cache SonarQube server [https://xxx.xxxx.xxxx] can not be reached...

View Article

Plugin pending approval since before xmas

this plugin in waiting for approval since 24th December, https://plugins.gradle.org/u/heirloom_plugins all i want is to ping whoever is responsible to approve the plugin as it was probably lost during...

View Article

Image may be NSFW.
Clik here to view.

Projects cloned on Android Studio via github are not working

Screenshot (79)1920×1080 216 KB

View Article


Dependency locking and composite build

Hi guys, Since I have introduced dependency locking I cannot use anymore my composite build to integrate multi projects. Gradle complains when I do gradle build in the composite build that some...

View Article


Standalone Plugin to apply and import 3rd party plugins

Hi, I am trying to write a standalone plugin to be used by our team, that will replace common plugin application code in different projects and will apply some preset standard configuration to those...

View Article

Configure MavenDeployer programmatically

I too got the same issue, Can anyone suggest me the solution

View Article

Does the java-library plugin actually do anything Gradle can't do natively?

For anyone interested: github.com gradle/gradle/blob/d2bb068ddeb32ab5718a7760fbf1819a53d0a846/subprojects/plugins/src/main/java/org/gradle/api/plugins/JavaLibraryPlugin.java#L49-L70 private void...

View Article

Image may be NSFW.
Clik here to view.

How to make Report implementation Serializable

The Report interface extends Serializable, however, even official implementations like SimpleReport aren’t Serializable. Are we going to make Property serializable in the near future? Or, can I simply...

View Article


Cannot apply plugin by id using kotlin DSL

My settings.gradle.kts: pluginManagement { repositories { gradlePluginPortal() jcenter() } } rootProject.name = "plugin-problem" And build.gradle.kts: /* * This file was generated by the Gradle 'init'...

View Article

Image may be NSFW.
Clik here to view.

Does the java-library plugin actually do anything Gradle can't do natively?

gabrielshanahan: I will add however that I was mistaken in the OP when I implied that Gradle includes the api/implementation functions natively - it is the Java (and therefore Kotlin) plugin that does...

View Article


Cannot apply plugin by id using kotlin DSL

You can only apply a plugin by id if it is published to the Gradle Plugin Portal or with a marker interface to an internal repository. This plugin does not meet that criteria. You will need to...

View Article

Image may be NSFW.
Clik here to view.

Cannot apply plugin by id using kotlin DSL

jjustinic: You will need to manually include the artifact on the buildscript classpath as indicated on the plugin’s README. Thank you. That solved it. For future reference here are the changes I made:...

View Article


Logging to console and file

Did we get a solution for this in any gradle version? Is there an inbuilt gradle way yet to log the “gradlew someTask” output to a file?

View Article

Image may be NSFW.
Clik here to view.

Cannot run my feature files through gradle task

Hi I am very new to gradle and we are upgrading our project BDD framework with cucumber and used gradle. I am able to run my feature files through cucumber configurations but unable to run as gradle...

View Article

Cannot run my feature files through gradle task

Your image only contains generic error output. It doesn’t include anything about the actual issue, which is likely right above the top line shown in your image.

View Article
Browsing all 19854 articles
Browse latest View live