summaryrefslogtreecommitdiffstats
path: root/lib/Dist/CheckConflicts.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Dist/CheckConflicts.pm')
-rw-r--r--lib/Dist/CheckConflicts.pm13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Dist/CheckConflicts.pm b/lib/Dist/CheckConflicts.pm
index ac860c7..03aaf80 100644
--- a/lib/Dist/CheckConflicts.pm
+++ b/lib/Dist/CheckConflicts.pm
@@ -3,9 +3,13 @@ use strict;
use warnings;
# ABSTRACT: declare version conflicts for your dist
+use Exporter 'import';
+our @EXPORT = our @EXPORT_OK = (
+ qw(conflicts check_conflicts calculate_conflicts dist)
+);
+
use Carp;
use List::MoreUtils 'first_index';
-use Sub::Exporter;
=head1 SYNOPSIS
@@ -82,13 +86,6 @@ loaded before or afterwards).
=cut
-my $import = Sub::Exporter::build_exporter({
- exports => [ qw(conflicts check_conflicts calculate_conflicts dist) ],
- groups => {
- default => [ qw(conflicts check_conflicts calculate_conflicts dist) ],
- },
-});
-
my %CONFLICTS;
my %HAS_CONFLICTS;
my %DISTS;