Update event bus library, fix compile errors
This commit is contained in:
parent
0161fef673
commit
ef08583850
5 changed files with 58 additions and 93 deletions
27
build.gradle
27
build.gradle
|
@ -20,6 +20,7 @@ archivesBaseName = "LibAC"
|
|||
java {
|
||||
toolchain.languageVersion = JavaLanguageVersion.of(17)
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
}
|
||||
|
||||
def determinePatchVersion = {
|
||||
|
@ -54,12 +55,6 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
|
||||
// This dependency is exported to consumers, that is to say found on their compile classpath.
|
||||
api 'org.apache.commons:commons-math3:3.6.1'
|
||||
|
||||
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
|
||||
implementation 'com.google.guava:guava:31.1-jre'
|
||||
|
||||
implementation "dev.zontreck:EventsBus:${Bus_API}.${Bus_Patch}"
|
||||
api "dev.zontreck:EventsBus:${Bus_API}.${Bus_Patch}:sources"
|
||||
}
|
||||
|
@ -71,19 +66,7 @@ publishing {
|
|||
mavenJava(MavenPublication) {
|
||||
artifact sourcesJar
|
||||
artifact jar
|
||||
|
||||
|
||||
pom.withXml {
|
||||
def dependenciesNode = asNode().appendNode('dependencies')
|
||||
|
||||
//Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
|
||||
configurations.compile.allDependencies.each {
|
||||
def dependencyNode = dependenciesNode.appendNode('dependency')
|
||||
dependencyNode.appendNode('groupId', it.group)
|
||||
dependencyNode.appendNode('artifactId', it.name)
|
||||
dependencyNode.appendNode('version', it.version)
|
||||
}
|
||||
}
|
||||
artifact javadocJar
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
|
@ -99,9 +82,3 @@ publishing {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
compileJava.finalizedBy("sourcesJar")
|
||||
artifacts {
|
||||
archives jar
|
||||
archives sourcesJar
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue