View Javadoc

1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util;
17  
18  /**
19   * Simple pojo representing a Maven dependency.
20   */
21  public class Dependency {
22  
23  	String groupId;
24  	String artifactId;
25  	String version;
26  	String classifier;
27  	// Type is usually the same thing as "packaging" from the Artifact object, but not always.
28  	// For example, "test-jar" is physically packaged into a jar file but is labeled in the Maven
29  	// dependency list as <type>test-jar</type>
30  	String type;
31  	String scope;
32  
33  	public String getGroupId() {
34  		return groupId;
35  	}
36  
37  	public void setGroupId(String groupId) {
38  		this.groupId = groupId;
39  	}
40  
41  	public String getArtifactId() {
42  		return artifactId;
43  	}
44  
45  	public void setArtifactId(String artifactId) {
46  		this.artifactId = artifactId;
47  	}
48  
49  	public String getVersion() {
50  		return version;
51  	}
52  
53  	public void setVersion(String version) {
54  		this.version = version;
55  	}
56  
57  	public String getClassifier() {
58  		return classifier;
59  	}
60  
61  	public void setClassifier(String classifier) {
62  		this.classifier = classifier;
63  	}
64  
65  	public String getType() {
66  		return type;
67  	}
68  
69  	public void setType(String type) {
70  		this.type = type;
71  	}
72  
73  	public String getScope() {
74  		return scope;
75  	}
76  
77  	public void setScope(String scope) {
78  		this.scope = scope;
79  	}
80  
81  }