Add a publishing step

This commit is contained in:
Aria 2023-04-20 02:35:58 -07:00
parent 812b525460
commit 9659d42724

View file

@ -9,6 +9,7 @@
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id 'maven-publish'
}
repositories {
@ -24,3 +25,16 @@ dependencies {
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:31.1-jre'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "file://${project.projectDir}/final"
}
}
}