mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
chore: publish jar with dependencies
This commit is contained in:
parent
139a23b750
commit
a8653fe6a0
1 changed files with 12 additions and 0 deletions
|
@ -2,6 +2,7 @@ plugins {
|
|||
kotlin("jvm") version "1.6.10"
|
||||
java
|
||||
`maven-publish`
|
||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
||||
}
|
||||
|
||||
group = "app.revanced"
|
||||
|
@ -26,6 +27,12 @@ tasks.test {
|
|||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
||||
java {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
|
@ -46,5 +53,10 @@ publishing {
|
|||
register<MavenPublication>("gpr") {
|
||||
from(components["java"])
|
||||
}
|
||||
register<MavenPublication>("shadow") {
|
||||
project.extensions.configure<com.github.jengelman.gradle.plugins.shadow.ShadowExtension> {
|
||||
component(this@register)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue