https://github.com/dirkgroot/zuniq
https://github.com/dirkgroot/zuniq
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dirkgroot/zuniq
- Owner: dirkgroot
- Created: 2020-07-08T16:38:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-11T11:49:32.000Z (over 5 years ago)
- Last Synced: 2025-03-12T00:46:39.610Z (over 1 year ago)
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic CodeCup Java project setup with Maven
### Introduction
[CodeCup](https://codecup.nl) contestants must submit their code in one single file. This repository contains
a basic project setup using Apache Maven. This setup is made for contestants who want to split up their implementation
into multiple files/classes. A source merger is included, which merges all source files into 1 single file. Import
statements are deduplicated and placed at the top of the generated source file.
### Rules
For this to work, the source files must follow a few simple rules:
* Only one public class may exist. Typically, this will be the class containing the `main` method (`Zuniq` in this case).
All other classes must have default (package) visibility.
* All source files must reside in the default package. In this setup, this means that all source files
reside in the `zuniq-player/src/main/java` directory.
### Generating the merged source file
The merge source file can be generated by simply executing the following command in the project root directory:
```shell script
mvn package
```
The merged source file will be saved in `zuniq-player/target`.