adding in version and authority checks
[gitmo/MooseX-Storage.git] / Build.PL
1 use Module::Build;
2
3 use strict;
4
5 my $build = Module::Build->new(
6     module_name => 'MooseX::Storage',
7     license => 'perl',
8     requires => {   
9         'Moose'        => '0.20',
10         # you should have at least one 
11         # serialization format
12         'JSON::Any'    => '0',
13         'Best'         => '0', # << this if for loading YAML
14         # and the ability to save the 
15         # file to disk        
16         'IO::File'     => '0',        
17     },
18     optional => {
19         'IO::AtomicFile'    => '0',  
20         # these are only used in the 
21         # test, I recommend them, but 
22         # there is no need to force 
23         # them on people :)
24         'Test::YAML::Valid' => '0',
25         'Test::JSON'        => '0',        
26     },
27     build_requires => {
28         'Test::More'       => '0.62',
29         'Test::Exception'  => '0.21',
30     },
31     create_makefile_pl => 'traditional',
32     recursive_test_files => 1,
33     add_to_cleanup => [
34         'META.yml', '*.bak', '*.gz', 'Makefile.PL',
35     ],
36 );
37
38 $build->create_build_script;
39