Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/send-slack-notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Trigger Slack Notification on PR Merge

on:
pull_request:
types: [closed]
branches:
- main

jobs:
notify_slack:
if: github.event.pull_request.merged == true
uses: chargebee/cb-cicd-pipelines/.github/workflows/[email protected]
secrets: inherit
send_notification:
uses: chargebee/cb-idp/.github/workflows/deployment-notification-call.yml@main
14 changes: 12 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ repositories {
}

java {
sourceCompatibility = "17"
targetCompatibility = "17"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}

def loadSpecConfig() {
Expand Down Expand Up @@ -63,6 +63,16 @@ def openApiTask() {
id.set(spec.projectName)
version.set(project.version)
configFile.set("$rootDir/spec/spi/config.yml")

doLast {
def generatedApiDir = "$rootDir/generated/$spec.name/api"
def targetApiDir = "$rootDir/spec/spi/generated/$spec.name/api"
copy {
from generatedApiDir
into targetApiDir
include '**/*.yaml'
}
}
}

validateSpec.dependsOn(validateTaskName)
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sonar_project_key=chargebee_cb-provider-spi
build_project_name=cb-provider-spi
build_group=org.chargebee.spi
build_version=0.0.11
org.gradle.java.home=/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
# Artifactory config to be controlled at build time by CI/CD
artifactory_build_url=https://artifactory.url/maven/build
artifactory_publish_url=https://artifactory.url/maven/publish