xref: /aosp_15_r20/external/brotli/java/org/brotli/dec/pom.xml (revision f4ee7fba7774faf2a30f13154332c0a06550dbc4)
1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3  <modelVersion>4.0.0</modelVersion>
4
5  <parent>
6    <groupId>org.brotli</groupId>
7    <artifactId>parent</artifactId>
8    <version>0.2.0-SNAPSHOT</version>
9  </parent>
10  <artifactId>dec</artifactId>
11  <version>0.2.0-SNAPSHOT</version>
12  <packaging>jar</packaging>
13
14  <name>${project.groupId}:${project.artifactId}</name>
15
16  <properties>
17    <manifestdir>${project.build.directory}/osgi</manifestdir>
18    <manifestfile>${manifestdir}/MANIFEST.MF</manifestfile>
19  </properties>
20
21  <build>
22    <sourceDirectory>../../..</sourceDirectory>
23    <testSourceDirectory>../../..</testSourceDirectory>
24    <plugins>
25      <plugin>
26        <groupId>org.apache.maven.plugins</groupId>
27        <artifactId>maven-compiler-plugin</artifactId>
28        <configuration>
29          <includes>
30            <include>org/brotli/dec/*.java</include>
31          </includes>
32          <excludes>
33            <exclude>**/*Test*.java</exclude>
34          </excludes>
35          <testIncludes>
36            <include>org/brotli/dec/*Test*.java</include>
37          </testIncludes>
38          <testExcludes>
39            <exclude>org/brotli/dec/SetDictionaryTest.java</exclude>
40          </testExcludes>
41        </configuration>
42      </plugin>
43      <plugin>
44        <groupId>org.apache.maven.plugins</groupId>
45        <artifactId>maven-surefire-plugin</artifactId>
46        <version>3.0.0-M3</version>
47        <configuration>
48          <systemPropertyVariables>
49            <BROTLI_ENABLE_ASSERTS>true</BROTLI_ENABLE_ASSERTS>
50          </systemPropertyVariables>
51        </configuration>
52      </plugin>
53      <plugin>
54        <groupId>org.apache.maven.plugins</groupId>
55        <artifactId>maven-source-plugin</artifactId>
56        <version>2.4</version>
57        <executions>
58          <execution>
59            <id>attach-sources</id>
60            <phase>verify</phase>
61            <goals>
62              <goal>jar-no-fork</goal>
63            </goals>
64            <configuration>
65              <includes>
66                <include>org/brotli/dec/*.java</include>
67              </includes>
68              <excludes>
69                <exclude>**/*Test*.java</exclude>
70              </excludes>
71            </configuration>
72          </execution>
73        </executions>
74      </plugin>
75      <plugin>
76        <groupId>org.apache.maven.plugins</groupId>
77        <artifactId>maven-javadoc-plugin</artifactId>
78        <version>2.10.4</version>
79        <executions>
80          <execution>
81            <id>attach-javadocs</id>
82            <phase>verify</phase>
83            <goals>
84              <goal>jar</goal>
85            </goals>
86            <configuration>
87              <sourcepath>.</sourcepath>
88              <sourceFileExcludes>
89                <exclude>**/*Test*.java</exclude>
90              </sourceFileExcludes>
91            </configuration>
92          </execution>
93        </executions>
94      </plugin>
95      <plugin>
96        <groupId>org.apache.felix</groupId>
97        <artifactId>maven-bundle-plugin</artifactId>
98        <version>3.0.1</version>
99        <configuration>
100          <archive>
101            <forced>true</forced>
102          </archive>
103          <excludeDependencies>true</excludeDependencies>
104          <manifestLocation>${manifestdir}</manifestLocation>
105          <instructions>
106            <_nouses>true</_nouses>
107            <Bundle-SymbolicName>org.brotli.${project.artifactId}</Bundle-SymbolicName>
108            <Bundle-Description>${project.description}</Bundle-Description>
109            <Export-Package>org.brotli.dec;version=${project.version};-noimport:=true</Export-Package>
110            <Private-Package></Private-Package>
111            <Import-Package>*</Import-Package>
112            <DynamicImport-Package></DynamicImport-Package>
113            <Bundle-DocURL>${project.url}</Bundle-DocURL>
114          </instructions>
115        </configuration>
116        <executions>
117          <execution>
118            <id>bundle-manifest</id>
119            <phase>process-classes</phase>
120            <goals>
121              <goal>manifest</goal>
122            </goals>
123          </execution>
124        </executions>
125      </plugin>
126      <plugin>
127        <groupId>org.apache.maven.plugins</groupId>
128        <artifactId>maven-jar-plugin</artifactId>
129        <version>2.5</version>
130        <configuration>
131          <archive>
132            <manifestFile>${manifestfile}</manifestFile>
133          </archive>
134        </configuration>
135      </plugin>
136      <plugin>
137        <artifactId>maven-resources-plugin</artifactId>
138        <version>3.1.0</version>
139        <executions>
140          <execution>
141            <id>copy-license</id>
142            <phase>validate</phase>
143            <goals>
144              <goal>copy-resources</goal>
145            </goals>
146            <configuration>
147              <outputDirectory>${project.build.outputDirectory}/META-INF</outputDirectory>
148              <resources>
149                <resource>
150                  <directory>../../../../</directory>
151                  <includes>
152                    <include>LICENSE</include>
153                  </includes>
154                  <filtering>false</filtering>
155                </resource>
156              </resources>
157            </configuration>
158          </execution>
159        </executions>
160      </plugin>
161    </plugins>
162  </build>
163
164  <dependencies>
165    <dependency>
166      <groupId>junit</groupId>
167      <artifactId>junit</artifactId>
168      <version>4.12</version>
169      <scope>test</scope>
170    </dependency>
171  </dependencies>
172</project>
173