Skip to content

Commit

Permalink
Fix typos and update Scala 3 example to latest Scala version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Boerman committed Dec 25, 2024
1 parent 6ddc342 commit c203fcb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ case object NoValue extends Maybe[scala.Nothing] {
// def serialize(): java.util.Map[String, AnyRef] = {
// val map = new java.util.HashMap[String, AnyRef]()
// map.putAll($serialize())
// map.put("$variant", "Nothing" /*or or the class name in case there was no alias*/)
// map.put("$variant", "Nothing" /*or, the class name in case there was no alias*/)
// return map;
// }
//
Expand Down
4 changes: 2 additions & 2 deletions Scala3Example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<properties>
<scala.boostrapVersion>2.13.12</scala.boostrapVersion>
<scala.version>3.3.1</scala.version>
<scala.version>3.6.2</scala.version>
</properties>

<build>
Expand Down Expand Up @@ -109,7 +109,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.4-R0.1-SNAPSHOT</version>
<version>1.21.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion Scala3Example/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Scala3Example
version: ${project.version}
api-version: "1.19"
api-version: "1.21"
folia-supported: true
load: STARTUP

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.bukkit.configuration.file.YamlConfiguration
import java.io.File
import xyz.janboerman.scalaloader.configurationserializable.{ConfigurationSerializable, Scan}

import java.lang.annotation.Annotation
import scala.collection.immutable.{ArraySeq, SortedSet}
import scala.collection.mutable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import xyz.janboerman.scalaloader.plugin.description.{Api, ApiVersion, Scala, Sc
import xyz.janboerman.scalaloader.plugin.{ScalaPlugin, ScalaPluginDescription}
import zio.{ZIO, Console}

@Scala(ScalaVersion.v3_2_0)
@Scala(version = ScalaVersion.v3_6_2)
object ExamplePlugin extends ScalaPlugin {

var syncRuntime = new BukkitRuntime(this).syncRuntime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
Class<?>[] value() default {};

/**
* With what alias should the top type have?
* What alias should the top type have?
* @return the alias
*/
String as() default "";
Expand Down

0 comments on commit c203fcb

Please sign in to comment.