use strict;
use warnings;
use Module::Build;

my $builder = Module::Build->new(
    module_name         => 'App::podweaver',
    license             => 'perl',
    dist_author         => q{Sam Graham <libapp-podweaver-perl@illusori.co.uk>},
    dist_version_from   => 'lib/App/podweaver.pm',
    script_files        => 'script',
    build_requires => {
        'Test::More'        => 0,
        'Test::MockObject'  => 0,
        'Test::Differences' => 0,
        #  File::Temp->newdir() requires 0.18.
        'File::Temp'        => 0.18,
        'File::Spec'        => 0,
        'File::Copy'        => 0,
        'Pod::Elemental::Selectors' => 0,
        'Pod::Elemental::Transformer::Nester' => 0,
        'Software::License::Perl_5' => 0,
    },
    requires => {
        'CPAN::Meta'  => 0,
        'Pod::Weaver' => 0,
        'File::Find::Rule'       => 0,
        'File::Find::Rule::Perl' => 0,
        'File::Find::Rule::VCS'  => 0,
        'File::Slurp' => 0,
        'IO::File'    => 0,
        'Log::Any'    => 0,
        'Log::Any::Adapter' => 0,
        'Log::Any::Adapter::Dispatch' => 0,
        'Module::Build::ModuleInfo' => 0,
        'Pod::Elemental' => 0,
        'Pod::Elemental::Transformer::Pod5' => 0,
        'PPI::Document'  => 0,
        'Try::Tiny'   => 0,
    },
    recommends => {
        'Pod::Weaver::PluginBundle::ReplaceBoilerplate' => 0,
    },
    add_to_cleanup      => [ 'App-podweaver-*' ],
    sign => 1,
    dynamic_config => 0,
);

$builder->create_build_script();
