Giter VIP home page Giter VIP logo

ok-gradle's People

Contributors

babedev avatar marcinqualaroo avatar scana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ok-gradle's Issues

Why the dependency on Android support?

This isn't a big issue, but I'm curious why the plugin depends on Android support being enabled in IntelliJ - seems like it should work with any Gradle project, android or not.

compile is deprecated

with gradle 3.0.0 using compile is deprecated, it has changed to 'implementation'

doesn't working correclty with build.gradle.kts

The plugin does work while searching for dependency.
But adding a selected dependency to build.gradle.kts does not work.

"Add Dependency" shows a "select module" dialog box but it is disabled and we cannot select anything from it.
"Copy dependency" copies the groovy syntax to the clipboard in stead of the expected Kotllin syntax.

Add support for libraries with annotation processors

Some libraries requires annotationProcessor statements beside compile statements.

For example:

dependencies {
  compile 'com.google.dagger:dagger:2.x'
  annotationProcessor 'com.google.dagger:dagger-compiler:2.x'
}

Automatically add dependency to build.gradle

It would be nice if the dependency was automatically added to the the build.gradle file after searching for it. This could bring some complications for mutli-module projects but should work fine for projects without modules.

dependency for root build.gradle

hello
thanks for the awesome library!

I have a question - does this library helps with suggesting which dependency comes from, I mean sometimes I also need to add to root build.gradle something like this:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

is there a plan for supporting it?

Allow multiple dependencies

Hello
Great plugin, but can you add ability to find many dependencies at one time?
It might be helpful, when creating new project

Add More Suggestions, Please!

First of all, thank you for this plugin. I use it frequently and makes me happy in my daily development. However, It would be nice if you can provide multiple dependency suggestions for keywords.

Here when I type picasso, It didn't find our beloved Picasso from Square but suggested another one.

okgradle

Add Button to "insert here"

Often I use "Ok, Gradle" inside of a build.gradle file, when I'm already at the position to insert the dependency. Would be nice to have a button to do this, instead of copying the dependency and then have to paste it.

Maybe reuse the "OK" button therefore. IMHO this button is not intuitve, since it just closes the dialog. That's not what I expect. Even more when the tool is called "Ok, Gradle", then I would expect the magic happens on "OK".

This proposal is probably an rival to #4

Compatibility with build.gradle.kts

Hello @scana !

I want to try your plugin next week, it seems super useful.

One thing is that half of my Gradle is in Groovy (build.gradle) while the other half is in Kotlin (build.gradle.kts).

As you can see here, it's almost the same except for the parenthesis and double quotes (like in java) instead of single quotes)

https://github.com/jmfayard/gradle-kotlin-dsl-libs/blob/50dace493f87711e1fead346160a9dcf12d3cd43/build.gradle.kts#L40-L49

-implementation 'com.square.retrofit:retrofit2:2.3.0'
+implementation("com.square.retrofit:retrofit2:2.3.0")

Actually the latter syntax is totally valid in a build.gradle too!

I could try to submit a pull request if you are interested

Doesn't work if no project is open

IDE: Android Studio 3.6 RC 1
OS: Windows 10 1909
OK, Gradle! version: 0.3.0

Steps to reproduce

  1. Launch Android Studio, but don't open any project.
  2. Using Ctrl + Shift + A shortcut, launch OK, Gradle! action.
  3. OK, Gradle! window doesn't open. In IDE Fatal Errors window, see the following stack trace:
kotlin.TypeCastException: null cannot be cast to non-null type com.intellij.openapi.project.Project
	at me.scana.okgradle.OkGradleAction.actionPerformed(OkGradleAction.kt:29)
	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:265)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:282)
	at com.intellij.ide.actions.GotoActionAction.lambda$performAction$7(GotoActionAction.java:335)
	at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:82)
	at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:106)
	at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:115)
	at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransactionLater$4(TransactionGuardImpl.java:268)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:433)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:416)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:878)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:827)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:466)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:465)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Expected behavior

OK, Gradle! window gets opened and it's possible to search for dependencies.

P.S. It looks like the plugin requires a project to be open. In that case, it works as usual.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.