This commit is contained in:
kento2 2026-08-01 23:12:48 +02:00
parent 0086329da9
commit dd25337ed6
21 changed files with 253 additions and 523 deletions

18
kencommandapi-core/BUILD Normal file
View file

@ -0,0 +1,18 @@
load("@rules_java//java:java_library.bzl", "java_library")
load("@rules_jvm_external//:defs.bzl", "artifact", "java_plugin_artifact")
java_library(
name = "core",
srcs = glob(["src/main/**/*.java"]),
visibility = ["//visibility:public"],
deps = [
artifact("com.leakyabstractions:result-api"),
artifact("com.leakyabstractions:result"),
artifact("org.jetbrains:annotations"),
artifact("com.google.guava:guava"),
artifact("org.slf4j:slf4j-api"),
artifact("net.kyori:adventure-api"),
artifact("org.projectlombok:lombok"),
],
plugins = [ "//third_party:lombok_plugin" ],
)

View file

@ -1,36 +0,0 @@
plugins {
id("java")
id("scrow.scrow-publish")
id("scrow.base-dependencies")
id("scrow.java-library")
}
dependencies {
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation("org.junit.jupiter:junit-jupiter-api:6.1.1")
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine
testImplementation("org.junit.jupiter:junit-jupiter-engine:6.1.1")
// https://mvnrepository.com/artifact/org.junit.platform/junit-platform-launcher
testImplementation("org.junit.platform:junit-platform-launcher:6.1.1")
testImplementation(libs.adventure.api)
compileOnly(libs.adventure.api)
}
tasks.test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
}
publishing {
publications {
create<MavenPublication>("KenCommandAPI") {
groupId = rootProject.group.toString()
version = rootProject.version.toString()
artifactId = project.name
from(components["java"])
}
}
}