Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/scala3 #123

Merged
merged 50 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2bbb8c4
:wip: Re-added base quarkus infrastructure
adarro Aug 16, 2024
5846f23
trunk fmt
adarro Aug 16, 2024
55bd62a
:construction: adding initial DAL rest integration.
adarro Aug 18, 2024
6f5d61a
:art: Format / lint
adarro Aug 18, 2024
d9a3e0b
trunk format
adarro Aug 18, 2024
d1831f7
:construction: :art: renamed some avro avdl members for shorter names…
adarro Aug 24, 2024
72075b3
:construction: and local .env files to gitignore
adarro Aug 24, 2024
114c082
:construction: removed some demo / poc DAL classes
adarro Aug 24, 2024
34a47e9
:construction: Added general JSON Key / value extractor until a bette…
adarro Aug 24, 2024
aff5202
:construction: adjusting sonar ci build memory
adarro Aug 25, 2024
438ad10
:green_heart: Codacy should only run against Org (truthencode) not pe…
adarro Aug 25, 2024
904ccbf
add gradle_opts to increase mem for build.
adarro Aug 25, 2024
56aa4d8
:green_heart: fixed syntax from cmdline to env option.
adarro Aug 25, 2024
2c1f9b5
:construction: Changed MeleePower search prefix to "Damage"
adarro Sep 4, 2024
4aa21ff
:pencil2: comment typos. small format
adarro Sep 4, 2024
aa6e9a9
:construction: added basic gradle copy task for Antlr files to take a…
adarro Sep 4, 2024
d7a2de3
:construction: Add Solar and Lunar Augment support
adarro Sep 4, 2024
d6f7361
:construction: Initial codex entity site creation
adarro Sep 6, 2024
ff7a942
:construction: Initial codex entity site creation
adarro Sep 6, 2024
b0e1bba
:construction: Scala3 preflight
adarro Sep 7, 2024
d8ed65f
:construction: Scala3 add scala version - sensitive dependencies
adarro Sep 8, 2024
06a661e
:construction: Scala3 migration core: Added BonusSelectableToClassFea…
adarro Sep 8, 2024
d59b0db
:construction:
adarro Sep 8, 2024
16d5bf5
:construction:
adarro Sep 9, 2024
cdff5d3
:construction:
adarro Sep 14, 2024
0932eca
:construction:
adarro Sep 14, 2024
0425a4e
:construction:
adarro Sep 14, 2024
79414ea
:construction:
adarro Sep 20, 2024
6bea981
:construction:
adarro Sep 20, 2024
f5523af
:green_arrow:Prep for version sync
adarro Sep 22, 2024
ebf1090
:green_arrow:More version sync
adarro Sep 25, 2024
56ce64e
:green_arrow:More version sync
adarro Feb 24, 2025
348efd8
:green_arrow:More version sync
adarro Feb 28, 2025
269bc88
:green_arrow:More version sync
adarro Mar 1, 2025
a21ceb4
:green_arrow:More version sync
adarro Mar 2, 2025
1e22e34
Saving files before refresh line endings
adarro Mar 2, 2025
fe55168
Normalize line endings
adarro Mar 2, 2025
1849ebd
:green_arrow:More version sync
adarro Mar 2, 2025
7b0a0dc
:green_arrow:More version sync
adarro Mar 4, 2025
4f8a5db
:green_arrow:More version sync
adarro Mar 4, 2025
135ce6b
:green_arrow:More version sync
adarro Mar 4, 2025
d0e4fda
:construction: Dead code, format
adarro Mar 4, 2025
1496f62
:green_heart: bump circleci
adarro Mar 4, 2025
c25252a
:green_heart: clone depth for spotless
adarro Mar 4, 2025
69298d6
:green_heart: Remove missing aggregate task
adarro Mar 4, 2025
29cef9d
:green_heart: Remove missing aggregate task
adarro Mar 4, 2025
d335ea0
:green_heart: Remove missing failing testAggregateTestReport task
adarro Mar 4, 2025
d20c4c7
:green_heart: Remove missing failing aggregateScoverage task
adarro Mar 4, 2025
235afb6
:construction: Add missing Status class
adarro Mar 4, 2025
f1f5439
:construction: Add missing DAL classes
adarro Mar 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
114 changes: 57 additions & 57 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
# Scala CircleCI 2.0 configuration file
# See: https://circleci.com/docs/2.0/sample-config/
version: 2.1
orbs:
gradle: circleci/[email protected]
codecov: codecov/[email protected]
coverage-reporter: codacy/[email protected]
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
build_and_test:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
docker:
# specify the version you desire here
- image: cimg/openjdk:17.0
auth:
username: $docker_user
password: $docker_token
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
TERM: dumb
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run: ./gradlew assemble
- run: if [ -e ./gradlew ]; then ./gradlew reportScoverage aggregateScoverage --continue;else gradle reportScoverage aggregateScoverage --continue;fi
- codecov/upload
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "build.gradle.kts" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- save_cache:
paths:
- ~/.gradle
key: v1-dependencies--{{ checksum "build.gradle.kts" }}
workflows:
example-workflow:
jobs:
- build_and_test:
context:
- docker_creds
# run tests!
# Scala CircleCI 2.0 configuration file
# See: https://circleci.com/docs/2.0/sample-config/
version: 2.1
orbs:
gradle: circleci/[email protected]
codecov: codecov/[email protected]
coverage-reporter: codacy/[email protected]
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
build_and_test:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
docker:
# specify the version you desire here
- image: cimg/openjdk:21.0
auth:
username: $docker_user
password: $docker_token

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

