Skip to content

Commit

Permalink
Configure publishing for Jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Oct 28, 2024
1 parent fcffe90 commit a5edee0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ plugins {
alias(libs.plugins.kotlin.jvm)

`java-library`

id("maven-publish")
}

group = "foundation.esoteric"
version = "0.0.1"

repositories {
mavenCentral()

Expand Down Expand Up @@ -33,6 +38,21 @@ java {
}
}

tasks.named<Jar>("jar") {
archiveFileName.set("${rootProject.name}-${project.version}.jar")
}

tasks.named<Test>("test") {
useJUnitPlatform()
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = group.toString()
artifactId = rootProject.name
version = version.toString()
}
}
}

0 comments on commit a5edee0

Please sign in to comment.