Skip to content

Instantly share code, notes, and snippets.

@electrum
Created October 12, 2015 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electrum/b359bc9149b8e7e91a7a to your computer and use it in GitHub Desktop.
Save electrum/b359bc9149b8e7e91a7a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>example</groupId>
<artifactId>example</artifactId>
<version>1.0</version>
<properties>
<dep.swift.version>0.15.1</dep.swift.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.facebook.mojo</groupId>
<artifactId>swift-maven-plugin</artifactId>
<version>${dep.swift.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<idlFiles>
<directory>${project.basedir}/idl</directory>
<includes>
<include>*.thrift</include>
</includes>
</idlFiles>
<defaultPackage>${project.groupId}.thrift</defaultPackage>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.facebook.swift</groupId>
<artifactId>swift-annotations</artifactId>
<version>${dep.swift.version}</version>
</dependency>
<dependency>
<groupId>com.facebook.swift</groupId>
<artifactId>swift-codec</artifactId>
<version>${dep.swift.version}</version>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment