Skip to content

Commit 9d19ae9

Browse files
chore: v1 release (#9)
* add normalize function for angleType * add kotest * test fixtures * test kinetic states using kotest * Merge pull request #3: single module project setup + maven central publishing * gitignore junie again * fix: Change jvmToolchain from 17 to 8 * fix: downgrade Kotlin to 2.0.0 * refactor build configuration and deployment script * fix: add snapshot tag to deploy snapshot ci script --------- Co-authored-by: Davis Luxenberg <74377508+BeepBot99@users.noreply.github.com>
1 parent a5e6d90 commit 9d19ae9

File tree

63 files changed

+975
-758
lines changed

Some content is hidden

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

63 files changed

+975
-758
lines changed

.gitattributes

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Release
2+
3+
on:
4+
release:
5+
types: [released, prereleased]
6+
7+
jobs:
8+
deploy-release:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '17'
18+
distribution: 'temurin'
19+
- name: Grant execute permission
20+
run: chmod +x gradlew
21+
- name: Extract version (strip leading v)
22+
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
23+
- name: Deploy to Maven Central
24+
run: ./gradlew deployCentralPortal -Pversion=$VERSION
25+
env:
26+
MVN_GPG_KEY: ${{ secrets.MVN_GPG_KEY }}
27+
MVN_GPG_PASSWORD: ${{ secrets.MVN_GPG_PASSWORD }}
28+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
29+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
30+
VERSION: ${{ env.VERSION }}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy Snapshot
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
7+
jobs:
8+
deploy-snapshot:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '17'
18+
distribution: 'temurin'
19+
- name: Grant execute permission
20+
run: chmod +x gradlew
21+
- name: Deploy Snapshot
22+
run: ./gradlew deployNexusSnapshot -Pversion=$VERSION-SNAPSHOT
23+
env:
24+
MVN_GPG_KEY: ${{ secrets.MVN_GPG_KEY }}
25+
MVN_GPG_PASSWORD: ${{ secrets.MVN_GPG_PASSWORD }}
26+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
27+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

.gitignore

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,48 @@
1-
# Ignore Gradle project-specific cache directory
21
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
36

4-
# Ignore Gradle build output directory
5-
build
6-
/local.properties
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Kotlin ###
20+
.kotlin
21+
22+
### Eclipse ###
23+
.apt_generated
24+
.classpath
25+
.factorypath
26+
.project
27+
.settings
28+
.springBeans
29+
.sts4-cache
30+
bin/
31+
!**/src/main/**/bin/
32+
!**/src/test/**/bin/
33+
34+
### NetBeans ###
35+
/nbproject/private/
36+
/nbbuild/
37+
/dist/
38+
/nbdist/
39+
/.nb-gradle/
40+
41+
### VS Code ###
42+
.vscode/
43+
44+
### Mac OS ###
45+
.DS_Store
46+
47+
### Junie
48+
/.junie/

.idea/.gitignore

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/AndroidProjectSystem.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/copyright/NextFTC_Copyright.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/copyright/profiles_settings.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)