diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7ca43a4..494a445c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: push: branches: [main] +env: + RELEASE: true + jobs: changes: runs-on: ubuntu-latest diff --git a/inngest-spring-boot-adapter/build.gradle.kts b/inngest-spring-boot-adapter/build.gradle.kts index 6fec061e..11e82d7e 100644 --- a/inngest-spring-boot-adapter/build.gradle.kts +++ b/inngest-spring-boot-adapter/build.gradle.kts @@ -23,7 +23,8 @@ repositories { } dependencies { - api("com.inngest:inngest:[0.0, 0.1)") + val pkg = if (System.getenv("RELEASE") != null) "com.inngest:inngest:[0.0, 0.1)" else project(":inngest") + api(pkg) implementation("org.springframework.boot:spring-boot-starter-web") testImplementation("org.springframework.boot:spring-boot-starter-test") @@ -72,7 +73,7 @@ publishing { pom { name.set(project.name) - description.set("Inngest SDK for Kotlin/Java") + description.set(project.description) url.set("https://github.com/inngest/inngest-kt") inceptionYear.set("2024") diff --git a/inngest-spring-boot-demo/build.gradle.kts b/inngest-spring-boot-demo/build.gradle.kts index f24c1b96..ec94a5be 100644 --- a/inngest-spring-boot-demo/build.gradle.kts +++ b/inngest-spring-boot-demo/build.gradle.kts @@ -17,19 +17,10 @@ java { repositories { mavenCentral() - - maven { - url = uri("https://maven.pkg.github.com/inngest/inngest-kt") - credentials { - username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") - password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") - } - } } dependencies { - implementation("com.inngest:inngest:0.0.2") - implementation("com.inngest:inngest-spring-boot-adapter:0.0.+") + implementation(project(":inngest-spring-boot-adapter")) implementation("org.springframework.boot:spring-boot-starter-web") implementation("com.squareup.okhttp3:okhttp:4.12.0")