Skip to content

Commit

Permalink
build: publish allay-api to maven local
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jun 15, 2024
1 parent 3a6b1da commit 626f85a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Allay-API/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ tasks.clean {
rootProject.rootDir.resolve(".run").listFiles { f -> !f.name.equals("Allay.run.xml") }?.forEach {
delete(it)
}
}

publishing {
publications {
create<MavenPublication>("allayAPI") {
from(components["java"])
}
}
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/buildlogic.common.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories {
}

dependencies {
//libs.versions.toml cannot be used in public plugin scripts
// NOTICE: libs.versions.toml cannot be used in public plugin scripts
compileOnly("org.projectlombok:lombok:1.18.32")

testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
Expand Down
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ gson = { group = "com.google.code.gson", name = "gson", version = "2.11.0" }
snakeyaml = { group = "org.yaml", name = "snakeyaml", version = "2.2" }
# Util library
commonslang3 = { group = "org.apache.commons", name = "commons-lang3", version = "3.14.0" }
# Support Annotation
lombok = { group = "org.projectlombok", name = "lombok", version = "1.18.32" }
annotations = { group = "org.jetbrains", name = "annotations", version = "24.1.0" }
# Zlib
libdeflate = { group = "cn.powernukkitx", name = "libdeflate-java", version = "0.0.2-PNX" }
Expand Down

0 comments on commit 626f85a

Please sign in to comment.