Skip to content

Commit ff4da53

Browse files
committed
Refactor bloated project structure
1 parent 52b9a44 commit ff4da53

File tree

216 files changed

+107
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+107
-194
lines changed

pom.xml

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@
6060
</properties>
6161

6262
<modules>
63-
<module>webrtc</module>
6463
<module>webrtc-jni</module>
64+
<module>webrtc</module>
6565
<module>webrtc-demo</module>
66-
<module>webrtc-native</module>
6766
</modules>
6867

6968
<build>
@@ -92,6 +91,12 @@
9291
<goals>
9392
<goal>sign</goal>
9493
</goals>
94+
<configuration>
95+
<gpgArguments>
96+
<arg>--pinentry-mode</arg>
97+
<arg>loopback</arg>
98+
</gpgArguments>
99+
</configuration>
95100
</execution>
96101
</executions>
97102
</plugin>
@@ -172,15 +177,9 @@
172177
<version>3.0.0-M4</version>
173178
</plugin>
174179
<plugin>
175-
<groupId>org.sonatype.plugins</groupId>
176-
<artifactId>nexus-staging-maven-plugin</artifactId>
177-
<version>1.6.8</version>
178-
<extensions>true</extensions>
179-
<configuration>
180-
<serverId>ossrh</serverId>
181-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
182-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
183-
</configuration>
180+
<groupId>org.apache.maven.plugins</groupId>
181+
<artifactId>maven-deploy-plugin</artifactId>
182+
<version>3.0.0-M1</version>
184183
</plugin>
185184
<plugin>
186185
<groupId>org.codehaus.mojo</groupId>
@@ -221,6 +220,45 @@
221220
</plugins>
222221
</build>
223222
</profile>
223+
<profile>
224+
<id>windows-x86_64</id>
225+
<activation>
226+
<os>
227+
<family>windows</family>
228+
<arch>amd64</arch>
229+
</os>
230+
</activation>
231+
<properties>
232+
<platform.classifier>windows-x86_64</platform.classifier>
233+
<platform.module>windows.x86_64</platform.module>
234+
</properties>
235+
</profile>
236+
<profile>
237+
<id>linux-x86_64</id>
238+
<activation>
239+
<os>
240+
<family>linux</family>
241+
<arch>amd64</arch>
242+
</os>
243+
</activation>
244+
<properties>
245+
<platform.classifier>linux-x86_64</platform.classifier>
246+
<platform.module>linux.x86_64</platform.module>
247+
</properties>
248+
</profile>
249+
<profile>
250+
<id>mac-x86_64</id>
251+
<activation>
252+
<os>
253+
<family>mac</family>
254+
<arch>x86_64</arch>
255+
</os>
256+
</activation>
257+
<properties>
258+
<platform.classifier>macos-x86_64</platform.classifier>
259+
<platform.module>macos.x86_64</platform.module>
260+
</properties>
261+
</profile>
224262
</profiles>
225263

226264
<reporting>
@@ -250,5 +288,4 @@
250288
<scope>test</scope>
251289
</dependency>
252290
</dependencies>
253-
254291
</project>

webrtc-demo/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@
2424
<version>${project.version}</version>
2525
</dependency>
2626
</dependencies>
27-
2827
</project>

webrtc-jni/pom.xml

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,73 @@
99
</parent>
1010

1111
<artifactId>webrtc-java-jni</artifactId>
12+
<packaging>pom</packaging>
1213

1314
<properties>
14-
<download.cmake>true</download.cmake>
1515
<webrtc.branch>branch-heads/3987</webrtc.branch>
1616
<webrtc.src>${user.home}/webrtc</webrtc.src>
1717
</properties>
1818

1919
<build>
2020
<plugins>
21+
<plugin>
22+
<groupId>org.apache.maven.plugins</groupId>
23+
<artifactId>maven-jar-plugin</artifactId>
24+
<executions>
25+
<execution>
26+
<phase>install</phase>
27+
<goals>
28+
<goal>jar</goal>
29+
</goals>
30+
<configuration>
31+
<classifier>${platform.classifier}</classifier>
32+
<classesDirectory>${project.build.directory}/lib</classesDirectory>
33+
<archive>
34+
<addMavenDescriptor>false</addMavenDescriptor>
35+
<manifestEntries>
36+
<Automatic-Module-Name>${platform.module}</Automatic-Module-Name>
37+
</manifestEntries>
38+
</archive>
39+
</configuration>
40+
</execution>
41+
</executions>
42+
</plugin>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-install-plugin</artifactId>
46+
<version>2.5.2</version>
47+
<executions>
48+
<execution>
49+
<id>install-classifier</id>
50+
<phase>install</phase>
51+
<goals>
52+
<goal>install-file</goal>
53+
</goals>
54+
<configuration>
55+
<file>${project.build.directory}/${project.artifactId}-${project.version}-${platform.classifier}.jar</file>
56+
<classifier>${platform.classifier}</classifier>
57+
<groupId>${project.groupId}</groupId>
58+
<artifactId>webrtc-java</artifactId>
59+
<version>${project.version}</version>
60+
<packaging>jar</packaging>
61+
<generatePom>false</generatePom>
62+
</configuration>
63+
</execution>
64+
</executions>
65+
</plugin>
2166
<plugin>
2267
<groupId>com.googlecode.cmake-maven-project</groupId>
2368
<artifactId>cmake-maven-plugin</artifactId>
2469
<version>3.14.5-b1</version>
2570
<executions>
2671
<execution>
2772
<id>cmake-generate</id>
28-
<phase>process-resources</phase>
73+
<phase>generate-resources</phase>
2974
<goals>
3075
<goal>generate</goal>
3176
</goals>
3277
<configuration>
33-
<sourcePath>.</sourcePath>
78+
<sourcePath>src/main/cpp</sourcePath>
3479
<targetPath>${project.build.directory}/${platform}-${build.type}</targetPath>
3580
<classifier>${cmake.classifier}</classifier>
3681
<options>
@@ -44,15 +89,14 @@
4489
-DWEBRTC_SRC_DIR=${webrtc.src}
4590
</option>
4691
<option>
47-
-DCMAKE_INSTALL_PREFIX=${project.parent.basedir}/webrtc-native/${platform}/src/main/resources/lib
92+
-DCMAKE_INSTALL_PREFIX=${project.build.directory}/lib
4893
</option>
4994
</options>
50-
<downloadBinaries>${download.cmake}</downloadBinaries>
5195
</configuration>
5296
</execution>
5397
<execution>
5498
<id>cmake-compile</id>
55-
<phase>process-resources</phase>
99+
<phase>generate-resources</phase>
56100
<goals>
57101
<goal>compile</goal>
58102
</goals>
File renamed without changes.

webrtc-native/linux-x86_64/pom.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

webrtc-native/macos-x86_64/pom.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

webrtc-native/pom.xml

Lines changed: 0 additions & 49 deletions
This file was deleted.

webrtc-native/windows-x86_64/pom.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

webrtc/pom.xml

Lines changed: 8 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -28,58 +28,12 @@
2828
</plugins>
2929
</build>
3030

31-
<profiles>
32-
<profile>
33-
<id>linux-x86_64</id>
34-
<activation>
35-
<os>
36-
<family>unix</family>
37-
<name>Linux</name>
38-
<arch>amd64</arch>
39-
</os>
40-
</activation>
41-
<dependencies>
42-
<dependency>
43-
<groupId>dev.onvoid.webrtc</groupId>
44-
<artifactId>webrtc-java-linux-x86_64</artifactId>
45-
<version>${project.version}</version>
46-
<scope>compile</scope>
47-
</dependency>
48-
</dependencies>
49-
</profile>
50-
<profile>
51-
<id>mac-x86_64</id>
52-
<activation>
53-
<os>
54-
<family>mac</family>
55-
<arch>x86_64</arch>
56-
</os>
57-
</activation>
58-
<dependencies>
59-
<dependency>
60-
<groupId>dev.onvoid.webrtc</groupId>
61-
<artifactId>webrtc-java-macos-x86_64</artifactId>
62-
<version>${project.version}</version>
63-
<scope>compile</scope>
64-
</dependency>
65-
</dependencies>
66-
</profile>
67-
<profile>
68-
<id>windows-x86_64</id>
69-
<activation>
70-
<os>
71-
<family>windows</family>
72-
<arch>amd64</arch>
73-
</os>
74-
</activation>
75-
<dependencies>
76-
<dependency>
77-
<groupId>dev.onvoid.webrtc</groupId>
78-
<artifactId>webrtc-java-windows-x86_64</artifactId>
79-
<version>${project.version}</version>
80-
<scope>compile</scope>
81-
</dependency>
82-
</dependencies>
83-
</profile>
84-
</profiles>
31+
<dependencies>
32+
<dependency>
33+
<groupId>${project.groupId}</groupId>
34+
<artifactId>${project.artifactId}</artifactId>
35+
<version>${project.version}</version>
36+
<classifier>${platform.classifier}</classifier>
37+
</dependency>
38+
</dependencies>
8539
</project>

0 commit comments

Comments
 (0)