private static SourceDirectorySet getSmithySourceDirectory()

in src/main/java/software/amazon/smithy/gradle/SmithyUtils.java [107:115]


    private static SourceDirectorySet getSmithySourceDirectory(Project project, String name) {
        // Grab a list of all the files and directories to mark as sources.
        return (SourceDirectorySet) project.getConvention()
                .getPlugin(JavaPluginConvention.class)
                .getSourceSets()
                .getByName(name)
                .getExtensions()
                .getByName(SMITHY_SOURCE_SET_EXTENSION);
    }