Reworked PinConfig with required parameters, etc.

This commit is contained in:
Erik C. Thauvin 2024-05-25 15:34:40 -07:00
parent 0f9606391e
commit 9036a32239
Signed by: erik
GPG key ID: 776702A6A2DA330E
12 changed files with 94 additions and 57 deletions

View file

@ -19,5 +19,5 @@ repositories {
}
dependencies {
implementation 'net.thauvin.erik:pinboard-poster:1.1.1'
implementation 'net.thauvin.erik:pinboard-poster:1.1.2-SNAPSHOT'
}

View file

@ -7,4 +7,4 @@
* in the user guide at https://docs.gradle.org/4.8/userguide/multi_project_builds.html
*/
rootProject.name = 'samples-java'
rootProject.name = 'pinboard-poster-examples-gradle-java'

View file

@ -31,9 +31,7 @@ public class JavaExample {
if (poster.validate()) {
// Add Pin
if (poster.addPin(new PinConfig.Builder()
.url(url)
.description("Testing")
if (poster.addPin(new PinConfig.Builder(url, "Testing")
.extended("Extra")
.tags("test", "java")
.build())) {