aboutsummaryrefslogtreecommitdiffhomepage
path: root/paper-server/src/assembly/bootstrap.xml
blob: f8980991f5795c35bbe8384f66734e80cb1541a4 (plain)
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
59
60
61
62
63
64
65
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">

    <id>bootstrap</id>

    <formats>
        <format>jar</format>
    </formats>

    <includeBaseDirectory>false</includeBaseDirectory>

    <files>
        <file>
            <destName>libraries.list</destName>
            <outputDirectory>META-INF</outputDirectory>
            <source>${project.build.directory}/dependencies-checksums.sha</source>
        </file>
        <file>
            <destName>versions.list</destName>
            <outputDirectory>META-INF</outputDirectory>
            <source>${project.build.directory}/artifacts-checksums.sha</source>
        </file>
    </files>

    <fileSets>
        <fileSet>
            <directory>${project.basedir}/src/assembly/META-INF</directory>
            <filtered>true</filtered>
            <outputDirectory>META-INF</outputDirectory>
        </fileSet>
    </fileSets>

    <dependencySets>
        <!-- libraries -->
        <dependencySet>
            <excludes>
                <exclude>org.spigotmc:minecraft-server</exclude>
            </excludes>
            <outputDirectory>META-INF/libraries</outputDirectory>
            <useProjectArtifact>false</useProjectArtifact>
        </dependencySet>

        <!-- main jar -->
        <dependencySet>
            <includes>
                <include>${project.groupId}:${project.artifactId}</include>
            </includes>
            <outputDirectory>META-INF/versions</outputDirectory>
        </dependencySet>

        <!-- bootstrap -->
        <dependencySet>
            <includes>
                <include>${project.groupId}:${project.artifactId}</include>
            </includes>
            <unpack>true</unpack>
            <unpackOptions>
                <includes>
                    <include>org/bukkit/craftbukkit/bootstrap/**</include>
                </includes>
            </unpackOptions>
        </dependencySet>
    </dependencySets>
</assembly>