mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2025-04-20 01:27:07 +00:00
move version into the api
This commit is contained in:
parent
bf3c7ea8e8
commit
a8bd655ef5
@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
|
id("net.kyori.blossom") version "1.2.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -25,6 +26,12 @@ dependencies {
|
|||||||
|
|
||||||
description = "RedisBungee interafaces"
|
description = "RedisBungee interafaces"
|
||||||
|
|
||||||
|
blossom {
|
||||||
|
replaceToken("@version@", "$version")
|
||||||
|
// replaceToken("@git_branch@", "")
|
||||||
|
// replaceToken("@git_commit@", "")
|
||||||
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
withJavadocJar()
|
withJavadocJar()
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.imaginarycode.minecraft.redisbungee;
|
||||||
|
|
||||||
|
public class Constants {
|
||||||
|
|
||||||
|
public final static String VERSION = "@version@";
|
||||||
|
|
||||||
|
// public final static String GIT_BRANCH = "@git_branch@";
|
||||||
|
|
||||||
|
// public final static String GIT_COMMIT = "@git_commit@";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -3,7 +3,7 @@ plugins {
|
|||||||
`maven-publish`
|
`maven-publish`
|
||||||
id("com.github.johnrengelman.shadow") version "8.1.1"
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
||||||
id("xyz.jpenilla.run-velocity") version "2.0.0"
|
id("xyz.jpenilla.run-velocity") version "2.0.0"
|
||||||
id("net.kyori.blossom") version "1.2.0"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -29,17 +29,13 @@ java {
|
|||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
blossom {
|
|
||||||
replaceToken("@version@", "$version")
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
withType<Javadoc> {
|
withType<Javadoc> {
|
||||||
val options = options as StandardJavadocDocletOptions
|
val options = options as StandardJavadocDocletOptions
|
||||||
options.use()
|
options.use()
|
||||||
options.isDocFilesSubDirs = true
|
options.isDocFilesSubDirs = true
|
||||||
options.links(
|
options.links(
|
||||||
"https://jd.papermc.io/velocity/3.0.0/", // bungeecord api
|
"https://jd.papermc.io/velocity/3.0.0/", // velocity api
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
runVelocity {
|
runVelocity {
|
||||||
|
@ -57,7 +57,7 @@ import java.util.*;
|
|||||||
import java.util.concurrent.*;
|
import java.util.concurrent.*;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
@Plugin(id = "redisbungee", name = "RedisBungee", version = "@version@", url = "https://github.com/ProxioDev/RedisBungee", authors = {"astei", "ProxioDev"})
|
@Plugin(id = "redisbungee", name = "RedisBungee", version = Constants.VERSION, url = "https://github.com/ProxioDev/RedisBungee", authors = {"astei", "ProxioDev"})
|
||||||
public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player>, ConfigLoader {
|
public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player>, ConfigLoader {
|
||||||
private final ProxyServer server;
|
private final ProxyServer server;
|
||||||
private final Logger logger;
|
private final Logger logger;
|
||||||
|
Loading…
Reference in New Issue
Block a user