Skip to content

Commit 41bbf85

Browse files
authored
override path for custom proguard
1 parent b36d05b commit 41bbf85

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<groupId>com.simpligility.maven.plugins</groupId>
2222
<artifactId>android-maven-plugin</artifactId>
23-
<version>4.6.1</version>
23+
<version>4.6.2</version>
2424
<packaging>maven-plugin</packaging>
2525

2626
<name>Android Maven Plugin - android-maven-plugin</name>

src/main/java/com/simpligility/maven/plugins/android/phase04processclasses/ProguardMojo.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.simpligility.maven.plugins.android.configuration.Proguard;
1212

1313
import org.apache.commons.io.IOUtils;
14+
import org.apache.commons.lang3.StringUtils;
1415
import org.apache.commons.lang3.SystemUtils;
1516
import org.apache.maven.artifact.Artifact;
1617
import org.apache.maven.plugin.MojoExecutionException;
@@ -763,6 +764,10 @@ private List< ProGuardInput > getLibraryInputFiles()
763764
@SuppressWarnings( "unused" ) // NB Used to populate the parsedProguardJarPath attribute via reflection.
764765
private String getProguardJarPath() throws MojoExecutionException
765766
{
767+
if ( !StringUtils.isEmpty( proguardProguardJarPath ) )
768+
{
769+
return proguardProguardJarPath;
770+
}
766771
return getProguardJarPathFromDependencies();
767772
}
768773

0 commit comments

Comments
 (0)