-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMcGitVersionExtension.java
More file actions
58 lines (45 loc) · 1.42 KB
/
McGitVersionExtension.java
File metadata and controls
58 lines (45 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package io.github.opencubicchunks.gradle;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class McGitVersionExtension {
boolean configured;
private Boolean snapshot;
private String versionSuffix = "";
private String forceVersionString;
private String mcVersion;
private final Map<String, String> commitVersions = new HashMap<>();
public void setCommitVersion(String commit, String version) {
this.commitVersions.put(commit, version);
}
public Map<String, String> getCommitVersions() {
return Collections.unmodifiableMap(commitVersions);
}
public void setMcVersion(String mcVersion) {
this.mcVersion = mcVersion;
}
public String getMcVersion() {
return this.mcVersion;
}
public boolean isSnapshot() {
return snapshot;
}
public void setSnapshot(boolean snapshot) {
this.configured = true;
this.snapshot = snapshot;
}
public String getVersionSuffix() {
return versionSuffix;
}
public void setVersionSuffix(String versionSuffix) {
this.configured = true;
this.versionSuffix = versionSuffix;
}
public String getForceVersionString() {
return forceVersionString;
}
public void setForceVersionString(String forceVersionString) {
this.configured = true;
this.forceVersionString = forceVersionString;
}
}