Skip to content

axel3rd/mpg-grandslam-populator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Build Quality Gate Status Security Analysis

MPG GrandSlam Populator

Routines to populate MPG GrandSlam database.

Usage

  1. Prerequisite: java should be installed and on your PATH.
  2. Download package grandslam-populator-batch-x.y.jar (via Releases button on right of this page).
  3. Provide application.properties file in same directory (see below for details).
  4. Execute:
java -jar grandslam-populator-batch-x.y.jar

Configuration

File application.properties (commented option are optional):

# MPG credentials
mpg.email = foo.bar@gmail.com
mpg.password = KXXXXXXXU

# Database connection
spring.datasource.url = jdbc:mysql://localhost:3306/db
spring.datasource.username = foo
spring.datasource.password = bar

# Only check MPG data to evaluate leagues/users includes/excludes.
# Use '--job.check.only=true' as command line parameter
#job.check.only = true

# Include/exclude leagues
#mpg.leagues.include = KX24XMUJ,KLGXSSUM
#mpg.leagues.exclude = LJT3FXDX

# Include/exclude users (MPG id) ; by default users intersection of leagues is used
#mpg.users.include = 955966
#mpg.users.exclude = 1570437,2237823




# Default logs
#logging.level.root=WARN
#logging.level.o.s.batch.core.job.SimpleStepHandler=INFO
#logging.level.org.blonding.mpg=INFO

# Temporary display all SQL queries
#spring.jpa.properties.hibernate.format_sql = true
#logging.level.org.hibernate.SQL = DEBUG

Build process

Prerequisite:

  1. Java
  2. Maven

Execute:

mvn package

Release:

git reset --hard origin/main 
git branch -m next-version 
mvn -B clean release:clean release:prepare -Dusername=yourGitHubLogin -Dpassword=yourGitHubPasswordOrToken

After that, you would have to create pull-request from next-version branch and rebase it on main for next version development.