Reworked PinConfig with required parameters, etc.
This commit is contained in:
parent
0f9606391e
commit
9036a32239
12 changed files with 94 additions and 57 deletions
|
@ -1,6 +1,6 @@
|
|||
bld.downloadExtensionJavadoc=false
|
||||
bld.downloadExtensionSources=true
|
||||
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.4
|
||||
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.7
|
||||
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||
bld.downloadLocation=
|
||||
bld.sourceDirectories=
|
||||
|
|
|
@ -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())) {
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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())) {
|
||||
|
|
2
examples/gradle/kotlin/.idea/.name
generated
2
examples/gradle/kotlin/.idea/.name
generated
|
@ -1 +1 @@
|
|||
pinboard-poster-examples-gradle-kotlin
|
||||
pinboard-post-examples-gradle-kotlin
|
4
examples/gradle/kotlin/.idea/misc.xml
generated
4
examples/gradle/kotlin/.idea/misc.xml
generated
|
@ -4,5 +4,5 @@
|
|||
<component name="PDMPlugin">
|
||||
<option name="skipTestSources" value="false" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="20" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="17" project-jdk-type="JavaSDK" />
|
||||
</project>
|
|
@ -1 +1 @@
|
|||
rootProject.name = "samples-kotlin"
|
||||
rootProject.name = "pinboard-post-examples-gradle-kotlin"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue