All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lightbend.lagom.maven.ConfigureMojo.scala Maven / Gradle / Ivy

There is a newer version: 1.6.8-RC1
Show newest version
/*
 * 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