Package io.micronaut.build.services
Class CompilerService
- java.lang.Object
-
- io.micronaut.build.services.CompilerService
-
@Singleton public class CompilerService extends Object
Provides methods to compile a Maven project- Since:
- 1.1
- Author:
- Álvaro Sánchez-Mariscal
-
-
Field Summary
Fields Modifier and Type Field Description static String
GMAVEN_PLUS_PLUGIN
static String
KOTLIN_MAVEN_PLUGIN
static String
MAVEN_COMPILER_PLUGIN
static String
MAVEN_RESOURCES_PLUGIN
-
Constructor Summary
Constructors Constructor Description CompilerService(org.apache.maven.project.MavenProject mavenProject, org.apache.maven.execution.MavenSession mavenSession, ExecutorService executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Long>
compileProject(boolean copyResources)
boolean
needsCompilation()
Map<String,Path>
resolveSourceDirectories()
-
-
-
Field Detail
-
MAVEN_COMPILER_PLUGIN
public static final String MAVEN_COMPILER_PLUGIN
- See Also:
- Constant Field Values
-
MAVEN_RESOURCES_PLUGIN
public static final String MAVEN_RESOURCES_PLUGIN
- See Also:
- Constant Field Values
-
GMAVEN_PLUS_PLUGIN
public static final String GMAVEN_PLUS_PLUGIN
- See Also:
- Constant Field Values
-
KOTLIN_MAVEN_PLUGIN
public static final String KOTLIN_MAVEN_PLUGIN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CompilerService
@Inject public CompilerService(org.apache.maven.project.MavenProject mavenProject, org.apache.maven.execution.MavenSession mavenSession, ExecutorService executorService)
-
-