

def register_goals():
    ng_killall = task(name='ng-killall', action=NailgunKillall)
    ng_killall.install()
    Goal.by_name('invalidate').install(ng_killall, first=True)
    Goal.by_name('clean-all').install(ng_killall, first=True)
    task(name='jar-dependency-management', action=JarDependencyManagementSetup).install('bootstrap')
    task(name='jvm-platform-explain', action=JvmPlatformExplain).install('jvm-platform-explain')
    task(name='jvm-platform-validate', action=JvmPlatformValidate).install('jvm-platform-validate')
    task(name='bootstrap-jvm-tools', action=BootstrapJvmTools).install('bootstrap')
    task(name='zinc', action=ZincCompile).install('compile')
    task(name='ivy', action=IvyResolve).install('resolve', first=True)
    task(name='ivy-imports', action=IvyImports).install('imports')
    task(name='unpack-jars', action=UnpackJars).install()
    task(name='prepare', action=PrepareResources).install('resources')
    task(name='services', action=PrepareServices).install('resources')
    task(name='export-classpath', action=RuntimeClasspathPublisher).install()
    task(name='jvm-dep-check', action=JvmDependencyCheck).install('compile')
    task(name='jvm', action=JvmDependencyUsage).install('dep-usage')
    task(name='javadoc', action=JavadocGen).install('doc')
    task(name='scaladoc', action=ScaladocGen).install('doc')
    Goal.register('jar', 'Create a JAR file.')
    task(name='create', action=JarCreate).install('jar')
    detect_duplicates = task(name='dup', action=DuplicateDetector)
    task(name='jvm', action=BinaryCreate).install('binary')
    detect_duplicates.install('binary')
    task(name='jvm', action=BundleCreate).install('bundle')
    detect_duplicates.install('bundle')
    task(name='detect-duplicates', action=DuplicateDetector).install()
    task(name='check-published-deps', action=CheckPublishedDeps).install('check-published-deps')

    class CheckPublishedDepsDeprecated(CheckPublishedDeps):
        'DEPRECATED: Use the check-published-deps goal instead.'

        @deprecated('1.0.1', 'DEPRECATED: Use the check-published-deps goal instead.')
        def console_output(self, targets):
            return super(CheckPublishedDepsDeprecated, self).console_output(targets)
    task(name='check_published_deps', action=CheckPublishedDepsDeprecated).install('check_published_deps')
    task(name='jar', action=JarPublish).install('publish')
    task(name='junit', action=JUnitRun).install('test')
    task(name='bench', action=BenchmarkRun).install('bench')
    task(name='jvm', action=JvmRun, serialize=False).install('run')
    task(name='jvm-dirty', action=JvmRun, serialize=False).install('run-dirty')
    task(name='scala', action=ScalaRepl, serialize=False).install('repl')
    task(name='scala-dirty', action=ScalaRepl, serialize=False).install('repl-dirty')
    task(name='test-jvm-prep-command', action=RunTestJvmPrepCommand).install('test', first=True)
    task(name='binary-jvm-prep-command', action=RunBinaryJvmPrepCommand).install('binary', first=True)
    task(name='compile-jvm-prep-command', action=RunCompileJvmPrepCommand).install('compile', first=True)

dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/jvm/register.py register_goals/original