@VisibleForTesting
    static Optional<Dependency> parseDependency(String line) {
        Matcher dependencyMatcher = SHADE_INCLUDE_MODULE_PATTERN.matcher(line);
        if (!dependencyMatcher.find()) {
            return Optional.empty();
        }

        return Optional.of(
                Dependency.create(
                        dependencyMatcher.group("groupId"),
                        dependencyMatcher.group("artifactId"),
                        dependencyMatcher.group("version"),
                        dependencyMatcher.group("classifier")));
    }
@Test
    void testLineParsingVersion() {
        assertThat(
                        ShadeParser.parseDependency(
                                "Including external:dependency1:jar:1.0 in the shaded jar."))
                .hasValueSatisfying(
                        dependency -> assertThat(dependency.getVersion()).isEqualTo("1.0"));
    }