From 11306ec9cf622fb4be95e1ed4450ee00f4b6aa1d Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Sun, 4 Dec 2022 00:18:45 +0100 Subject: [PATCH] Test making BlueMapCommon and BlueMapCore available to jitpack --- BlueMapCommon/build.gradle.kts | 13 +++++++++++++ BlueMapCore/build.gradle.kts | 15 ++++++++++++++- jitpack.yml | 2 ++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 jitpack.yml diff --git a/BlueMapCommon/build.gradle.kts b/BlueMapCommon/build.gradle.kts index 351d887d..d8ef2016 100644 --- a/BlueMapCommon/build.gradle.kts +++ b/BlueMapCommon/build.gradle.kts @@ -4,6 +4,7 @@ import java.io.IOException plugins { java `java-library` + `maven-publish` id("com.diffplug.spotless") version "6.1.2" id ("com.github.node-gradle.node") version "3.0.1" } @@ -96,3 +97,15 @@ tasks.register("zipWebapp", type = Zip::class) { tasks.processResources { dependsOn("zipWebapp") } + +publishing { + publications { + create("maven") { + groupId = project.group.toString() + artifactId = project.name + version = project.version.toString() + + from(components["java"]) + } + } +} diff --git a/BlueMapCore/build.gradle.kts b/BlueMapCore/build.gradle.kts index 743bc8b2..24a73c40 100644 --- a/BlueMapCore/build.gradle.kts +++ b/BlueMapCore/build.gradle.kts @@ -3,6 +3,7 @@ import java.io.IOException plugins { java `java-library` + `maven-publish` id("com.diffplug.spotless") version "6.1.2" } @@ -131,4 +132,16 @@ fun zipResourcesTask(resourceId: String) { //always update the zip before build tasks.processResources { dependsOn("zipResourceExtensions") -} \ No newline at end of file +} + +publishing { + publications { + create("maven") { + groupId = project.group.toString() + artifactId = project.name + version = project.version.toString() + + from(components["java"]) + } + } +} diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..46c85291 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: + - openjdk11 \ No newline at end of file