forked from JesusMcCloud/netlayer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
115 lines (107 loc) · 4.46 KB
/
pom.xml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?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>org.berndpruenster.netlayer</groupId>
<artifactId>parent</artifactId>
<version>0.4.9-pre</version>
<packaging>pom</packaging>
<name>Netlayer</name>
<properties>
<!-- General -->
<java.version>1.6</java.version>
<kotlin.version>1.3.0</kotlin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Maven plugins -->
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
<tor-binary.version>8.0.3</tor-binary.version>
<force-update-tor-binaries>false</force-update-tor-binaries>
</properties>
<modules>
<module>tor</module>
<module>tor.native</module>
<module>tor.external</module>
</modules>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>tor-binary</id>
<url>https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>com.github.guardianproject</groupId>
<artifactId>jsocks</artifactId>
<version>9ae7520</version>
</dependency>
<dependency>
<groupId>io.github.microutils</groupId>
<artifactId>kotlin-logging</artifactId>
<version>1.6.10</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.honton.chas</groupId>
<artifactId>exists-maven-plugin</artifactId>
<version>0.0.6</version>
<configuration>
<project>com.cedricwalter:tor-binary-windows:${tor-binary.version}</project>
<artifact>tor-binary-windows-${tor-binary.version}.pom</artifact>
<property>tor-binary-exists</property>
<skip>${force-update-tor-binaries}</skip>
</configuration>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>local</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-compress</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>fetch tor-binaries</id>
<phase>generate-resources</phase>
<configuration>
<target unless="${tor-binary-exists}">
<get
src="https://github.com/JesusMcCloud/tor-binary/archive/master.zip"
dest="${project.build.directory}/tor-binary.zip"
skipexisting="true"/>
<unzip src="${project.build.directory}/tor-binary.zip" dest="${project.build.directory}/"/>
<exec dir="${project.build.directory}/tor-binary-master/" executable="mvn" failonerror="true">
<arg line="install -Drevision=${tor-binary.version}"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>