
com.github.ksoichiro.web.resource.extension.BowerDependency.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-web-resource-plugin Show documentation
Show all versions of gradle-web-resource-plugin Show documentation
Gradle plugin to use CoffeeScript, LESS and Bower libraries without Node.js/npm.
package com.github.ksoichiro.web.resource.extension
import groovy.transform.EqualsAndHashCode
import groovy.transform.ToString
/**
* Definition of a bower dependency.
*/
// @EqualsAndHashCode is required to execute valid up-to-date check.
@EqualsAndHashCode
@ToString
class BowerDependency implements Serializable {
static final long serialVersionUID = -1L
String name
String version
List filter
String cacheName
String outputName
/**
* Return the cache name.
* It will be {@code cacheName} if it's set, otherwise name will be returned.
*
* @return the name to be used as cache key
*/
String getCacheName() {
cacheName ?: name
}
/**
* Return the output name.
* It will be {@code outputName} if it's set, otherwise name will be returned.
*
* @return the name to be used as output directory
*/
String getOutputName() {
outputName ?: name
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy