Skip to content

Commit

Permalink
change example to moshi because hikari requires Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Dec 21, 2024
1 parent b298920 commit 89af2bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/bukkit-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {
}

dependencies {
zap 'com.zaxxer:HikariCP:6.2.1'
zap 'com.squareup.moshi:moshi:1.15.2'
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
}

Expand All @@ -25,6 +25,6 @@ zapper {

repositories { includeProjectRepositories() }

// relocation path is com.example.plugin.libs.hikaricp
relocate 'com.zaxxer.hikari', 'hikaricp'
// relocation path is com.example.plugin.libs.moshi
relocate 'com.squareup.moshi', 'moshi'
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.example;

import com.zaxxer.hikari.HikariConfig;
import com.squareup.moshi.Moshi;
import revxrsal.zapper.ZapperJavaPlugin;

public class ExamplePlugin extends ZapperJavaPlugin {

@Override
public void onEnable() {
System.out.println(HikariConfig.class);
System.out.println(Moshi.class);
}

@Override
Expand Down

0 comments on commit 89af2bf

Please sign in to comment.