]> gerrit.simantics Code Review - simantics/platform.git/blob - releng/org.simantics.tycho.configuration/pom.xml
Support signing of platform external dependencies and SDK
[simantics/platform.git] / releng / org.simantics.tycho.configuration / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4         <modelVersion>4.0.0</modelVersion>
5         <groupId>org.simantics</groupId>
6         <artifactId>org.simantics.tycho.configuration</artifactId>
7         <version>1.0.0-SNAPSHOT</version>
8         <packaging>pom</packaging>
9
10         <properties>
11                 <tycho.version>1.5.0</tycho.version>
12                 <tycho.extras.version>1.5.0</tycho.extras.version>
13                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14         </properties>
15
16         <repositories>
17         </repositories>
18
19         <pluginRepositories>
20                 <pluginRepository>
21                         <id>graph-builder-snapshot</id>
22                         <name>Graph Builder Repository</name>
23                         <url>https://repo.simupedia.com/repository/graph-builder-release</url>
24                         <layout>default</layout>
25                         <releases>
26                                 <updatePolicy>never</updatePolicy>
27                         </releases>
28                         <snapshots>
29                                 <updatePolicy>always</updatePolicy>
30                         </snapshots>
31                 </pluginRepository>
32         </pluginRepositories>
33
34         <build>
35                 <plugins>
36                         <plugin>
37                                 <groupId>org.eclipse.tycho</groupId>
38                                 <artifactId>tycho-maven-plugin</artifactId>
39                                 <version>${tycho.version}</version>
40                                 <extensions>true</extensions>
41                         </plugin>
42                         <plugin>
43                                 <groupId>org.eclipse.tycho</groupId>
44                                 <artifactId>tycho-versions-plugin</artifactId>
45                                 <version>${tycho.version}</version>
46                         </plugin>
47                         <plugin>
48                                 <groupId>org.eclipse.tycho</groupId>
49                                 <artifactId>tycho-packaging-plugin</artifactId>
50                                 <version>${tycho.version}</version>
51                                 <configuration>
52                                         <format>'v'yyyyMMdd-HHmmss</format>
53                                 </configuration>
54                         </plugin>
55                         <plugin>
56                                 <groupId>org.eclipse.tycho</groupId>
57                                 <artifactId>target-platform-configuration</artifactId>
58                                 <version>${tycho.version}</version>
59                                 <configuration>
60                                         <includePackedArtifacts>true</includePackedArtifacts>
61                                         <target>
62                                                 <artifact>
63                                                         <groupId>org.simantics</groupId>
64                                                         <artifactId>org.simantics.sdk.build.targetdefinition</artifactId>
65                                                         <version>1.0.0-SNAPSHOT</version>
66                                                 </artifact>
67                                         </target>
68                                         <environments>
69                                                 <environment>
70                                                         <os>linux</os>
71                                                         <ws>gtk</ws>
72                                                         <arch>x86_64</arch>
73                                                 </environment>
74                                                 <environment>
75                                                         <os>win32</os>
76                                                         <ws>win32</ws>
77                                                         <arch>x86_64</arch>
78                                                 </environment>
79                                                 <environment>
80                                                         <os>macosx</os>
81                                                         <ws>cocoa</ws>
82                                                         <arch>x86_64</arch>
83                                                 </environment>
84                                         </environments>
85                                 </configuration>
86                         </plugin>
87                         <plugin>
88                                 <groupId>org.eclipse.tycho.extras</groupId>
89                                 <artifactId>tycho-source-feature-plugin</artifactId>
90                                 <version>${tycho.extras.version}</version>
91                         </plugin>
92                         <plugin>
93                                 <groupId>org.eclipse.tycho.extras</groupId>
94                                 <artifactId>tycho-pack200b-plugin</artifactId>
95                                 <version>${tycho.extras.version}</version>
96                                 <executions>
97                                         <execution>
98                                                 <id>pack200-pack</id>
99                                                 <goals>
100                                                         <goal>pack</goal>
101                                                 </goals>
102                                         </execution>
103                                 </executions>
104                         </plugin>
105                         <plugin>
106                                 <groupId>org.eclipse.tycho</groupId>
107                                 <artifactId>tycho-p2-plugin</artifactId>
108                                 <version>${tycho.version}</version>
109                                 <executions>
110                                         <execution>
111                                                 <id>attach-p2-metadata</id>
112                                                 <phase>package</phase>
113                                                 <goals>
114                                                         <goal>p2-metadata</goal>
115                                                 </goals>
116                                         </execution>
117                                 </executions>
118                                 <configuration>
119                                         <defaultP2Metadata>false</defaultP2Metadata>
120                                 </configuration>
121                         </plugin>
122                 </plugins>
123         </build>
124
125         <profiles>
126                 <profile>
127                         <id>sign</id>
128                         <activation>
129                                 <property>
130                                         <name>sign</name>
131                                         <value>true</value>
132                                 </property>
133                         </activation>
134                         <build>
135                                 <plugins>
136                                         <plugin>
137                                                 <groupId>org.codehaus.mojo</groupId>
138                                                 <artifactId>properties-maven-plugin</artifactId>
139                                                 <version>1.0.0</version>
140                                                 <executions>
141                                                         <execution>
142                                                                 <phase>initialize</phase>
143                                                                 <goals>
144                                                                         <goal>read-project-properties</goal>
145                                                                 </goals>
146                                                         </execution>
147                                                 </executions>
148                                                 <configuration>
149                                                         <files>
150                                                                 <file>${sign.properties}</file>
151                                                         </files>
152                                                 </configuration>
153                                         </plugin>
154                                         <plugin>
155                                                 <groupId>org.apache.maven.plugins</groupId>
156                                                 <artifactId>maven-jarsigner-plugin</artifactId>
157                                                 <version>3.0.0</version>
158                                                 <executions>
159                                                         <execution>
160                                                                 <id>sign</id>
161                                                                 <goals>
162                                                                         <goal>sign</goal>
163                                                                         <goal>verify</goal>
164                                                                 </goals>
165                                                         </execution>
166                                                 </executions>
167                                         </plugin>
168                                 </plugins>
169                         </build>
170                 </profile>
171         </profiles>
172 </project>