chore: publish jar with dependencies

This commit is contained in:
Lucaskyy 2022-04-08 22:49:37 +02:00 committed by oSumAtrIX
parent 139a23b750
commit a8653fe6a0
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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)
}
}
}
}