Add a publishing step
This commit is contained in:
parent
812b525460
commit
9659d42724
1 changed files with 14 additions and 0 deletions
14
build.gradle
14
build.gradle
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue