Skip to content

Commit

Permalink
Prepare for 1.0 release (#3)
Browse files Browse the repository at this point in the history
- Migrate tests to Java, apply code formatting
- Logging without slf4j
- Convert to Maven, apply checkstyle
- Configurable context object
- Create maven.yml
- Create maven-publish.yml
  • Loading branch information
kevinherron authored Aug 11, 2024
1 parent cc9c26d commit 6a7e78f
Show file tree
Hide file tree
Showing 52 changed files with 2,510 additions and 2,325 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Maven Publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Release builds are available from [Maven Central](https://repo.maven.apache.org/
## Gradle
```
dependencies {
compile("com.digitalpetri.fsm:strict-machine:0.7")
compile("com.digitalpetri.fsm:strict-machine:1.0.0-SNAPSHOT")
}
```

Expand All @@ -18,7 +18,7 @@ dependencies {
<dependency>
<groupId>com.digitalpetri.fsm</groupId>
<artifactId>strict-machine</artifactId>
<version>0.7</version>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
```
Expand Down
129 changes: 0 additions & 129 deletions build.gradle.kts

This file was deleted.

Loading

0 comments on commit 6a7e78f

Please sign in to comment.