Skip to content

Commit 467a33b

Browse files
authored
Merge pull request #134 from xdev-software/develop
Release
2 parents a5b2c2b + 160db2c commit 467a33b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1294
-90
lines changed

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# Auto detect text files and perform LF normalization
22
* text=auto
3+
4+
# Force sh files to have LF
5+
*.sh text eol=lf
6+
7+
# Force MVN Wrapper Linux files LF
8+
mvnw text eol=lf
9+
.mvn/wrapper/maven-wrapper.properties text eol=lf

.github/dependabot.yml

-22
This file was deleted.

.github/workflows/checkBuild.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ on:
77
paths-ignore:
88
- '**.md'
99
- '.config/**'
10+
- '.github/**'
1011
- '.idea/**'
1112
- 'assets/**'
1213
pull_request:
1314
branches: [ develop ]
1415
paths-ignore:
1516
- '**.md'
1617
- '.config/**'
18+
- '.github/**'
1719
- '.idea/**'
1820
- 'assets/**'
1921

@@ -41,7 +43,7 @@ jobs:
4143
cache: 'maven'
4244

4345
- name: Build with Maven
44-
run: mvn -B clean package -P run-integration-tests
46+
run: ./mvnw -B clean package -P run-integration-tests
4547

4648
- name: Check for uncommited changes
4749
run: |
@@ -57,7 +59,7 @@ jobs:
5759
echo ----------------------------------------
5860
echo Troubleshooting
5961
echo ----------------------------------------
60-
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean package"
62+
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && ./mvnw -B clean package"
6163
exit 1
6264
fi
6365
@@ -78,6 +80,7 @@ jobs:
7880

7981
code-style:
8082
runs-on: ubuntu-latest
83+
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
8184

8285
strategy:
8386
matrix:
@@ -95,4 +98,4 @@ jobs:
9598
cache: 'maven'
9699

97100
- name: Run Checkstyle
98-
run: mvn -B checkstyle:check -P checkstyle -T2C
101+
run: ./mvnw -B checkstyle:check -P checkstyle -T2C

.github/workflows/release.yml

+12-36
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
cache: 'maven'
2626

2727
- name: Build with Maven
28-
run: mvn -B clean package
28+
run: ./mvnw -B clean package
2929

