Skip to content

Commit

Permalink
add: publish :core:util and :provider:base to jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenwinch committed Feb 10, 2024
1 parent 3fd264b commit 8c7b576
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/jitpack.yml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -65,4 +66,26 @@ tasks.register<Jar>("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")
}
}
}
}
}
1 change: 0 additions & 1 deletion provider/base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8c7b576

Please sign in to comment.