File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed
components/ide/jetbrains/backend-plugin/src/main
kotlin/io/gitpod/jetbrains/remote/optional
resources-latest/META-INF Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 2
2
// Licensed under the GNU Affero General Public License (AGPL).
3
3
// See License-AGPL.txt in the project root for license information.
4
4
5
- package io.gitpod.jetbrains.remote.maven
5
+ package io.gitpod.jetbrains.remote.optional
6
6
7
7
import com.intellij.openapi.project.Project
8
8
import org.jetbrains.idea.maven.project.MavenProjectsManager
9
9
import com.intellij.openapi.diagnostic.thisLogger
10
+ import com.intellij.openapi.project.ProjectManagerListener
10
11
11
- class GitpodMavenProjectManager ( project : Project ) {
12
-
13
- init {
12
+ class GitpodMavenProjectManagerListener : ProjectManagerListener {
13
+ @Deprecated( " Deprecated. Need to findout the best way to replace it " )
14
+ override fun projectOpened ( project : Project ) {
14
15
thisLogger().warn(" gitpod: forcing initialization of maven project" )
15
16
MavenProjectsManager .getInstance(project).forceUpdateAllProjectsOrFindAllAvailablePomFiles()
16
17
thisLogger().warn(" gitpod: forced!" )
17
18
}
18
-
19
19
}
Original file line number Diff line number Diff line change 5
5
-->
6
6
<!-- suppress PluginXmlValidity -->
7
7
<idea-plugin >
8
- <depends optional =" true" >org.jetbrains.idea.maven</depends >
9
8
<extensions defaultExtensionNs =" com.intellij" >
10
9
<applicationService serviceInterface =" io.gitpod.jetbrains.remote.GitpodIgnoredPortsForNotificationService" serviceImplementation =" io.gitpod.jetbrains.remote.latest.GitpodIgnoredPortsForNotificationServiceImpl" preload =" true" />
11
10
<applicationService serviceInterface =" io.gitpod.jetbrains.remote.GitpodCLIHelper" serviceImplementation =" io.gitpod.jetbrains.remote.latest.GitpodCLIHelperImpl" />
12
11
<applicationService serviceInterface =" io.gitpod.jetbrains.remote.GitpodPortForwardingService" serviceImplementation =" io.gitpod.jetbrains.remote.latest.GitpodPortForwardingServiceImpl" client =" controller" preload =" true" />
13
12
<projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodClientProjectSessionTracker" client =" controller" preload =" true" />
14
13
<projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodTerminalService" client =" controller" preload =" true" />
15
- <projectService serviceImplementation =" io.gitpod.jetbrains.remote.maven.GitpodMavenProjectManager" client =" controller" preload =" true" />
16
14
</extensions >
17
15
<actions >
18
16
<action id =" io.gitpod.jetbrains.remote.latest.GitpodCopyUrlAction"
Original file line number Diff line number Diff line change 5
5
-->
6
6
<!-- suppress PluginXmlValidity -->
7
7
<idea-plugin >
8
- <extensions defaultExtensionNs =" com.intellij" >
9
- <projectService serviceImplementation =" io.gitpod.jetbrains.remote.maven.GitpodMavenProjectManager" preload =" true" />
10
- </extensions >
8
+ <applicationListeners >
9
+ <listener class =" io.gitpod.jetbrains.remote.optional.GitpodMavenProjectManagerListener"
10
+ topic =" com.intellij.openapi.project.ProjectManagerListener" />
11
+ </applicationListeners >
11
12
</idea-plugin >
Original file line number Diff line number Diff line change 12
12
<vendor >Gitpod</vendor >
13
13
<description >Provides integrations within a Gitpod workspace.</description >
14
14
15
-
16
15
<!-- Product and plugin compatibility requirements -->
17
16
<!-- https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html -->
18
17
<depends >com.intellij.modules.platform</depends >
18
+ <depends optional =" true" config-file =" maven.xml" >org.jetbrains.idea.maven</depends >
19
19
<dependencies >
20
20
<plugin id =" Git4Idea" />
21
21
<plugin id =" org.jetbrains.plugins.terminal" />
You can’t perform that action at this time.
0 commit comments