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

de.gesellix.gradle.debian.tasks.Artifact.groovy Maven / Gradle / Ivy

package de.gesellix.gradle.debian.tasks

import groovy.transform.EqualsAndHashCode

@EqualsAndHashCode
class Artifact {

  String name
  String groupId
  String version
  String extension
  String type
  String classifier
  File file

  def getPath() {
    (groupId?.replaceAll('\\.', '/') ?: "") + "/$name/$version/$name-$version" + (classifier ? "-$classifier" : "") +
    (extension ? ".$extension" : "")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy