Skip to content

Commit 4be03a2

Browse files
committedJan 10, 2021
Updated to new gradle packages and new gradle.
Updated main workflow and makefile.
1 parent f0a4c43 commit 4be03a2

File tree

8 files changed

+59
-49
lines changed

8 files changed

+59
-49
lines changed
 

‎CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ The format is based on [Keep a Changelog][Keep a Changelog], and this project ad
2323
- Updated workflow for gitmodules for all jobs.
2424
- Added `--remote` `--merge` to submodule update in workflow.
2525
- Updated build scripts.
26+
- Updated to new gradle packages and new gradle.
27+
- Updated main workflow and makefile.
2628

2729
## [0.0.3] - 2021-01-05
2830

‎static-to-copy/.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
java-version: '15.0.0'
1818
architecture: x64
1919
- run: java -version
20-
- name: Make javacode
21-
run: make javacode
20+
- name: Make java-code
21+
run: make java-code
2222
build-pythoncode:
2323
name: pythoncode
2424
runs-on: ${{ matrix.os }}
@@ -36,8 +36,8 @@ jobs:
3636
architecture: 'x64'
3737
- run: python --version
3838
- run: pip install -r requirements.txt
39-
- name: Make pythoncode
40-
run: make pythoncode
39+
- name: Make python-code
40+
run: make python-code
4141
build-csharpcode:
4242
name: csharpcode
4343
runs-on: ${{ matrix.os }}
@@ -57,5 +57,5 @@ jobs:
5757
python-version: '3.9'
5858
architecture: 'x64'
5959
- run: dotnet --version
60-
- name: Make csharpcode
61-
run: make csharpcode
60+
- name: Make csharp-code
61+
run: make csharp-code

‎static-to-copy/Makefile

+38-18
Original file line numberDiff line numberDiff line change
@@ -13,64 +13,84 @@ endif
1313
# Java code tasks
1414
#*****************
1515

16-
javadependencies:
16+
java-dependencies:
1717
${workspaceFolder}${gradlewScript} dependencies
1818

19-
javabuild:
19+
java-build:
2020
${workspaceFolder}${gradlewScript} build
2121

22-
javatest:
22+
java-test:
2323
${workspaceFolder}${gradlewScript} test
2424

25-
javaclean:
25+
java-clean:
2626
${workspaceFolder}${gradlewScript} clean
2727

28-
javatestcoverage:
28+
java-test-coverage:
2929
${workspaceFolder}${gradlewScript} test jacocoJupTestReport
3030

31-
javacode: javadependencies javaclean javatestcoverage
31+
java-code: java-dependencies java-clean java-test-coverage
3232

3333
#*****************
3434
# C# code tasks
3535
#*****************
3636

37-
xunittests:
37+
csharp-xunit-tests:
3838
python ${workspaceFolder}scripts/run_xunit_tests.py
3939

40-
csharpcode: xunittests
40+
csharp-code: csharp-xunit-tests
4141

4242
#*******************
4343
# Python code tasks
4444
#*******************
4545

46-
pythonrequirements:
46+
python-requirements:
4747
pip install -r requirements.txt
4848

49-
pythontests:
49+
python-tests:
5050
python ${workspaceFolder}scripts/run_unit_tests.py
5151

52-
pythontestcoverage:
52+
python-test-coverage:
5353
coverage run ${workspaceFolder}scripts/run_unit_tests.py
5454

55-
pythoncode: pythontestcoverage
55+
python-code: python-test-coverage
5656

5757
#*****************
5858
# Project tasks
5959
#*****************
6060

61-
getproblemscount:
61+
get-problems-count:
6262
python ${workspaceFolder}scripts/get_problems_count.py
6363