working_directory: ~/repo

environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
TERM: dumb

# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- run: git clone --depth 20 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH"
- run: ./gradlew assemble
- run: if [ -e ./gradlew ]; then ./gradlew reportScoverage aggregateScoverage --continue;else gradle reportScoverage aggregateScoverage --continue;fi
- codecov/upload
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "build.gradle.kts" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- save_cache:
paths:
- ~/.gradle
key: v1-dependencies--{{ checksum "build.gradle.kts" }}
workflows:
example-workflow:
jobs:
- build_and_test:
context:
- docker_creds
# run tests!
4 changes: 2 additions & 2 deletions .codacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ engines:
enabled: true
exclude_paths:
- config/engines.yml
- **/test/**/*
- **/spec/**/*
- '**/test/**/*'
- '**/spec/**/*'
metrics:
enabled: true
exclude_paths:
Expand Down
11 changes: 6 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@ root = true

[*]
charset = utf-8
end_of_line = crlf
insert_final_newline = false
indent_style = space
indent_size = 4

[{*.avro, *.json, *.avsc}]
[{*.avro,*.json,*.avsc}]
indent_style = space
indent_size = 2

[*.feature]
indent_style = space
indent_size = 2

[{*.kt, *.kts}]
[{*.kt,*.kts}]
indent_size = 4
insert_final_newline = true


[{*.scala, *.sc}]
[{*.scala,*.sc,*.java}]
indent_style = space
indent_size = 4
insert_final_newline = true

[{.scalafix.config, *.conf}]
[{.scalafix.config,*.conf}]
indent_style = space
indent_size = 2

Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
* text eol=lf

