diff options
author | Erik De Rijcke <Erik.De.Rijcke@prodatamobility.com> | 2015-02-11 16:10:00 +0100 |
---|---|---|
committer | Erik De Rijcke <Erik.De.Rijcke@prodatamobility.com> | 2015-02-11 16:10:00 +0100 |
commit | 0a37fc775ab868c301e76c49f81d37a0c5472213 (patch) | |
tree | 9007faa556e4dc24d79ea3486b277efb08a8c2cd | |
parent | f8414a4219224521f7121c74c4df931d5a852147 (diff) |
use maven to build artifacts
-rw-r--r-- | generator/pom.xml | 51 | ||||
-rw-r--r-- | pom.xml | 29 | ||||
-rw-r--r-- | stubs/pom.xml | 62 | ||||
-rw-r--r-- | wayland/pom.xml | 86 |
4 files changed, 227 insertions, 1 deletions
diff --git a/generator/pom.xml b/generator/pom.xml index ec77fef..2a3abdf 100644 --- a/generator/pom.xml +++ b/generator/pom.xml @@ -13,6 +13,29 @@ <artifactId>generator</artifactId> + <licenses> + <license> + <name>Apache License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <scm> + <url>https://github.com/Zubnix/wayland-java-bindings.git</url> + </scm> + + <distributionManagement> + <snapshotRepository> + <id>ossrh</id> + <url>https://oss.sonatype.org/content/repositories/snapshots</url> + </snapshotRepository> + <repository> + <id>ossrh</id> + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> + </repository> + </distributionManagement> + <dependencies> <dependency> <groupId>com.google.guava</groupId> @@ -35,13 +58,41 @@ <plugins> <!--Stupid maven, we don't want to run the generator processor on itself... --> <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> + <version>3.2</version> <configuration> <source>1.6</source> <target>1.6</target> <compilerArgument>-proc:none</compilerArgument> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>2.4</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.1</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> </project>
\ No newline at end of file @@ -14,4 +14,33 @@ <module>generator</module> <module>wayland</module> </modules> + + <profiles> + <profile> + <id>release-sign-artifacts</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
\ No newline at end of file diff --git a/stubs/pom.xml b/stubs/pom.xml index 216442d..7ff8222 100644 --- a/stubs/pom.xml +++ b/stubs/pom.xml @@ -12,6 +12,29 @@ <artifactId>stubs</artifactId> + <licenses> + <license> + <name>Apache License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <scm> + <url>https://github.com/Zubnix/wayland-java-bindings.git</url> + </scm> + + <distributionManagement> + <snapshotRepository> + <id>ossrh</id> + <url>https://oss.sonatype.org/content/repositories/snapshots</url> + </snapshotRepository> + <repository> + <id>ossrh</id> + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> + </repository> + </distributionManagement> + <dependencies> <dependency> <groupId>com.google.code.findbugs</groupId> @@ -24,5 +47,42 @@ <version>4.1.0</version> </dependency> </dependencies> - + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>2.4</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.1</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> </project>
\ No newline at end of file diff --git a/wayland/pom.xml b/wayland/pom.xml index 2775234..072733d 100644 --- a/wayland/pom.xml +++ b/wayland/pom.xml @@ -12,6 +12,29 @@ <artifactId>wayland</artifactId> + <licenses> + <license> + <name>Apache License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <scm> + <url>https://github.com/Zubnix/wayland-java-bindings.git</url> + </scm> + + <distributionManagement> + <snapshotRepository> + <id>ossrh</id> + <url>https://oss.sonatype.org/content/repositories/snapshots</url> + </snapshotRepository> + <repository> + <id>ossrh</id> + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> + </repository> + </distributionManagement> + <dependencies> <dependency> <groupId>${project.groupId}</groupId> @@ -25,4 +48,67 @@ <scope>provided</scope> </dependency> </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>2.6.1</version> + <executions> + <execution> + <id>auto-clean</id> + <phase>process-resources</phase> + <goals> + <goal>clean</goal> + </goals> + </execution> + </executions> + <configuration> + <filesets> + <fileset> + <directory>${project.build.directory}/generated-sources/annotations</directory> + </fileset> + </filesets> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.2</version> + <configuration> + <source>1.6</source> + <target>1.6</target> + <generatedSourcesDirectory>${project.build.directory}/generated-sources/annotations + </generatedSourcesDirectory> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>2.4</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.1</version> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> </project>
\ No newline at end of file |