diff --git a/.github/workflows/gradle-test.yml b/.github/workflows/gradle-test.yml index 6f237243..8b52cf9c 100644 --- a/.github/workflows/gradle-test.yml +++ b/.github/workflows/gradle-test.yml @@ -25,3 +25,9 @@ jobs: - name: Run Gradle test run: ./gradlew test + + - name: Run Gradle javadoc + run: ./gradlew javadoc + + - name: Run Gradle assemble + run: ./gradlew assemble diff --git a/build.gradle b/build.gradle index 5819c2c3..9287d3ed 100644 --- a/build.gradle +++ b/build.gradle @@ -13,6 +13,7 @@ compileJava { java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 + withSourcesJar() } test { useJUnitPlatform() @@ -83,10 +84,11 @@ task printVersion { } task writeProps(type: WriteProperties) { - outputFile = file("src/main/resources/version.properties") + destinationFile = file("src/main/resources/version.properties") encoding = 'UTF-8' property('version', project.version) property('name', project.name) property('group', project.group) } processResources.dependsOn(writeProps) +sourcesJar.dependsOn(writeProps) diff --git a/src/main/java/com/fauna/response/ConstraintFailure.java b/src/main/java/com/fauna/response/ConstraintFailure.java index e6b128e5..6832f0d0 100644 --- a/src/main/java/com/fauna/response/ConstraintFailure.java +++ b/src/main/java/com/fauna/response/ConstraintFailure.java @@ -29,7 +29,7 @@ public Optional getName() { } /** - * Each path returned by Fauna for a constraint failure is an array of strings & integers. But since Java + * Each path returned by Fauna for a constraint failure is an array of strings and integers. But since Java * doesn't really have a way to support union types, returning Object (the common parent of String and Integer) * seems like the simplest solution. *