Skip to content

Commit b9c6cca

Browse files
committed
Fix proguard config with cli
1 parent 08d43ce commit b9c6cca

4 files changed

Lines changed: 32 additions & 47 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ deploy:
3737
- "modules/bcrypt/target/bcrypt-*.jar"
3838
- "modules/bcrypt/target/*.sha256"
3939
- "modules/bcrypt/target/checksum-sha256.txt"
40-
- "modules/bcrypt-cli/target/bcrypt-*.jar"
40+
- "modules/bcrypt-cli/target/bcrypt-*-full.jar"
4141
- "modules/bcrypt-cli/target/*.sha256"
4242
skip_cleanup: true
4343
on:

modules/bcrypt-cli/pom.xml

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,21 @@
2424
<build>
2525
<plugins>
2626
<plugin>
27-
<groupId>org.apache.maven.plugins</groupId>
28-
<artifactId>maven-shade-plugin</artifactId>
29-
<version>3.1.1</version>
27+
<groupId>com.github.chrisdchristo</groupId>
28+
<artifactId>capsule-maven-plugin</artifactId>
29+
<version>1.5.1</version>
30+
<configuration>
31+
<appClass>at.favre.lib.crypto.bcrypt.cli.BcryptTool</appClass>
32+
<fileDesc>-full</fileDesc>
33+
<type>fat</type>
34+
</configuration>
3035
<executions>
3136
<execution>
37+
<id>build-fat-jar</id>
3238
<phase>package</phase>
3339
<goals>
34-
<goal>shade</goal>
40+
<goal>build</goal>
3541
</goals>
36-
<configuration>
37-
<filters>
38-
<filter>
39-
<artifact>*:*</artifact>
40-
<excludes>
41-
<exclude>META-INF/*.SF</exclude>
42-
<exclude>META-INF/*.DSA</exclude>
43-
<exclude>META-INF/*.RSA</exclude>
44-
</excludes>
45-
</filter>
46-
</filters>
47-
<minimizeJar>true</minimizeJar>
48-
<createDependencyReducedPom>true</createDependencyReducedPom>
49-
<dependencyReducedPomLocation>
50-
${java.io.tmpdir}/dependency-reduced-pom.xml
51-
</dependencyReducedPomLocation>
52-
<transformers>
53-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
54-
<mainClass>at.favre.lib.crypto.bcrypt.cli.BcryptTool</mainClass>
55-
</transformer>
56-
</transformers>
57-
</configuration>
5842
</execution>
5943
</executions>
6044
</plugin>
@@ -87,6 +71,7 @@
8771
<groupId>at.favre.lib</groupId>
8872
<artifactId>bcrypt</artifactId>
8973
<version>0.5.0</version>
74+
<classifier>optimized</classifier>
9075
</dependency>
9176
<dependency>
9277
<groupId>commons-cli</groupId>

modules/bcrypt/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,26 @@
107107
</dependency>
108108
</dependencies>
109109
</plugin>
110+
<plugin>
111+
<groupId>org.apache.maven.plugins</groupId>
112+
<artifactId>maven-jarsigner-plugin</artifactId>
113+
<version>1.4</version>
114+
<executions>
115+
<execution>
116+
<id>sign</id>
117+
<goals>
118+
<goal>sign</goal>
119+
</goals>
120+
</execution>
121+
</executions>
122+
<configuration>
123+
<skip>${project.skipJarSign}</skip>
124+
<keystore>${session.executionRootDirectory}/keystore.jks</keystore>
125+
<alias>pfopensource</alias>
126+
<storepass>${env.OPENSOURCE_PROJECTS_KS_PW}</storepass>
127+
<keypass>${env.OPENSOURCE_PROJECTS_KEY_PW}</keypass>
128+
</configuration>
129+
</plugin>
110130
</plugins>
111131
</build>
112132

pom.xml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -116,26 +116,6 @@
116116
<artifactId>coveralls-maven-plugin</artifactId>
117117
<version>4.3.0</version>
118118
</plugin>
119-
<plugin>
120-
<groupId>org.apache.maven.plugins</groupId>
121-
<artifactId>maven-jarsigner-plugin</artifactId>
122-
<version>1.4</version>
123-
<executions>
124-
<execution>
125-
<id>sign</id>
126-
<goals>
127-
<goal>sign</goal>
128-
</goals>
129-
</execution>
130-
</executions>
131-
<configuration>
132-
<skip>${project.skipJarSign}</skip>
133-
<keystore>${session.executionRootDirectory}/keystore.jks</keystore>
134-
<alias>pfopensource</alias>
135-
<storepass>${env.OPENSOURCE_PROJECTS_KS_PW}</storepass>
136-
<keypass>${env.OPENSOURCE_PROJECTS_KEY_PW}</keypass>
137-
</configuration>
138-
</plugin>
139119
</plugins>
140120
</build>
141121

0 commit comments

Comments
 (0)