ci: change the ways to include dependencies in the module of api
This commit is contained in:
parent
61d3a8280e
commit
eb44c6bab4
@ -7,11 +7,11 @@ val projectArtifactId: String by extra
|
|||||||
val projectVersion: String by extra
|
val projectVersion: String by extra
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java-library")
|
||||||
id("com.github.johnrengelman.shadow") version "8.1.1"
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
||||||
}
|
}
|
||||||
allprojects {
|
allprojects {
|
||||||
apply(plugin = "java")
|
apply(plugin = "java-library")
|
||||||
val groupName by extra("cn.wzpmc")
|
val groupName by extra("cn.wzpmc")
|
||||||
val projectArtifactId by extra("my-bot")
|
val projectArtifactId by extra("my-bot")
|
||||||
val projectVersion by extra("1.0.3")
|
val projectVersion by extra("1.0.3")
|
||||||
@ -24,11 +24,10 @@ allprojects {
|
|||||||
compileOnly("org.projectlombok:lombok:1.18.34")
|
compileOnly("org.projectlombok:lombok:1.18.34")
|
||||||
annotationProcessor("org.projectlombok:lombok:1.18.34")
|
annotationProcessor("org.projectlombok:lombok:1.18.34")
|
||||||
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2
|
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2
|
||||||
implementation("com.alibaba.fastjson2:fastjson2:2.0.52")
|
api("com.alibaba.fastjson2:fastjson2:2.0.52")
|
||||||
implementation("com.mojang:brigadier:1.0.18")
|
api("com.mojang:brigadier:1.0.18")
|
||||||
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api
|
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api
|
||||||
implementation("org.apache.logging.log4j:log4j-api:2.23.1")
|
api("org.apache.logging.log4j:log4j-api:2.23.1")
|
||||||
|
|
||||||
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||||
}
|
}
|
||||||
@ -48,12 +47,12 @@ dependencies {
|
|||||||
exclude(group = "org.apache.logging.log4j", module = "log4j-core")
|
exclude(group = "org.apache.logging.log4j", module = "log4j-core")
|
||||||
exclude(group = "org.apache.logging.log4j", module = "log4j-api")
|
exclude(group = "org.apache.logging.log4j", module = "log4j-api")
|
||||||
}
|
}
|
||||||
// https://mvnrepository.com/artifact/io.netty/netty-all
|
|
||||||
implementation("io.netty:netty-all:4.1.112.Final")
|
|
||||||
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
|
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
|
||||||
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
|
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
|
||||||
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-jul
|
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-jul
|
||||||
implementation("org.apache.logging.log4j:log4j-jul:2.23.1")
|
implementation("org.apache.logging.log4j:log4j-jul:2.23.1")
|
||||||
|
// https://mvnrepository.com/artifact/io.netty/netty-all
|
||||||
|
implementation("io.netty:netty-all:4.1.112.Final")
|
||||||
// https://mvnrepository.com/artifact/org.yaml/snakeyaml
|
// https://mvnrepository.com/artifact/org.yaml/snakeyaml
|
||||||
implementation("org.yaml:snakeyaml:2.2")
|
implementation("org.yaml:snakeyaml:2.2")
|
||||||
// https://mvnrepository.com/artifact/org.jline/jline
|
// https://mvnrepository.com/artifact/org.jline/jline
|
||||||
|
@ -3,7 +3,6 @@ val groupName: String by extra
|
|||||||
val projectArtifactId = "mybot-api"
|
val projectArtifactId = "mybot-api"
|
||||||
val projectVersion: String by extra
|
val projectVersion: String by extra
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user