#
# The above will handle all files NOT found below
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codacy_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions: read-all
- main
jobs:
codacy-security-scan:
if: github.repository == 'truthencode/ddo-calc'
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
Expand All @@ -28,6 +29,7 @@ jobs:
with:
sarif_file: results.sarif
codacy-analysis-cli:
if: github.repository == 'truthencode/ddo-calc'
name: Codacy Analysis CLI
runs-on: ubuntu-latest
steps:
Expand Down
52 changes: 27 additions & 25 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
name: Run Gradle on PRs
permissions: read-all
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Run test and Coverage
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: reportAcceptanceTestScoverage reportScoverage reportTestScoverage aggregateScoverage testAggregateTestReport
name: Run Gradle on PRs
permissions: read-all
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Run test and Coverage
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: assemble
12 changes: 7 additions & 5 deletions .github/workflows/sonar_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,30 @@ on:
- master
pull_request:
types: [opened, synchronize, reopened]
env:
GRADLE_OPTS: -Xmx1g -XX:MaxMetaspaceSize=512m
permissions: read-all
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 21
distribution: zulu # Alternative distribution options are available
- name: Cache SonarCloud packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
Expand All @@ -35,4 +37,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build aggregateScoverage sonar --info
run: ./gradlew build sonar --info --stacktrace
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Mobile Tools for Java (J2ME)
.mtj.tmp/


# local python env
pytools/

# Package Files #
*.jar
*.war
Expand Down Expand Up @@ -41,6 +45,8 @@ buildNumber.properties
.Rproj.user/

**/.antlr/
*.interp
*.tokens

# produced vignettes
vignettes/*.html
Expand All @@ -65,6 +71,7 @@ project/plugins/project/

# Scala-IDE specific
.scala_dependencies
**/*.scala.semanticdb
.worksheet
/org/
infinitest.filters
Expand Down Expand Up @@ -208,9 +215,12 @@ rslt.txt
# auto generated files
**/version.properties
incubating/ddo-antlr/src/generated/java/*
local.properties


.quarkus/
/subprojects/common/ddo-modeling/src/main/avro/
/subprojects/common/ddo-core/src/generated/java/io/truthencode/ddo/core/GeneratedVersion.java
fixle.sh
/.env
/.envrc
/py/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.3.1
v23.4.0
4 changes: 2 additions & 2 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.14"
version = "3.9.1"
preset = Intellij

maxColumn = 100
Expand Down Expand Up @@ -61,7 +61,7 @@ optIn {
forceBlankLineBeforeDocstring = true
}

runner.dialect = Scala213Source3
runner.dialect = Scala3
runner {
optimizer {
# Set to -1 to disable. Number of characters needed to trigger "config-style" formatting
Expand Down
15 changes: 1 addition & 14 deletions .swm/bump-pegdown-from-150-to-160.k7r9qicc.sw.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Bump pegdown from 1.5.0 to 1.6.0
---

# Introduction

This document will walk you through the implementation of the version upgrade feature for the `pegdown` library in our project. The `pegdown` library is a pure-Java Markdown processor that we use for parsing and converting Markdown into HTML in our application. We will cover:
Expand All @@ -21,20 +22,6 @@ The `pegdown` library is a crucial part of our application as it handles the con

# How was the version upgrade implemented?

<SwmSnippet path="/pom.xml" line="979">

---

The version upgrade was implemented by modifying the file, which is the Project Object Model file for our Maven project. This file contains information about the project and configuration details used by Maven to build the project. In the file, we updated the version of the `pegdown` library from 1.5.0 to 1.6.0. This tells Maven to use version 1.6.0 of the `pegdown` library when building our project.

```xml
<version>1.6.0</version>
```

---

</SwmSnippet>

By making this change, we ensure that our application is using the latest, most secure, and efficient version of the `pegdown` library. This will help to improve the overall performance and security of our application.

<SwmMeta version="3.0.0" repo-id="Z2l0aHViJTNBJTNBZGRvLWNhbGMlM0ElM0F0cnV0aGVuY29kZQ=="><sup>Powered by [Swimm](https://app.swimm.io/)</sup></SwmMeta>
1 change: 1 addition & 0 deletions .swm/effects.8sjwdkts.sw.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Effects
---

```mermaid
gantt
title A Gantt Diagram
Expand Down
1 change: 1 addition & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
plugins
user_trunk.yaml
user.yaml
tmp
Loading
Loading