diff --git a/.github/workflows/bld.yml b/.github/workflows/gradle.yml similarity index 100% rename from .github/workflows/bld.yml rename to .github/workflows/gradle.yml diff --git a/.idea/libraries/bld.xml b/.idea/libraries/bld.xml index ca84ff0..cf75013 100644 --- a/.idea/libraries/bld.xml +++ b/.idea/libraries/bld.xml @@ -6,7 +6,6 @@ - @@ -15,4 +14,4 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 6715e98..634c8f9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,3 +1,4 @@ + @@ -5,16 +6,6 @@ - diff --git a/examples/gradle/.idea/.gitignore b/examples/gradle/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/examples/gradle/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/examples/gradle/.idea/.name b/examples/gradle/.idea/.name deleted file mode 100644 index 12e49ff..0000000 --- a/examples/gradle/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -cryptoprice-examples-gradle diff --git a/examples/gradle/.idea/compiler.xml b/examples/gradle/.idea/compiler.xml deleted file mode 100644 index fb7f4a8..0000000 --- a/examples/gradle/.idea/compiler.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/examples/gradle/.idea/gradle.xml b/examples/gradle/.idea/gradle.xml deleted file mode 100644 index 7d3b3e8..0000000 --- a/examples/gradle/.idea/gradle.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/examples/gradle/.idea/inspectionProfiles/Project_Default.xml b/examples/gradle/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 1e01b48..0000000 --- a/examples/gradle/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/examples/gradle/.idea/jarRepositories.xml b/examples/gradle/.idea/jarRepositories.xml deleted file mode 100644 index 4e9cedf..0000000 --- a/examples/gradle/.idea/jarRepositories.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/gradle/.idea/kotlinc.xml b/examples/gradle/.idea/kotlinc.xml deleted file mode 100644 index e805548..0000000 --- a/examples/gradle/.idea/kotlinc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/examples/gradle/.idea/misc.xml b/examples/gradle/.idea/misc.xml deleted file mode 100644 index 65c5674..0000000 --- a/examples/gradle/.idea/misc.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/examples/gradle/.idea/vcs.xml b/examples/gradle/.idea/vcs.xml deleted file mode 100644 index b2bdec2..0000000 --- a/examples/gradle/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/examples/gradle/README.md b/examples/gradle/README.md index 9d3ed01..5d653f7 100644 --- a/examples/gradle/README.md +++ b/examples/gradle/README.md @@ -12,7 +12,7 @@ To compile & run the Kotlin example: To compile & run the Java example: ```text -./gradlew runJava +./gradlew run ./gradlew runJava --args="btc" ./gradlew runJava --args="eth eur" ``` diff --git a/examples/gradle/build.gradle.kts b/examples/gradle/build.gradle.kts index 0f2aecf..921521f 100644 --- a/examples/gradle/build.gradle.kts +++ b/examples/gradle/build.gradle.kts @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("application") id("com.github.ben-manes.versions") version "0.49.0" - kotlin("jvm") version "1.9.20" + kotlin("jvm") version "1.9.10" } defaultTasks(ApplicationPlugin.TASK_RUN_NAME) @@ -15,7 +15,7 @@ repositories { } dependencies { - implementation("net.thauvin.erik:cryptoprice:1.0.1-SNAPSHOT") + implementation("net.thauvin.erik:cryptoprice:1.0.1") implementation("org.json:json:20231013") } diff --git a/src/bld/java/net/thauvin/erik/crypto/CryptoPriceBuild.java b/src/bld/java/net/thauvin/erik/crypto/CryptoPriceBuild.java index a4857d6..a8676f5 100644 --- a/src/bld/java/net/thauvin/erik/crypto/CryptoPriceBuild.java +++ b/src/bld/java/net/thauvin/erik/crypto/CryptoPriceBuild.java @@ -47,10 +47,7 @@ public class CryptoPriceBuild extends Project { .include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 1))); publishOperation() - .repository(version.isSnapshot() ? repository(SONATYPE_SNAPSHOTS_LEGACY.location()) - .withCredentials(property("sonatype.user"), property("sonatype.password")) - : repository(SONATYPE_RELEASES_LEGACY.location()) - .withCredentials(property("sonatype.user"), property("sonatype.password"))) + .repository(version.isSnapshot() ? SONATYPE_SNAPSHOTS_LEGACY : SONATYPE_RELEASES_LEGACY) .info() .groupId("net.thauvin.erik") .artifactId(name) @@ -78,7 +75,7 @@ public class CryptoPriceBuild extends Project { new CryptoPriceBuild().start(args); } - @BuildCommand(summary = "Compiles the Kotlin project") + @BuildCommand(summary = "Compilez the Kotlin project") @Override public void compile() throws IOException { new CompileKotlinOperation()