gradle-plugin

Error while replacing jetty plugin to gretty plugin gradle

梦想的初衷 提交于 2019-12-24 07:05:16
问题 I have a JAX-RS project which have jetty plugin in gradle. I want to replace jetty plugin with gretty as jetty is not supported in gradle 4 and other versions. I get following errors while running gretty plugin. Execution failed for task ':appRunWar'. java.lang.Exception: com/sun/jersey/spi/inject/InjectableProvider build.gradle code containing jetty plugin apply plugin: 'java' apply plugin: 'war' apply plugin: 'jetty' apply plugin: 'eclipse' jettyRun { httpPort = 8080 reload = 'automatic'

Android Studio can't open project

谁说我不能喝 提交于 2019-12-24 01:15:03
问题 I've recently get update notification of android studio 2.3, after the update it's not opening any project and throwing error: [plugin: com.darkklord.gradle.metric.core] after downgrading and reinstalling i still have this issue, can anyone please help me on this topic ? 回答1: Download latest plugin from here: https://plugins.jetbrains.com/plugin/9197-android-gradle-metrics--checkstyle Install Plugin manually from disk. Restart Android Studio (The error will still occur) Remove plugin in IDE.

android studio 3.1.4 offline mode

你说的曾经没有我的故事 提交于 2019-12-24 00:39:36
问题 I'm trying to build the project with offline-mode in Android Studio. So, Unzip the gradle-plugin (version 4.4) and set Gradle path & Service directory path. Finally check 'Offline work'. When Sync the gradle, it occur the problem. The Error Message 'No cached version of com.android.tools.build:gradle:3.1.4 available for offline mode.' Installed SDK Platform List Android API 28 Android SDK Platform 28 Sources for Android 28 Android 8.0(Oreo) Android SDK Platform 26 Sources for Android 26

Automatically run Gradle task in project build with IntelliJ IDEA

笑着哭i 提交于 2019-12-23 20:24:54
问题 I have an IntelliJ IDEA Gradle project using JPA2 Metamodel generation with the JpaModelgen Gradle Plugin (similar configured as here) To get the Java files generated I have to trigger the specific task manually. Is there any way to include a Gradle task into the IntelliJ project build process? 来源: https://stackoverflow.com/questions/44717328/automatically-run-gradle-task-in-project-build-with-intellij-idea

How to view source code of Gradle tasks defined in plugins using Android Studio?

送分小仙女□ 提交于 2019-12-22 09:55:56
问题 In Android Studio Gradle tab I'm able to find run task from application plugin. I want to view source code of this task. Right click -> Jump to Source is disabled for this task. How to view source code of tasks defined in plugins using Android Studio? 来源: https://stackoverflow.com/questions/48796388/how-to-view-source-code-of-gradle-tasks-defined-in-plugins-using-android-studio

Gradle plugin doesn't work in Intellij IDEA (Calculate task graph)?

自作多情 提交于 2019-12-22 05:01:03
问题 The problem is that the Gradle plugin in Intellij IDEA doesn't work with my project. If I use "Gradle build" in the command line it works perfectly but if I try to build the project with the Gradle plugin in Intellij IDEA it doesn't work. It shows some error on the task "Calculate task graph". What is it? Why it doesn't work? Here is console output: 6:21:57 PM: Executing external tasks 'gradle build'... FAILURE: Build failed with an exception. * What went wrong: Task 'gradle' not found in

Gradle sync failed: Failed to update Android plugin to version '2.0.0'

烂漫一生 提交于 2019-12-21 13:00:34
问题 I've recently updated Android Studio to 2.0. I am working on a part time course and I have to work on a project provided. When gradle tried to build the project a dialog popped up asking me to update the android studio gradle plugin. When I clicked update, I got an error which is in the title. My gradle files are as follows: Gradle Wrapper: #Wed Sep 30 11:56:02 PDT 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists

How to set checkstyle configuration from Gradle in IDEA

岁酱吖の 提交于 2019-12-21 05:31:27
问题 I am using the Checkstyle plugin in IDEA. I want to set up different checkstyle configurations to my different modules. I am using gradle as build tool-version 4- and I want to write a task that modifies the corresponding .iml files of the modules. Any idea how to do that? My very first attempt in modifying the iml file looking over here apply plugin: 'idea' task setCheckStylePluginSettings { group = "Idea" description = "Copies CheckStyle plugin settings to Idea workspace." println "Step 1."

Can i disable Firebase plugin for specific flavor?

半腔热情 提交于 2019-12-21 03:43:11
问题 I'm currently trying out the Firebase analytics suit, but, i have faced one small issue, my app is distributed on both google play and amazon store (which doesn't support google play services), so for the amazon flavor i want to remove the dependency to Firebase (which i already know how to do), but, i also need to remove the Firebase plugin, so that it doesn't throw an exception while building. This is what i have as far now: productFlavors { google { applicationId 'google app id' } amazon {

Difference apply from vs apply plugin

痴心易碎 提交于 2019-12-20 11:57:13
问题 Is there a difference except that: apply from: - gets the (plugin).gradle from a URL apply plugin: - gets the (plugin).gradle from the gradle plugin server 回答1: The actual difference between apply from: and apply plugin: is that the former is to be used for script plugins given a path to the local file system or a URL to a remote location, and the latter is used for binary plugins using the plugin id. You can read more about it in Gradle documentation here. 回答2: apply from: calls the script