From 8c7b576152fd1e260ee63030fefdc44099200e61 Mon Sep 17 00:00:00 2001 From: rhenwinch Date: Sat, 10 Feb 2024 23:07:04 +0800 Subject: [PATCH] add: publish :core:util and :provider:base to jitpack --- .github/workflows/jitpack.yml | 11 +++++++++++ build.gradle.kts | 23 +++++++++++++++++++++++ provider/base/build.gradle.kts | 1 - 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/jitpack.yml diff --git a/.github/workflows/jitpack.yml b/.github/workflows/jitpack.yml new file mode 100644 index 000000000..682f6be29 --- /dev/null +++ b/.github/workflows/jitpack.yml @@ -0,0 +1,11 @@ +name: Start Jitpack + +# Controls when the workflow will run +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: js6pak/start-jitpack@master \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 71d537267..6a5688bed 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,6 +17,7 @@ plugins { alias(libs.plugins.ksp) apply false alias(libs.plugins.room) apply false id("com.osacky.doctor") version "0.9.1" + id("maven-publish") } // Generate a mf FAT AHH JAR! @@ -65,4 +66,26 @@ tasks.register("generateStubsJar") { } } } +} + +subprojects { + apply(plugin = "maven-publish") + + publishing { + repositories { + mavenLocal() + + val token = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") + + if (token != null) { + maven { + credentials { + username = "rhenwinch" + password = token + } + setUrl("https://maven.pkg.github.com/rhenwinch/flixclusive") + } + } + } + } } \ No newline at end of file diff --git a/provider/base/build.gradle.kts b/provider/base/build.gradle.kts index 8385a2dfc..f65e5ee87 100644 --- a/provider/base/build.gradle.kts +++ b/provider/base/build.gradle.kts @@ -14,7 +14,6 @@ dependencies { api(projects.core.util) api(projects.extractor.base) - implementation(projects.model.provider) implementation(libs.coroutines.test) implementation(libs.junit) implementation(libs.mockk)