Feed codacy
This commit is contained in:
parent
ef8fd70475
commit
19e0e6d962
@ -57,7 +57,7 @@ class BaritoneGradleTask extends DefaultTask {
|
|||||||
String artifactName, artifactVersion;
|
String artifactName, artifactVersion;
|
||||||
Path artifactPath, artifactUnoptimizedPath, artifactApiPath, artifactStandalonePath, proguardOut;
|
Path artifactPath, artifactUnoptimizedPath, artifactApiPath, artifactStandalonePath, proguardOut;
|
||||||
|
|
||||||
void verifyArtifacts() throws Exception {
|
void verifyArtifacts() throws IllegalStateException {
|
||||||
this.artifactName = getProject().getName();
|
this.artifactName = getProject().getName();
|
||||||
this.artifactVersion = getProject().getVersion().toString();
|
this.artifactVersion = getProject().getVersion().toString();
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ class BaritoneGradleTask extends DefaultTask {
|
|||||||
this.proguardOut = this.getTemporaryFile(PROGUARD_EXPORT_PATH);
|
this.proguardOut = this.getTemporaryFile(PROGUARD_EXPORT_PATH);
|
||||||
|
|
||||||
if (!Files.exists(this.artifactPath)) {
|
if (!Files.exists(this.artifactPath)) {
|
||||||
throw new Exception("Artifact not found! Run build first!");
|
throw new IllegalStateException("Artifact not found! Run build first!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user