Skip to content

Commit

Permalink
Clean up example plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Boerman committed Dec 26, 2024
1 parent aadf10e commit abbbd50
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ExamplePlugin extends ScalaPlugin {
private final Random random = new Random();

public ExamplePlugin() {
super(new ScalaPluginDescription("JavaExample", "0.18.10-SNAPSHOT").addHardDepend("Scala2Example"));
super(new ScalaPluginDescription("JavaExample", "0.18.15-SNAPSHOT").addHardDepend("Scala2Example"));
}

public static ExamplePlugin getInstance() {
Expand Down
2 changes: 1 addition & 1 deletion Scala2Example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<artifactId>Scala2Example</artifactId>

<properties>
<scala.version>2.13.12</scala.version>
<scala.version>2.13.15</scala.version>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ object Permissions {
val homePermission = new SPPermission("scalaexample.home").permissionDefault(PermissionDefault.TRUE);
}

@Scala(version = ScalaVersion.v2_13_12)
@Api(ApiVersion.v1_20)
@Scala(version = ScalaVersion.v2_13_15)
@Api(ApiVersion.v1_21)
object ExamplePlugin
extends ScalaPlugin(new ScalaPluginDescription("Scala2Example", "0.18.10-SNAPSHOT")
extends ScalaPlugin(new ScalaPluginDescription("Scala2Example", "0.18.15-SNAPSHOT")
.addCommand(new SPCommand("foo").permission(fooPermission))
.addCommand(new SPCommand("home").permission(homePermission).usage("/home set|tp"))
.permissions(homePermission)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package xyz.janboerman.scalaloader.example.scala3

import xyz.janboerman.scalaloader.configurationserializable.runtime.{Codec, RuntimeConversions}
import xyz.janboerman.scalaloader.plugin.description.{Api, ApiVersion, Scala, ScalaVersion}
import xyz.janboerman.scalaloader.plugin.{ScalaPlugin, ScalaPluginDescription}
import xyz.janboerman.scalaloader.plugin.description.{Scala, ScalaVersion}
import xyz.janboerman.scalaloader.plugin.ScalaPlugin

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

0 comments on commit abbbd50

Please sign in to comment.