Skip to content

Commit

Permalink
switch to component annotations and update dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Oct 16, 2019
1 parent f948e3a commit 9473964
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
17 changes: 11 additions & 6 deletions extras/groovy-eclipse-compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
<artifactId>maven-plugin-api</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
Expand All @@ -66,17 +71,17 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-api</artifactId>
<version>2.8.2</version>
<version>2.8.5</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
<version>1.7.1</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>1.7.1</version>
<version>2.0.0</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -106,7 +111,7 @@
<requireMavenVersion>
<version>[3.0.0,)</version>
</requireMavenVersion>
<!-- TODO: maven-compiler-plugin [3.6.2,) or tycho-compiler-plugin [1.?.0,) <https://bugs.eclipse.org/bugs/show_bug.cgi?id=548409> -->
<!-- TODO: maven-compiler-plugin [3.6.2,) or tycho-compiler-plugin [1.5.0,) -->
</rules>
</configuration>
</execution>
Expand All @@ -115,7 +120,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<version>3.1.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -138,7 +143,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
<executions>
<execution>
<id>attach-sources</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,20 @@
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;

/**
* Adds <tt>src/main/groovy</tt> and <tt>src/test/groovy</tt> as source folders.
*
* @goal add-groovy-build-paths
* @phase initialize
* @since 2.6.0
* @threadSafe
*/
@Mojo(name = "add-groovy-build-paths", defaultPhase = LifecyclePhase.INITIALIZE, requiresProject = true, threadSafe = true)
public class AddGroovySourceFolders extends AbstractMojo {

/**
* @parameter property="project"
* @readonly
* @required
*/
@Parameter(defaultValue = "${project}", readonly = true, required = true)
private MavenProject project;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public String[] createCommandLine(CompilerConfiguration config) throws CompilerE
args.put("-target", target.trim());
}
}
// TODO: Maven 3.7.1: <multiReleaseOutput>
// TODO: Maven Compiler 3.7.1: <multiReleaseOutput>

if (config.isShowDeprecation()) {
args.put("-deprecation", null);
Expand Down

0 comments on commit 9473964

Please sign in to comment.