From c16e0f089efeb24f29ba956216dad2eb141c7805 Mon Sep 17 00:00:00 2001 From: Pavel Kunyavskiy Date: Sat, 3 Aug 2024 10:38:39 +0200 Subject: [PATCH] Fixes for build on jitpack --- buildSrc/src/main/kotlin/live.app-conventions.gradle.kts | 4 ++++ buildSrc/src/main/kotlin/live.kotlin-conventions.gradle.kts | 4 ---- jitpack.yml | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 jitpack.yml diff --git a/buildSrc/src/main/kotlin/live.app-conventions.gradle.kts b/buildSrc/src/main/kotlin/live.app-conventions.gradle.kts index 4cc3e1981..f7289b4db 100644 --- a/buildSrc/src/main/kotlin/live.app-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/live.app-conventions.gradle.kts @@ -8,6 +8,10 @@ plugins { id("com.github.johnrengelman.shadow") } +tasks.named("jar") { + archiveClassifier = "just" +} + tasks { register("release") { destinationDir = rootDir.resolve("artifacts/") diff --git a/buildSrc/src/main/kotlin/live.kotlin-conventions.gradle.kts b/buildSrc/src/main/kotlin/live.kotlin-conventions.gradle.kts index 6533cfa7d..db9787b2e 100644 --- a/buildSrc/src/main/kotlin/live.kotlin-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/live.kotlin-conventions.gradle.kts @@ -13,10 +13,6 @@ java { } } -tasks.named("jar") { - archiveClassifier = "just" -} - tasks.named("test") { useJUnitPlatform() } diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 000000000..9ff8d725b --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,4 @@ +jdk: + - openjdk17 +install: + - ./gradlew publishToMavenLocal \ No newline at end of file