Giter VIP home page Giter VIP logo

hashcode-submit-gradle-plugin's Introduction

โš ๏ธ The HashCode competition will no longer be organized by Google, so the value of this repository is greatly reduced, and thus the repo is archived. Feel free to reuse the code for some other competitive programming that require the zipped sources, though.

HashCode Submit Gradle Plugin

Gradle plugin version Github Build License

A Gradle plugin to help submit solutions to the Google HashCode competition

This plugin adds 3 tasks:

  • srcZip: creates a ZIP file for all sources from the main source set
  • runAllInputs: runs your main class, passing all input files from the input folder as arguments
  • submit: an empty task that just depends on both srcZip and runAllInputs

The locations of the input files and output ZIP file are configurable (see below).

Prerequisites

  • the Java or Kotlin plugin, to determine the main source set
  • the application plugin (to define your main class)

Usage

Apply the plugin this way:

plugins {
    application
    id("org.hildan.hashcode-submit") version "0.2.0"
}

application {
    mainClass.set("com.example.MainKt")
}

Additional configuration and its default values:

hashcode {
    // directory where all input files reside
    inputsDir = Paths.get("${project.projectDir}/inputs")
    // the path to the ZIP file of the sources
    srcZipFile = Paths.get("${project.projectDir}/outputs/sources.zip")
}

hashcode-submit-gradle-plugin's People

Contributors

joffrey-bion avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar  avatar

hashcode-submit-gradle-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.