Compare commits
10 Commits
02e10104fc
...
5ced572237
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ced572237 | ||
|
|
f9c4ff1b1c | ||
|
|
105c914483 | ||
|
|
aa4abfcdee | ||
|
|
e76bd6f5bb | ||
|
|
bf8890f3e9 | ||
|
|
1aa81ec3af | ||
|
|
ac6bf03c45 | ||
|
|
f6c9aaef66 | ||
|
|
bbc7de6751 |
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -45,4 +45,4 @@ out/
|
||||||
# Linux temp files
|
# Linux temp files
|
||||||
*~
|
*~
|
||||||
|
|
||||||
!gradle/wrapper/gradle-wrapper.jar
|
*.bat
|
||||||
|
|
|
||||||
41
Jenkinsfile
vendored
Normal file
41
Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
stages {
|
||||||
|
stage('Gradle') {
|
||||||
|
steps {
|
||||||
|
withCredentials([usernamePassword(credentialsId: 'alttd-publish-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
||||||
|
sh '''
|
||||||
|
chmod +x gradlew
|
||||||
|
./gradlew build -PalttdDevPublishUser=$USERNAME -PalttdDevPublishPass=$PASSWORD
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Publish to Maven') {
|
||||||
|
steps {
|
||||||
|
withCredentials([usernamePassword(credentialsId: 'alttd-publish-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
||||||
|
sh '''
|
||||||
|
chmod +x gradlew
|
||||||
|
./gradlew publish -PalttdDevPublishUser=$USERNAME -PalttdDevPublishPass=$PASSWORD
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Archive') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('discord') {
|
||||||
|
when {
|
||||||
|
anyOf {
|
||||||
|
branch 'main'
|
||||||
|
branch 'master'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
55
README.md
Normal file
55
README.md
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
# DataLockLib
|
||||||
|
___
|
||||||
|
|
||||||
|
## **Developer API**
|
||||||
|
Repository
|
||||||
|
```kotlin
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = uri("https://repo.destro.xyz/snapshots")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly("com.alttd.datalock:api:1.0.0-SNAPSHOT")
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## **Usage**
|
||||||
|
An instance of DataLock can be obtained by using this code.
|
||||||
|
```
|
||||||
|
DataLockAPI datalock = DataLockAPI.get();
|
||||||
|
```
|
||||||
|
|
||||||
|
## **Downloads**
|
||||||
|
There are currently no downloads provided. Jars can only be obtained by building from source.
|
||||||
|
|
||||||
|
## **Building**
|
||||||
|
|
||||||
|
#### Initial setup
|
||||||
|
Clone the repo using `git clone https://github.com/Altitude-Devs/DataLockLib.git`.
|
||||||
|
|
||||||
|
#### Building
|
||||||
|
Use the command `./gradlew build --stacktrace` in the project root directory.
|
||||||
|
The compiled jar will be placed in directory `/plugin/build/libs/`.
|
||||||
|
|
||||||
|
## **Commands**
|
||||||
|
|
||||||
|
| Command | Description | Permission |
|
||||||
|
|---------------------|-----------------------------|-----------------------------|
|
||||||
|
|
||||||
|
## **Permissions**
|
||||||
|
|
||||||
|
| Permission | Description |
|
||||||
|
|-----------------------------|------------------------------------------------|
|
||||||
|
|
||||||
|
## **Configuration**
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## **Support**
|
||||||
|
|
||||||
|
## **License**
|
||||||
|
[LICENSE](LICENSE)
|
||||||
|
|
@ -3,11 +3,13 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("com.alttd:Galaxy-API:1.19.2-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
jar {
|
||||||
|
enabled = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|
@ -19,9 +21,12 @@ publishing {
|
||||||
|
|
||||||
repositories{
|
repositories{
|
||||||
maven {
|
maven {
|
||||||
name = "maven"
|
name = "nexus"
|
||||||
url = uri("https://repo.destro.xyz/snapshots")
|
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
|
||||||
credentials(PasswordCredentials::class)
|
credentials {
|
||||||
|
username = project.property("alttdDevPublishUser") as String
|
||||||
|
password = project.property("alttdDevPublishPass") as String
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
package com.alttd.datalock;
|
package com.alttd.datalock;
|
||||||
|
|
||||||
import com.alttd.datalock.ResponseType;
|
|
||||||
import org.bukkit.event.Event;
|
import org.bukkit.event.Event;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class LockResponseEvent extends Event {
|
public class LockResponseEvent extends Event {
|
||||||
|
|
||||||
private final HandlerList handlers = new HandlerList();
|
private static final HandlerList handlers = new HandlerList();
|
||||||
private final String channel;
|
private final String channel;
|
||||||
private final ResponseType responseType;
|
private final ResponseType responseType;
|
||||||
private final String data;
|
private final String data;
|
||||||
|
|
@ -37,6 +36,11 @@ public class LockResponseEvent extends Event {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static @NotNull HandlerList getHandlerList() {
|
||||||
|
return handlers;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public @NotNull HandlerList getHandlers() {
|
public @NotNull HandlerList getHandlers() {
|
||||||
return handlers;
|
return handlers;
|
||||||
}
|
}
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.0"
|
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "com.alttd.datalock"
|
group = "com.alttd.datalock"
|
||||||
version = "1.0.0-SNAPSHOT"
|
version = "1.2.0-SNAPSHOT"
|
||||||
description = "Altitude DataLock Library."
|
description = "Altitude DataLock Library."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -16,14 +15,14 @@ subprojects {
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
languageVersion.set(JavaLanguageVersion.of(17))
|
languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
jar {
|
jar {
|
||||||
enabled = false
|
enabled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -36,13 +35,16 @@ publishing {
|
||||||
|
|
||||||
repositories{
|
repositories{
|
||||||
maven {
|
maven {
|
||||||
name = "maven"
|
name = "nexus"
|
||||||
url = uri("https://repo.destro.xyz/snapshots")
|
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
|
||||||
credentials(PasswordCredentials::class)
|
credentials {
|
||||||
|
username = project.property("alttdDevPublishUser") as String
|
||||||
|
password = project.property("alttdDevPublishPass") as String
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("com.alttd:Galaxy-API:1.19.2-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
|
|
@ -1,5 +1,7 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||||
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
|
||||||
|
|
@ -4,48 +4,19 @@ import java.net.URL
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
id("com.github.johnrengelman.shadow")
|
|
||||||
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
|
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
|
||||||
id("xyz.jpenilla.run-paper") version "1.0.6"
|
id("xyz.jpenilla.run-paper") version "1.0.6"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":api")) // API
|
implementation(project(":api")) // API
|
||||||
compileOnly("com.alttd:Galaxy-API:1.19.2-R0.1-SNAPSHOT") // Galaxy
|
compileOnly("io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
enabled = false
|
enabled = true
|
||||||
}
|
|
||||||
|
|
||||||
shadowJar {
|
|
||||||
archiveFileName.set("${rootProject.name}.jar")
|
|
||||||
}
|
|
||||||
|
|
||||||
build {
|
|
||||||
dependsOn(shadowJar)
|
|
||||||
}
|
|
||||||
|
|
||||||
runServer {
|
|
||||||
val dir = File(System.getProperty("user.home") + "/share/devserver/")
|
|
||||||
if (!dir.parentFile.exists()) {
|
|
||||||
dir.parentFile.mkdirs()
|
|
||||||
}
|
|
||||||
runDirectory.set(dir)
|
|
||||||
|
|
||||||
val fileName = "/galaxy.jar"
|
|
||||||
val file = File(dir.path + fileName)
|
|
||||||
|
|
||||||
if (!file.parentFile.exists()) {
|
|
||||||
file.parentFile.mkdirs()
|
|
||||||
}
|
|
||||||
if (!file.exists()) {
|
|
||||||
download("https://repo.destro.xyz/snapshots/com/alttd/Galaxy-Server/Galaxy-paperclip-1.19.2-R0.1-SNAPSHOT-reobf.jar", file)
|
|
||||||
}
|
|
||||||
serverJar(file)
|
|
||||||
minecraftVersion("1.19.2")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -54,7 +25,7 @@ bukkit {
|
||||||
name = rootProject.name
|
name = rootProject.name
|
||||||
main = "$group.${rootProject.name}"
|
main = "$group.${rootProject.name}"
|
||||||
version = gitCommit()
|
version = gitCommit()
|
||||||
apiVersion = "1.19"
|
apiVersion = "1.21"
|
||||||
authors = listOf("Teriuihi")
|
authors = listOf("Teriuihi")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import org.bukkit.scheduler.BukkitRunnable;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
public class DataLock implements DataLockAPI {
|
public class DataLock implements DataLockAPI {
|
||||||
|
|
||||||
|
|
@ -13,14 +14,15 @@ public class DataLock implements DataLockAPI {
|
||||||
|
|
||||||
public static DataLock getInstance() {
|
public static DataLock getInstance() {
|
||||||
if (instance == null)
|
if (instance == null)
|
||||||
instance = new DataLock();
|
new DataLock();
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private final PluginMessageListener pluginMessageListener;
|
private final PluginMessageListener pluginMessageListener;
|
||||||
private final DataLockLib plugin;
|
private final DataLockLib plugin;
|
||||||
private final Idempotency activeRequests;
|
private final Idempotency activeRequests;
|
||||||
protected DataLock() {
|
private DataLock() {
|
||||||
|
instance = this;
|
||||||
DataLockAPI.Provider.register(this);
|
DataLockAPI.Provider.register(this);
|
||||||
pluginMessageListener = new PluginMessageListener();
|
pluginMessageListener = new PluginMessageListener();
|
||||||
plugin = DataLockLib.getInstance();
|
plugin = DataLockLib.getInstance();
|
||||||
|
|
@ -33,6 +35,7 @@ public class DataLock implements DataLockAPI {
|
||||||
ByteArrayDataOutput out = ByteStreams.newDataOutput();
|
ByteArrayDataOutput out = ByteStreams.newDataOutput();
|
||||||
out.writeUTF(requestType.subChannel);
|
out.writeUTF(requestType.subChannel);
|
||||||
out.writeUTF(idempotencyData.data());
|
out.writeUTF(idempotencyData.data());
|
||||||
|
out.writeUTF(idempotencyData.idempotencyToken().toString());
|
||||||
plugin.getServer().sendPluginMessage(plugin, idempotencyData.channel(), out.toByteArray());
|
plugin.getServer().sendPluginMessage(plugin, idempotencyData.channel(), out.toByteArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -44,6 +47,7 @@ public class DataLock implements DataLockAPI {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void registerChannel(String channel) {
|
public synchronized void registerChannel(String channel) {
|
||||||
|
DataLockLib.getInstance().getLogger().log(Level.INFO, "Registering plugin channel on [" + channel + "]");
|
||||||
activeChannels.add(channel);
|
activeChannels.add(channel);
|
||||||
plugin.getServer().getMessenger().registerOutgoingPluginChannel(plugin, channel);
|
plugin.getServer().getMessenger().registerOutgoingPluginChannel(plugin, channel);
|
||||||
plugin.getServer().getMessenger().registerIncomingPluginChannel(plugin, channel, pluginMessageListener);
|
plugin.getServer().getMessenger().registerIncomingPluginChannel(plugin, channel, pluginMessageListener);
|
||||||
|
|
@ -72,8 +76,8 @@ public class DataLock implements DataLockAPI {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (RequestType requestType : RequestType.values()) {
|
for (RequestType requestType : RequestType.values()) {
|
||||||
for (IdempotencyData next : activeRequests.getIdempotencyData(requestType)) {
|
for (IdempotencyData idempotencyData : activeRequests.getIdempotencyData(requestType)) {
|
||||||
sendPluginMessage(requestType, next);
|
sendPluginMessage(requestType, idempotencyData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ public class DataLockLib extends JavaPlugin {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
dataLock = new DataLock();
|
dataLock = DataLock.getInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import org.bukkit.scheduler.BukkitRunnable;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
class PluginMessageListener implements org.bukkit.plugin.messaging.PluginMessageListener {
|
class PluginMessageListener implements org.bukkit.plugin.messaging.PluginMessageListener {
|
||||||
|
|
||||||
|
|
@ -23,43 +24,45 @@ class PluginMessageListener implements org.bukkit.plugin.messaging.PluginMessage
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
|
ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
|
||||||
String data = in.readUTF();
|
String subChannel = in.readUTF();
|
||||||
boolean result = in.readBoolean();
|
boolean result = in.readBoolean();
|
||||||
|
String data = in.readUTF();
|
||||||
UUID idempotency = UUID.fromString(in.readUTF());
|
UUID idempotency = UUID.fromString(in.readUTF());
|
||||||
IdempotencyData idempotencyData = new IdempotencyData(channel, data, idempotency);
|
IdempotencyData idempotencyData = new IdempotencyData(channel, data, idempotency);
|
||||||
|
DataLockLib.getInstance().getLogger().log(Level.INFO, "Received plugin message on [" + subChannel + "] about data: [" + data + "]");
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
switch (in.readUTF()) {
|
switch (subChannel) {
|
||||||
case "try-lock-result" -> {
|
case "try-lock-result" -> {
|
||||||
if (!alreadyReceived.putIdempotencyData(RequestType.TRY_LOCK, idempotencyData))
|
if (!alreadyReceived.putIdempotencyData(RequestType.TRY_LOCK, idempotencyData))
|
||||||
return;
|
return;
|
||||||
DataLock.getInstance().removeActiveRequest(RequestType.TRY_LOCK, idempotencyData);
|
DataLock.getInstance().removeActiveRequest(RequestType.TRY_LOCK, idempotencyData);
|
||||||
new LockResponseEvent(true, channel, ResponseType.TRY_LOCK_RESULT, data, result);
|
new LockResponseEvent(true, channel, ResponseType.TRY_LOCK_RESULT, data, result).callEvent();
|
||||||
}
|
}
|
||||||
case "queue-lock-failed" -> {
|
case "queue-lock-failed" -> {
|
||||||
if (!alreadyReceived.putIdempotencyData(RequestType.TRY_LOCK, idempotencyData))
|
if (!alreadyReceived.putIdempotencyData(RequestType.TRY_LOCK, idempotencyData))
|
||||||
return;
|
return;
|
||||||
DataLock.getInstance().removeActiveRequest(RequestType.TRY_LOCK, idempotencyData);
|
DataLock.getInstance().removeActiveRequest(RequestType.TRY_LOCK, idempotencyData);
|
||||||
new LockResponseEvent(true, channel, ResponseType.QUEUE_LOCK_FAILED, data, result);
|
new LockResponseEvent(true, channel, ResponseType.QUEUE_LOCK_FAILED, data, result).callEvent();
|
||||||
}
|
}
|
||||||
case "try-unlock-result" -> {
|
case "try-unlock-result" -> {
|
||||||
if (!alreadyReceived.putIdempotencyData(RequestType.TRY_UNLOCK, idempotencyData))
|
if (!alreadyReceived.putIdempotencyData(RequestType.TRY_UNLOCK, idempotencyData))
|
||||||
return;
|
return;
|
||||||
DataLock.getInstance().removeActiveRequest(RequestType.TRY_UNLOCK, idempotencyData);
|
DataLock.getInstance().removeActiveRequest(RequestType.TRY_UNLOCK, idempotencyData);
|
||||||
new LockResponseEvent(true, channel, ResponseType.TRY_UNLOCK_RESULT, data, result);
|
new LockResponseEvent(true, channel, ResponseType.TRY_UNLOCK_RESULT, data, result).callEvent();
|
||||||
}
|
}
|
||||||
case "locked-queue-lock" -> {
|
case "locked-queue-lock" -> {
|
||||||
if (!alreadyReceived.putIdempotencyData(RequestType.TRY_LOCK, idempotencyData))
|
if (!alreadyReceived.putIdempotencyData(RequestType.TRY_LOCK, idempotencyData))
|
||||||
return;
|
return;
|
||||||
DataLock.getInstance().removeActiveRequest(RequestType.TRY_LOCK, idempotencyData);
|
DataLock.getInstance().removeActiveRequest(RequestType.TRY_LOCK, idempotencyData);
|
||||||
new LockResponseEvent(true, channel, ResponseType.LOCKED_QUEUE_LOCK, data, result);
|
new LockResponseEvent(true, channel, ResponseType.LOCKED_QUEUE_LOCK, data, result).callEvent();
|
||||||
}
|
}
|
||||||
case "check-lock-result" -> {
|
case "check-lock-result" -> {
|
||||||
if (!alreadyReceived.putIdempotencyData(RequestType.CHECK_LOCK, idempotencyData))
|
if (!alreadyReceived.putIdempotencyData(RequestType.CHECK_LOCK, idempotencyData))
|
||||||
return;
|
return;
|
||||||
DataLock.getInstance().removeActiveRequest(RequestType.CHECK_LOCK, idempotencyData);
|
DataLock.getInstance().removeActiveRequest(RequestType.CHECK_LOCK, idempotencyData);
|
||||||
new LockResponseEvent(true, channel, ResponseType.CHECK_LOCK_RESULT, data, result);
|
new LockResponseEvent(true, channel, ResponseType.CHECK_LOCK_RESULT, data, result).callEvent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,18 @@
|
||||||
rootProject.name = "DataLockLib"
|
rootProject.name = "DataLockLib"
|
||||||
|
|
||||||
|
val nexusUser = providers.gradleProperty("alttdDevPublishUser").get()
|
||||||
|
val nexusPass = providers.gradleProperty("alttdDevPublishPass").get()
|
||||||
|
|
||||||
include(":api")
|
include(":api")
|
||||||
include(":plugin")
|
include(":plugin")
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven("https://repo.destro.xyz/snapshots") // Altitude - Galaxy
|
maven {
|
||||||
|
name = "papermc"
|
||||||
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user