funny velocity version
This commit is contained in:
+3
-8
@@ -18,6 +18,8 @@ allprojects {
|
|||||||
reports.html.isEnabled = false
|
reports.html.isEnabled = false
|
||||||
reports.junitXml.isEnabled = false
|
reports.junitXml.isEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -41,14 +43,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.withType<ProcessResources> {
|
|
||||||
include("**/*.yml")
|
|
||||||
filter<org.apache.tools.ant.filters.ReplaceTokens>(
|
|
||||||
"tokens" to mapOf(
|
|
||||||
"VERSION" to project.version.toString()
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.shadowJar {
|
tasks.shadowJar {
|
||||||
relocate("us.ajg0702.utils", "us.ajg0702.queue.utils")
|
relocate("us.ajg0702.utils", "us.ajg0702.queue.utils")
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ plugins {
|
|||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "us.ajg0702.queue.api"
|
group = "us.ajg0702.queue.common"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
plugins {
|
||||||
|
`java-library`
|
||||||
|
`maven-publish`
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "us.ajg0702.queue.platforms.velocity"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven { url = uri("https://repo.ajg0702.us") }
|
||||||
|
maven { url = uri("https://nexus.velocitypowered.com/repository/maven-public/") }
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly("net.kyori:adventure-api:4.8.1")
|
||||||
|
compileOnly("com.google.guava:guava:30.1.1-jre")
|
||||||
|
compileOnly("us.ajg0702:ajUtils:1.1.5")
|
||||||
|
|
||||||
|
compileOnly("com.velocitypowered:velocity-api:3.0.0")
|
||||||
|
annotationProcessor("com.velocitypowered:velocity-api:3.0.0")
|
||||||
|
|
||||||
|
implementation(project(":common"))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
tasks.withType<ProcessResources> {
|
||||||
|
from(sourceSets.main.get().java.srcDirs)
|
||||||
|
filter<org.apache.tools.ant.filters.ReplaceTokens>(
|
||||||
|
"tokens" to mapOf(
|
||||||
|
"VERSION" to project.version.toString()
|
||||||
|
)
|
||||||
|
).into("$buildDir/src")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
exclude("**/*.java");
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.compileJava {
|
||||||
|
source = tasks.getByName("processResources").outputs.files.asFileTree;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("mavenJava") {
|
||||||
|
artifact(tasks["jar"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
|
||||||
|
val mavenUrl = "https://repo.ajg0702.us/releases"
|
||||||
|
|
||||||
|
if(!System.getenv("REPO_TOKEN").isNullOrEmpty()) {
|
||||||
|
maven {
|
||||||
|
url = uri(mavenUrl)
|
||||||
|
name = "ajRepo"
|
||||||
|
|
||||||
|
credentials {
|
||||||
|
username = "plugins"
|
||||||
|
password = System.getenv("REPO_TOKEN")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
package us.ajg0702.queue.platforms.velocity;
|
||||||
|
|
||||||
|
import com.velocitypowered.api.plugin.Plugin;
|
||||||
|
|
||||||
|
@Plugin(id = "ajqueue", name = "ajQueue", version = "@VERSION@")
|
||||||
|
public class VelocityQueue {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package us.ajg0702.queue.platforms.velocity;
|
||||||
|
|
||||||
|
public class test {
|
||||||
|
public static int i = 0;
|
||||||
|
}
|
||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
rootProject.name = "ajQueue"
|
rootProject.name = "ajQueue"
|
||||||
|
|
||||||
include(":api")
|
include(":api")
|
||||||
include(":common")
|
include(":common")
|
||||||
|
include(":platforms:velocity")
|
||||||
Reference in New Issue
Block a user