3030
- name: Check for uncommited changes
3131
run: |
@@ -41,7 +41,7 @@ jobs:
4141
echo ----------------------------------------
4242
echo Troubleshooting
4343
echo ----------------------------------------
44-
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean package"
44+
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && ./mvnw -B clean package"
4545
exit 1
4646
fi
4747
@@ -60,18 +60,19 @@ jobs:
6060
6161
- name: Un-SNAP
6262
run: |
63+
mvnwPath=$(readlink -f ./mvnw)
6364
modules=("") # root
6465
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
6566
for i in "${modules[@]}"
6667
do
6768
echo "Processing $i/pom.xml"
68-
(cd "$i" && mvn -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
69+
(cd "$i" && $mvnwPath -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
6970
done
7071
7172
- name: Get version
7273
id: version
7374
run: |
74-
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
75+
version=$(../mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
7576
echo "release=$version" >> $GITHUB_OUTPUT
7677
echo "releasenumber=${version//[!0-9]/}" >> $GITHUB_OUTPUT
7778
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
@@ -129,15 +130,14 @@ jobs:
129130
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
130131

131132
- name: Publish to Apache Maven Central
132-
run: mvn -B deploy -Possrh
133+
run: ../mvnw -B deploy -Possrh
133134
env:
134135
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
135136
MAVEN_CENTRAL_TOKEN: ${{ secrets.S01_OSS_SONATYPE_MAVEN_TOKEN }}
136137
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
137138
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
138139

139140
publish-pages:
140-
name: Publish dependencies and licenses to github pages
141141
runs-on: ubuntu-latest
142142
needs: [prepare_release]
143143
steps:
@@ -156,40 +156,15 @@ jobs:
156156
distribution: 'temurin'
157157
cache: 'maven'
158158

159-
- name: Build dependencies/licenses files
160-
run: mvn -B project-info-reports:dependencies
159+
- name: Build site
160+
run: ../mvnw -B site
161161
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
162162

163-
- name: Upload licenses - Upload Artifact
164-
uses: actions/upload-artifact@v4
165-
with:
166-
name: dependencies-licenses
167-
path: ${{ env.PRIMARY_MAVEN_MODULE }}/target/site
168-
169-
- name: Generate docs/dependencies dir
170-
run: mkdir -p docs/dependencies
171-
172-
- name: Move built files into docs/dependencies
173-
run: mv ${{ env.PRIMARY_MAVEN_MODULE }}/target/site/* docs/dependencies
174-
175-
- name: Rename dependencies.html to index.html
176-
working-directory: docs/dependencies
177-
run: mv dependencies.html index.html
178-
179-
- name: Copy Readme into docs (as index.md)
180-
run: cp README.md docs/index.md
181-
182-
- name: Configure Pages
183-
working-directory: docs
184-
run: |-
185-
echo "theme: jekyll-theme-tactile" > _config.yml
186-
187163
- name: Deploy to Github pages
188-
uses: peaceiris/actions-gh-pages@v3
164+
uses: peaceiris/actions-gh-pages@v4
189165
with:
190166
github_token: ${{ secrets.GITHUB_TOKEN }}
191-
publish_dir: ./docs
192-
enable_jekyll: true
167+
publish_dir: ./${{ env.PRIMARY_MAVEN_MODULE }}/target/site
193168

194169
after_release:
195170
runs-on: ubuntu-latest
@@ -205,12 +180,13 @@ jobs:
205180
206181
- name: Inc Version and SNAP
207182
run: |
183+
mvnwPath=$(readlink -f ./mvnw)
208184
modules=("") # root
209185
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
210186
for i in "${modules[@]}"
211187
do
212188
echo "Processing $i/pom.xml"
213-
(cd "$i" && mvn -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true)
189+
(cd "$i" && $mvnwPath -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true)
214190
done
215191
216192
- name: Git Commit and Push

.github/workflows/sonar.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ on:
77
paths-ignore:
88
- '**.md'
99
- '.config/**'
10+
- '.github/**'
1011
- '.idea/**'
1112
- 'assets/**'
1213
pull_request:
1314
types: [opened, synchronize, reopened]
1415
paths-ignore:
1516
- '**.md'
1617
- '.config/**'
18+
- '.github/**'
1719
- '.idea/**'
1820
- 'assets/**'
1921

@@ -25,8 +27,7 @@ jobs:
2527
sonar:
2628
name: SonarCloud Scan
2729
runs-on: ubuntu-latest
28-
# Dependabot PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
29-
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'dependabot/') }}
30+
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
3031
steps:
3132
- uses: actions/checkout@v4
3233
with:
@@ -54,7 +55,7 @@ jobs:
5455

5556
- name: Build with Maven
5657
run: |
57-
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
58+
./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
5859
-DskipTests \
5960
-Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} \
6061
-Dsonar.organization=${{ env.SONARCLOUD_ORG }} \

.github/workflows/test-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2525

2626
- name: Publish to OSSRH
27-
run: mvn -B deploy -Possrh
27+
run: ../mvnw -B deploy -Possrh
2828
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
2929
env:
3030
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}

.idea/checkstyle-idea.xml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mvn/wrapper/maven-wrapper.properties

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.2.0
2+
* Add TimeScale and TimeTicks to allow building linear time charts #90
3+
* Add options for the [Zoom plugin](https://www.chartjs.org/chartjs-plugin-zoom/latest/) #117
4+
* Updated dependencies
5+
16
## 1.1.3
27
* Add ``toJsonNative`` method which doesn't run the ``isDrawable`` check #91
38

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We also encourage you to read the [contribution instructions by GitHub](https://
2020
You should have the following things installed:
2121
* Git
2222
* Java 21 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
23-
* Maven
23+
* Maven (Note that the [Maven Wrapper](https://maven.apache.org/wrapper/) is shipped with the repo)
2424

2525
### Recommended setup
2626
* Install ``IntelliJ`` (Community Edition is sufficient)

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2023 XDEV Software
189+
Copyright 2024 XDEV Software
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ If you need support as soon as possible and you can't wait for any pull request,
2323
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.
2424

2525
## Dependencies and Licenses
26-
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/chartjs-java-model/dependencies/)
26+
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/chartjs-java-model/dependencies)

chartjs-java-model-demo/pom.xml

+5-6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66

77
<groupId>software.xdev</groupId>
88
<artifactId>chartjs-java-model-demo</artifactId>
9-
<version>1.1.4-SNAPSHOT</version>
9+
<version>1.2.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

12-
<inceptionYear>2022</inceptionYear>
13-
1412
<organization>
1513
<name>XDEV Software</name>
1614
<url>https://xdev.software</url>
@@ -41,7 +39,7 @@
4139
<plugin>
4240
<groupId>org.apache.maven.plugins</groupId>
4341
<artifactId>maven-compiler-plugin</artifactId>
44-
<version>3.12.1</version>
42+
<version>3.13.0</version>
4543
<configuration>
4644
<release>${maven.compiler.release}</release>
4745
<compilerArgs>
@@ -52,7 +50,7 @@
5250
<plugin>
5351
<groupId>org.apache.maven.plugins</groupId>
5452
<artifactId>maven-assembly-plugin</artifactId>
55-
<version>3.6.0</version>
53+
<version>3.7.1</version>
5654
<configuration>
5755
<archive>
5856
<manifest>
@@ -92,11 +90,12 @@
9290
<dependency>
9391
<groupId>com.puppycrawl.tools</groupId>
9492
<artifactId>checkstyle</artifactId>
95-
<version>10.13.0</version>
93+
<version>10.16.0</version>
9694
</dependency>
9795
</dependencies>
9896
<configuration>
9997
<configLocation>../.config/checkstyle/checkstyle.xml</configLocation>
98+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
10099
</configuration>
101100
<executions>
102101
<execution>

0 commit comments

Comments
 (0)