Skip to content

Commit

Permalink
Build job
Browse files Browse the repository at this point in the history
  • Loading branch information
p3t committed Apr 21, 2024
1 parent 1c84a7f commit 173c36f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ jobs:
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
uses: gradle/actions/setup-gradle@v3 # v3.1.0
with:
dependency-graph: generate-and-submit

- name: Build with Gradle Wrapper
run: ./gradlew build
env:
GITHUBPKG_USERNAME: ${{ secrets.GITHUBPKG_USERNAME }}
GITHUBPKG_PASSWORD: ${{ secrets.GITHUBPKG_PASSWORD }}

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
Expand Down
11 changes: 9 additions & 2 deletions cursorpaging-jpa-serial/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ dependencies {

}

tasks.withType<Test> {
useJUnitPlatform()
tasks {
withType<Test> {
useJUnitPlatform()
}
javadoc {
options {
(this as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet")
}
}
}
protobuf {
protoc {
Expand Down
17 changes: 17 additions & 0 deletions cursorpaging-jpa/src/main/java/io/vigier/cursor/Position.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,31 @@
import lombok.Getter;
import lombok.experimental.Accessors;

/**
* A position, which can be used to address the start of a page.
* <p>
* The position uses an attribute and a value to address the start of a page. The order defines if the results should be
* queried in ascending or descending order.
*/
@Builder( toBuilder = true )
@Getter
@Accessors( fluent = true )
@EqualsAndHashCode
public class Position {

/**
* Attribute used to create a position for an entity
*/
private final Attribute attribute;

/**
* The current position from where on the results should be queried
*/
private final Comparable<?> value;

/**
* The order in which the results should be queried
*/
@Builder.Default
private final Order order = Order.ASC;

Expand Down

0 comments on commit 173c36f

Please sign in to comment.