diff options
author | Linnea Gräf <nea@nea.moe> | 2024-03-07 12:09:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 12:09:49 +0100 |
commit | 3bf6a44e98a25be19ceda134ccb321a16353873a (patch) | |
tree | 0225002350add4d884ec8b06d4f2c30366cbe2f3 | |
parent | a5214a28503a37b358210cf66ed85619b959a829 (diff) | |
download | skyhanni-3bf6a44e98a25be19ceda134ccb321a16353873a.tar.gz skyhanni-3bf6a44e98a25be19ceda134ccb321a16353873a.tar.bz2 skyhanni-3bf6a44e98a25be19ceda134ccb321a16353873a.zip |
Add maven info (#935)
-rw-r--r-- | build.gradle.kts | 29 | ||||
-rw-r--r-- | jitpack.yml | 3 |
2 files changed, 32 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index f3be98715..e932aaa36 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,6 +10,7 @@ plugins { id("com.github.johnrengelman.shadow") version "7.1.2" kotlin("jvm") version "1.9.0" id("com.bnorm.power.kotlin-power-assert") version "0.13.0" + `maven-publish` id("moe.nea.shot") version "1.0.0" } @@ -257,3 +258,31 @@ val compileTestKotlin: KotlinCompile by tasks compileTestKotlin.kotlinOptions { jvmTarget = "1.8" } +val sourcesJar by tasks.creating(Jar::class) { + destinationDirectory.set(layout.buildDirectory.dir("badjars")) + archiveClassifier.set("src") + from(sourceSets.main.get().allSource) +} + +publishing.publications { + create<MavenPublication>("maven") { + artifact(tasks.remapJar) + artifact(sourcesJar) { classifier = "sources" } + pom { + name.set("SkyHanni") + licenses { + license { + name.set("GNU Lesser General Public License") + url.set("https://github.com/hannibal002/SkyHanni/blob/HEAD/LICENSE") + } + } + developers { + developer { name.set("hannibal002") } + developer { name.set("The SkyHanni contributors") } + } + } + } +} + + + diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 000000000..bbaedec93 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,3 @@ +jdk: + - openjdk17 + |