Skip to content

Commit

Permalink
only inject once
Browse files Browse the repository at this point in the history
  • Loading branch information
rxdn committed Feb 4, 2020
1 parent 6e8b3bd commit d5f21b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
}

group 'com.perkelle.dev.dependencymanager'
version '1.0.7'
version '1.0.8'

sourceCompatibility = 1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ public void load(Runnable onComplete, Consumer<Exception> onError) {
if(!cached.exists()) {
cached.createNewFile();
download(owner, cached, inject, onError);
} else {
inject.accept(cached);
}

inject.accept(cached);
} catch(Exception ex) {
onError.accept(ex);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: DependencyManager
main: com.perkelle.dev.dependencymanager.DependencyManagerPlugin
version: 1.0.7
version: 1.0.8

0 comments on commit d5f21b2

Please sign in to comment.