diff --git a/architecture-documentation/src/main/java/org/ndx/aadarchi/ViewUpdater.java b/architecture-documentation/src/main/java/org/ndx/aadarchi/ViewUpdater.java index 3cfe4f09..040c4ced 100644 --- a/architecture-documentation/src/main/java/org/ndx/aadarchi/ViewUpdater.java +++ b/architecture-documentation/src/main/java/org/ndx/aadarchi/ViewUpdater.java @@ -5,14 +5,11 @@ import javax.inject.Inject; import org.ndx.aadarchi.base.OutputBuilder; -import org.ndx.aadarchi.base.ViewEnhancer; -import org.ndx.aadarchi.base.ehancers.ViewEnhancerAdapter; -import com.structurizr.Workspace; +import org.ndx.aadarchi.base.enhancers.ViewEnhancerAdapter; + import com.structurizr.view.ComponentView; import com.structurizr.view.ContainerView; -import com.structurizr.view.View; -import com.structurizr.view.ViewSet; public class ViewUpdater extends ViewEnhancerAdapter { @Inject Logger logger; diff --git a/github-scm-handler/src/main/java/org/ndx/aadarchi/github/GitHubProducer.java b/github-scm-handler/src/main/java/org/ndx/aadarchi/github/GitHubProducer.java index 973e0f99..2e3182c7 100644 --- a/github-scm-handler/src/main/java/org/ndx/aadarchi/github/GitHubProducer.java +++ b/github-scm-handler/src/main/java/org/ndx/aadarchi/github/GitHubProducer.java @@ -3,6 +3,8 @@ import static org.ndx.aadarchi.github.Constants.CONFIG_GITHUB_TOKEN; import java.io.IOException; +import java.net.MalformedURLException; +import java.net.URL; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.Produces; @@ -20,7 +22,9 @@ public class GitHubProducer { public @Produces @ApplicationScoped GitHub initialize(@ConfigProperty(name=CONFIG_GITHUB_TOKEN) String token) { if(token==null || token.isBlank()) { - throw new GitHubHandlerException(String.format("Can't connect to GitHub if token %s isn't defined as system property", Constants.CONFIG_GITHUB_TOKEN)); + throw new GitHubHandlerException(String.format("Can't connect to GitHub if token %s isn't defined as system property" + + "\nSee https://github.com/Riduidel/aadarchi/wiki/How-to-add-aadarchi.github.token for details", + Constants.CONFIG_GITHUB_TOKEN)); } try { return new GitHubBuilder().withOAuthToken(token).build();