Skip to content

Commit

Permalink
0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
sanao1006 committed Apr 14, 2024
1 parent e31713b commit 7dde8b3
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions mlbapi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ android {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
publishing {
singleVariant("release") {
withSourcesJar()
}
}
kotlinOptions {
jvmTarget = "1.8"
}
Expand All @@ -56,15 +61,18 @@ dependencies {
testImplementation(kotlin("test"))
}

afterEvaluate {
publishing {
publications {
create<MavenPublication>("release") {
publishing {
publications {
register<MavenPublication>("") {}
create<MavenPublication>("release") {
groupId = GROUP_ID
artifactId = ARTIFACT_ID
version = VERSION

afterEvaluate {
from(components["release"])
groupId = GROUP_ID
artifactId = ARTIFACT_ID
version = VERSION
}
}
}
}

0 comments on commit 7dde8b3

Please sign in to comment.