Skip to content

WettkampfDB/Domain-Objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Domain-Objects

Build Release

This repository contains domain objects which are used for data transfer between multiple services of the WettkampfDB domain. You can add domain-objects to your project by adding one of the following dependencies:

Maven

Add the following to your pom.xml file:

<dependency>
  <groupId>de.wettkampfdb</groupId>
  <artifactId>domain-objects</artifactId>
  <version>x.x.x</version>
</dependency>
Gradle

Add the following to your build.gradle file:

repositories {
    maven {
        url "https://maven.pkg.github.com/WettkampfDB/Domain-Objects"
        credentials {
            username = System.getenv("GITHUB_USERNAME")
            password = System.getenv("GITHUB_TOKEN")
        }
    }
}

dependencies {
    implementation "de.wettkampfdb:domain-objects:x.x.x"
}

Usage

You can create a simple Competition by invoking the .builder() method:

Competition competition = Competition.builder()
            .name("Test Marathon")
            .startDate(LocalDate.now())
            .endDate(LocalDate.now())
            .url("https://www.wettkampfdb.de")
            .build();