/** * Assembles the artifact class * * @return Assembled dependency */ public Artifact build() { if (StringUtils.isBlank(name)) { throw new IllegalArgumentException("Artifact must have a name"); } Artifact artifact = new Artifact(); artifact.setName(name); artifact.setType(type); artifact.setSha1(sha1); artifact.setMd5(md5); artifact.setProperties(properties); return artifact; }
/** * Assembles the artifact class * * @return Assembled dependency */ public Artifact build() { if (StringUtils.isBlank(name)) { throw new IllegalArgumentException("Artifact must have a name"); } Artifact artifact = new Artifact(); artifact.setName(name); artifact.setType(type); artifact.setSha1(sha1); artifact.setMd5(md5); artifact.setProperties(properties); return artifact; }