Commits
md_5 authored a9ab8a946d9
5 5 | |
6 6 | <groupId>org.spigotmc</groupId> |
7 7 | <artifactId>builder</artifactId> |
8 8 | <packaging>jar</packaging> |
9 9 | <version>1.0-SNAPSHOT</version> |
10 10 | |
11 11 | <name>BuildTools</name> |
12 12 | <description></description> |
13 13 | |
14 14 | <properties> |
15 + | <build.number>unknown</build.number> |
15 16 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
16 17 | </properties> |
17 18 | |
18 19 | <dependencies> |
19 20 | <dependency> |
20 21 | <groupId>com.custardsource.dybdob</groupId> |
21 22 | <artifactId>java-diff-utils-copy</artifactId> |
22 23 | <version>1.0.1</version> |
23 24 | </dependency> |
24 25 | <dependency> |
58 59 | <dependency> |
59 60 | <groupId>com.google.code.gson</groupId> |
60 61 | <artifactId>gson</artifactId> |
61 62 | <version>2.3.1</version> |
62 63 | </dependency> |
63 64 | </dependencies> |
64 65 | |
65 66 | <build> |
66 67 | <finalName>${project.name}</finalName> |
67 68 | <plugins> |
69 + | <plugin> |
70 + | <groupId>net.md-5</groupId> |
71 + | <artifactId>scriptus</artifactId> |
72 + | <version>0.2</version> |
73 + | <configuration> |
74 + | <format>git-${project.name}-%s-${build.number}</format> |
75 + | </configuration> |
76 + | <executions> |
77 + | <execution> |
78 + | <phase>initialize</phase> |
79 + | <goals> |
80 + | <goal>describe</goal> |
81 + | </goals> |
82 + | </execution> |
83 + | </executions> |
84 + | </plugin> |
68 85 | <plugin> |
69 86 | <groupId>org.apache.maven.plugins</groupId> |
70 87 | <artifactId>maven-compiler-plugin</artifactId> |
71 88 | <version>3.1</version> |
72 89 | <configuration> |
73 90 | <source>1.6</source> |
74 91 | <target>1.6</target> |
75 92 | </configuration> |
76 93 | </plugin> |
77 94 | <plugin> |
78 95 | <groupId>org.apache.maven.plugins</groupId> |
79 96 | <artifactId>maven-jar-plugin</artifactId> |
80 97 | <version>2.5</version> |
81 98 | <configuration> |
82 99 | <archive> |
83 100 | <manifestEntries> |
84 - | <Main-Class>org.spigotmc.builder.Builder</Main-Class> |
101 + | <Main-Class>org.spigotmc.builder.Builder</Main-Class> |
102 + | <Implementation-Version>${describe}</Implementation-Version> |
85 103 | </manifestEntries> |
86 104 | </archive> |
87 105 | </configuration> |
88 106 | </plugin> |
89 107 | <plugin> |
90 108 | <groupId>org.apache.maven.plugins</groupId> |
91 109 | <artifactId>maven-shade-plugin</artifactId> |
92 110 | <version>2.3</version> |
93 111 | <executions> |
94 112 | <execution> |