[groovy] IDEA-274512: Fix broken pom.xml for JavaFX/Groovy projects

GitOrigin-RevId: cb1632966b7c85100b3fc5db8c29d53d0c753b31
This commit is contained in:
Konstantin Nisht
2021-12-23 17:42:16 +03:00
committed by intellij-monorepo-bot
parent c4740502f9
commit 0d81337c49

View File

@@ -116,6 +116,22 @@
<testSourceDirectory>${context.asPlaceholder("project.basedir")}/src/test/kotlin</testSourceDirectory>
#end
<plugins>
#if ($context.hasLanguage("groovy"))<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>${context.getVersion("org.codehaus.gmavenplus", "gmavenplus-plugin")}</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>compile</goal>
<goal>compileTests</goal>
</goals>
</execution>
</executions>
</plugin>#end
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -124,6 +140,16 @@
<source>${context.sdkFeatureVersion}</source>
<target>${context.sdkFeatureVersion}</target>
</configuration>
#if ($context.hasLanguage("groovy"))
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
#end
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
@@ -145,21 +171,6 @@
</execution>
</executions>
</plugin>
#if ($context.hasLanguage("groovy"))<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>${context.getVersion("org.codehaus.gmavenplus", "gmavenplus-plugin")}</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>compile</goal>
<goal>compileTests</goal>
</goals>
</execution>
</executions>
</plugin>#end
#if ($context.hasLanguage("kotlin"))<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>