         "pp" 'eclim-project-mode
         "pu" 'eclim-project-update
 
-        "tt" 'eclim-run-junit)))
-
-  (use-package company-emacs-eclim
-    :if (configuration-layer/package-usedp 'company)
-    :defer t
-    :init
-    (push 'company-emacs-eclim company-backends-java-mode)))
+        "tt" 'eclim-run-junit))))
 
 (defun java/post-init-ggtags ()
   (add-hook 'java-mode-local-vars-hook #'spacemacs/ggtags-mode-enable))


(defun java/post-init-company ()
  (spacemacs|add-company-hook java-mode))

(defun java/init-eclim ()
  (use-package eclim

(setq java-packages
      '(
        company
        (company-emacs-eclim :toggle (configuration-layer/package-usedp 'company))
        eclim
        ggtags
        helm-gtags
