Skip to content

Commit c4ff831

Browse files
committed
Fix IDEA plugin's build
Remove dependencies on modules that no longer exist. Add new dependency for annotations jar that provides ApiStatus class. Closes gh-294
1 parent 923d931 commit c4ff831

File tree

2 files changed

+17
-13
lines changed
  • spring-javaformat-intellij-idea
    • spring-javaformat-intellij-idea-plugin
    • spring-javaformat-intellij-idea-runtime

2 files changed

+17
-13
lines changed

spring-javaformat-intellij-idea/spring-javaformat-intellij-idea-plugin/pom.xml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</dependency>
4343
<dependency>
4444
<groupId>io.spring.javaformat.intellij.idea</groupId>
45-
<artifactId>extensions</artifactId>
45+
<artifactId>annotations</artifactId>
4646
<version>${project.version}</version>
4747
<scope>provided</scope>
4848
</dependency>
@@ -58,18 +58,6 @@
5858
<version>${project.version}</version>
5959
<scope>provided</scope>
6060
</dependency>
61-
<dependency>
62-
<groupId>io.spring.javaformat.intellij.idea</groupId>
63-
<artifactId>platform-util-ui</artifactId>
64-
<version>${project.version}</version>
65-
<scope>provided</scope>
66-
</dependency>
67-
<dependency>
68-
<groupId>io.spring.javaformat.intellij.idea</groupId>
69-
<artifactId>platform-service-container</artifactId>
70-
<version>${project.version}</version>
71-
<scope>provided</scope>
72-
</dependency>
7361
<dependency>
7462
<groupId>io.spring.javaformat.intellij.idea</groupId>
7563
<artifactId>util</artifactId>

spring-javaformat-intellij-idea/spring-javaformat-intellij-idea-runtime/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,22 @@
133133
<groupId>org.apache.maven.plugins</groupId>
134134
<artifactId>maven-install-plugin</artifactId>
135135
<executions>
136+
<execution>
137+
<id>install-intellij-annotations</id>
138+
<phase>install</phase>
139+
<inherited>false</inherited>
140+
<goals>
141+
<goal>install-file</goal>
142+
</goals>
143+
<configuration>
144+
<file>${project.build.directory}/intellij/annotations.jar</file>
145+
<groupId>io.spring.javaformat.intellij.idea</groupId>
146+
<artifactId>annotations</artifactId>
147+
<version>${project.version}</version>
148+
<packaging>jar</packaging>
149+
<generatePom>true</generatePom>
150+
</configuration>
151+
</execution>
136152
<execution>
137153
<id>install-intellij-platform-api</id>
138154
<phase>install</phase>

0 commit comments

Comments
 (0)