64-
get-git-submodules:
65-
git submodule update --init --recursive --remote --merge
64+
#*****************
65+
# Git tasks
66+
#*****************
67+
68+
git-version:
69+
git --version
70+
71+
git-upgrade-ubuntu:
72+
sudo apt-get install software-properties-common
73+
sudo add-apt-repository ppa:git-core/ppa -y
74+
sudo apt-get update
75+
sudo apt-get upgrade
76+
sudo apt-get install git -y
77+
git --version
78+
79+
git-submodules-setup:
80+
git submodule sync --recursive
81+
git submodule foreach --recursive git fetch
82+
git submodule foreach git pull
83+
84+
git-get-submodules:
85+
git submodule update --init --recursive --remote --rebase
6686

6787
#*****************
6888
# All tasks
6989
#*****************
7090

71-
git: get-git-submodules
91+
git: git-version git-get-submodules
7292

73-
code: javacode pythoncode csharpcode
93+
code: java-code python-code csharp-code
7494

75-
all: git getproblemscount code
95+
all: git get-problems-count code
7696

‎static-to-copy/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
10+
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.3'
1111
}
1212
}
1313

1414
plugins {
15-
id "org.sonarqube" version "2.6"
15+
id "org.sonarqube" version "3.0"
1616
}
1717

1818
repositories {
@@ -23,11 +23,11 @@ repositories {
2323
mavenCentral()
2424
}
2525

26-
ext.junit4Version = '4.12'
26+
ext.junit4Version = '4.13.1'
2727
ext.junitVintageVersion = '4.12.1'
2828
ext.junitPlatformVersion = '1.5.2'
29-
ext.junitJupiterVersion = '5.5.2'
30-
ext.log4jVersion = '2.9.0'
29+
ext.junitJupiterVersion = '5.7.0'
30+
ext.log4jVersion = '2.14.0'
3131

3232
apply plugin: 'java'
3333
apply plugin: 'eclipse'
@@ -98,7 +98,7 @@ dependencies {
9898
//testRuntimeOnly("org.junit.platform:junit-platform-launcher:${junitPlatformVersion}")
9999

100100
// To avoid compiler warnings about @API annotations in JUnit code
101-
testCompileOnly('org.apiguardian:apiguardian-api:1.0.0')
101+
testCompileOnly('org.apiguardian:apiguardian-api:1.1.1')
102102
implementation('org.apiguardian:apiguardian-api:1.0.0')
103103

104104
// To use Log4J's LogManager
509 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

‎static-to-copy/gradlew

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ esac
8282

8383
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
8484

85+
8586
# Determine the Java command to use to start the JVM.
8687
if [ -n "$JAVA_HOME" ] ; then
8788
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -129,6 +130,7 @@ fi
129130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133+
132134
JAVACMD=`cygpath --unix "$JAVACMD"`
133135

134136
# We build the pattern for arguments to be converted via cygpath

‎static-to-copy/gradlew.bat

+4-18
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4040

4141
set JAVA_EXE=java.exe
4242
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto init
43+
if "%ERRORLEVEL%" == "0" goto execute
4444

4545
echo.
4646
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -54,7 +54,7 @@ goto fail
5454
set JAVA_HOME=%JAVA_HOME:"=%
5555
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5656

57-
if exist "%JAVA_EXE%" goto init
57+
if exist "%JAVA_EXE%" goto execute
5858

5959
echo.
6060
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -64,28 +64,14 @@ echo location of your Java installation.
6464

6565
goto fail
6666

67-
:init
68-
@rem Get command-line arguments, handling Windows variants
69-
70-
if not "%OS%" == "Windows_NT" goto win9xME_args
71-
72-
:win9xME_args
73-
@rem Slurp the command line arguments.
74-
set CMD_LINE_ARGS=
75-
set _SKIP=2
76-
77-
:win9xME_args_slurp
78-
if "x%~1" == "x" goto execute
79-
80-
set CMD_LINE_ARGS=%*
81-
8267
:execute
8368
@rem Setup the command line
8469

8570
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8671

72+
8773
@rem Execute Gradle
88-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
74+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
8975

9076
:end
9177
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)
Please sign in to comment.