Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

Commit

Permalink
build(gradle): fixing deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Staszewski committed Feb 18, 2019
1 parent 439375d commit ee68c63
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ subprojects {
}

val javadoc by tasks.getting(Javadoc::class) {
if (sourceSets.main.get().allSource.isEmpty || name != "all") {
enabled = false
}
options {
encoding = "UTF-8"
}
Expand Down Expand Up @@ -146,12 +143,12 @@ subprojects {
publications {
register("maven", MavenPublication::class) {
artifactId = base.archivesBaseName
if (name != "bom") {
if (name != "all") {
if (project.name != "bom") {
if (project.name != "all") {
from(components["java"])
artifact(sourceJar)
artifact(shadowJar)
}
artifact(shadowJar)
artifact(javadocJar)
artifact(kdocJar)
}
Expand Down Expand Up @@ -206,15 +203,15 @@ subprojects {
dryRun = false
publish = true
override = false
pkg.closureOf<BintrayExtension.PackageConfig> {
pkg.apply {
userOrg = bintrayUser
repo = "GlitchLib"
name = "Glitch"
desc = "Java API Wrapper for Twitch"
setLicenses("MIT")
publicDownloadNumbers = true
vcsUrl = "https://github.com/GlitchLib/glitch.git"
version.closureOf<BintrayExtension.VersionConfig> {
version.apply {
name = rootProject.version.toString()
vcsTag = "v${rootProject.version}"
released = Date().toString()
Expand Down

0 comments on commit ee68c63

Please sign in to comment.