com.lightbend.lagom.maven.ConfigureMojo.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lagom-maven-plugin Show documentation
Show all versions of lagom-maven-plugin Show documentation
Provides Lagom development environment support to maven.
/*
* Copyright (C) 2016-2017 Lightbend Inc.
*/
package com.lightbend.lagom.maven
import javax.inject.Inject
import org.apache.maven.execution.MavenSession
import scala.beans.BeanProperty
/**
* Internal goal, invoked by other Lagom mojos that work with multiple projects at once, to read plugin configuration
* for a project and set up the projects context values.
*/
class ConfigureMojo @Inject() (session: MavenSession) extends LagomAbstractMojo {
@BeanProperty
var lagomService: Boolean = _
@BeanProperty
var playService: Boolean = _
override def execute(): Unit = {
LagomKeys.LagomService.put(session.getCurrentProject, lagomService)
LagomKeys.PlayService.put(session.getCurrentProject, playService)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy