Skip to content

Commit 2c2dc80

Browse files
erenalpaslanmehmet6parmakappcent
authored andcommitted
Feature/GitHub actions (#59)
1. Fix package without dependency issue with maven plugins Co-authored-by: Eren <[email protected]>
1 parent 32b66ec commit 2c2dc80

File tree

3 files changed

+54
-25
lines changed

3 files changed

+54
-25
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
hs_err_pid*
2424

2525
.idea/
26+
target/

pom.xml

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,21 @@
66

77
<groupId>mobi.appcent</groupId>
88
<artifactId>helium-java-sdk</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.0.0-SNAPSHOT</version>
10+
11+
<repositories>
12+
<repository>
13+
<id>github</id>
14+
<name>GitHub Packages</name>
15+
<url>https://maven.pkg.github.com/AppcentMobile/helium-java-sdk</url>
16+
<releases>
17+
<enabled>true</enabled>
18+
</releases>
19+
<snapshots>
20+
<enabled>true</enabled>
21+
</snapshots>
22+
</repository>
23+
</repositories>
1024

1125
<distributionManagement>
1226
<repository>
@@ -21,6 +35,43 @@
2135
<maven.compiler.target>8</maven.compiler.target>
2236
</properties>
2337

38+
<build>
39+
<plugins>
40+
<plugin>
41+
<groupId>org.apache.maven.plugins</groupId>
42+
<artifactId>maven-jar-plugin</artifactId>
43+
<version>2.4</version>
44+
<configuration>
45+
<archive>
46+
<manifest>
47+
<addClasspath>true</addClasspath>
48+
<classpathPrefix>lib/</classpathPrefix>
49+
</manifest>
50+
</archive>
51+
</configuration>
52+
</plugin>
53+
<plugin>
54+
<groupId>org.apache.maven.plugins</groupId>
55+
<artifactId>maven-dependency-plugin</artifactId>
56+
<version>2.4</version>
57+
<executions>
58+
<execution>
59+
<id>copy</id>
60+
<phase>process-resources</phase>
61+
<goals>
62+
<goal>copy-dependencies</goal>
63+
</goals>
64+
<configuration>
65+
<outputDirectory>
66+
${project.build.directory}/lib
67+
</outputDirectory>
68+
</configuration>
69+
</execution>
70+
</executions>
71+
</plugin>
72+
</plugins>
73+
</build>
74+
2475
<dependencies>
2576
<dependency>
2677
<groupId>com.squareup.okhttp3</groupId>
@@ -51,7 +102,7 @@
51102
<dependency>
52103
<groupId>org.projectlombok</groupId>
53104
<artifactId>lombok</artifactId>
54-
<version>RELEASE</version>
105+
<version>1.18.24</version>
55106
<scope>compile</scope>
56107
</dependency>
57108
</dependencies>

src/main/java/mobi/appcent/helium/Main.java

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

0 commit comments

Comments
 (0)