From cf4e2eb1679873b3f8067569c50f17bdf743c81c Mon Sep 17 00:00:00 2001 From: lakshanss Date: Fri, 17 Nov 2023 15:56:29 +0530 Subject: [PATCH 1/2] Fix gradle build --- build.gradle | 2 +- gradle.properties | 12 +- gradle/wrapper/gradle-wrapper.properties | 4 +- gradlew | 283 ++++++++++++++--------- gradlew.bat | 17 +- openapi.properties | 20 +- 6 files changed, 206 insertions(+), 132 deletions(-) diff --git a/build.gradle b/build.gradle index 18a90d51b..d8eb51eb6 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } plugins { - id 'java' + id 'java-library' id "com.github.spotbugs" version "${githubSpotbugsVersion}" id "com.github.johnrengelman.shadow" version "${githubJohnrengelmanShadowVersion}" id "de.undercouch.download" version "${underCouchDownloadVersion}" diff --git a/gradle.properties b/gradle.properties index 8f75f148a..b1095730c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,11 +2,11 @@ org.gradle.caching=true group=org.ballerinalang version=0.6.0-alpha9-SNAPSHOT ballerinaLangVersion=2.0.0-alpha9-20210429-232900-7e5ce4cf -puppycrawlCheckstyleVersion=8.18 -testngVersion=6.14.3 +puppycrawlCheckstyleVersion=10.12.1 +testngVersion=7.6.1 slf4jVersion=1.7.30 -githubSpotbugsVersion=4.0.5 -githubJohnrengelmanShadowVersion=5.2.0 -underCouchDownloadVersion=4.0.4 +githubSpotbugsVersion=5.0.14 +githubJohnrengelmanShadowVersion=8.1.1 +underCouchDownloadVersion=5.4.0 researchgateReleaseVersion=2.8.0 -checkstyleToolVersion=7.8.2 +checkstyleToolVersion=10.12.1 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index be52383ef..9f4197d5f 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 4f906e0c8..fbf29cc49 100755 --- a/gradlew +++ b/gradlew @@ -1,7 +1,7 @@ -#!/usr/bin/env sh +#!/bin/sh # -# Copyright 2015 the original author or authors. +# Copyright © 2015-2021 the original authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,67 +17,98 @@ # ############################################################################## -## -## Gradle start up script for UN*X -## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# ############################################################################## # Attempt to set APP_HOME + # Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" +MAX_FD=maximum warn () { echo "$*" -} +} >&2 die () { echo echo "$*" echo exit 1 -} +} >&2 # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -87,9 +118,9 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" + JAVACMD=$JAVA_HOME/jre/sh/java else - JAVACMD="$JAVA_HOME/bin/java" + JAVACMD=$JAVA_HOME/bin/java fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME @@ -98,88 +129,120 @@ Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." + fi fi # Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac fi -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. # For Cygwin or MSYS, switch paths to Windows format before running java -if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) fi - i=`expr $i + 1` + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg done - case $i in - 0) set -- ;; - 1) set -- "$args0" ;; - 2) set -- "$args0" "$args1" ;; - 3) set -- "$args0" "$args1" "$args2" ;; - 4) set -- "$args0" "$args1" "$args2" "$args3" ;; - 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac fi -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=`save "$@"` -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' -exec "$JAVACMD" "$@" +exec "$JAVACMD" "$@" \ No newline at end of file diff --git a/gradlew.bat b/gradlew.bat index ac1b06f93..c138ebb7f 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. @@ -75,15 +76,17 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal -:omega +:omega \ No newline at end of file diff --git a/openapi.properties b/openapi.properties index 54521c569..2f13c2f57 100644 --- a/openapi.properties +++ b/openapi.properties @@ -1,10 +1,10 @@ -#Tue May 17 18:19:31 GMT 2022 -openapi/earthref.fiesta=9122b948cc69e92c86db457effc12d6e -openapi/ebay.recommendation=10479509bcd73f42421375047b03a3e9 -openapi/iris.disputeresponder=c893b56cd2f7fc273d8af2f4211f732f +#Fri Nov 17 16:34:12 IST 2023 openapi/soundcloud=9a68a3b13c7727cbee7d909490a86448 -openapi/rumble.run=1fe8f5adc8a4d5a8e82cac0ca19a3f70 +openapi/iris.disputeresponder=c893b56cd2f7fc273d8af2f4211f732f +openapi/ebay.recommendation=10479509bcd73f42421375047b03a3e9 +openapi/earthref.fiesta=9122b948cc69e92c86db457effc12d6e openapi/nytimes.mostpopular=e7aae4d66b8c26ad0544c98405830e7c +openapi/rumble.run=1fe8f5adc8a4d5a8e82cac0ca19a3f70 openapi/covid19=84bcb2a8ffccdab12725b550027dfd96 openapi/azure.textanalytics=ae4f383ef4a48b8d7189395c32d30f44 openapi/chaingateway=c66a61e0cad244edce2cd3de29eb2925 @@ -26,8 +26,8 @@ openapi/geonames=de9e21000962fd59bf0ae2bb87cc05f7 openapi/ipgeolocation=2578a2f550f96691abe43e7fc3e5ce50 openapi/sap.successfactors.litmos=fed86a711afd3ccadf748371113d1b65 openapi/iris.lead=853824ec31e1fe4047e2505fbb2b2b51 -openapi/interzoid.statedata=d080a671810874357086acde64f4f61b openapi/pushcut=6bf6173274f230ad33e635af8eb4ccb3 +openapi/interzoid.statedata=d080a671810874357086acde64f4f61b openapi/extpose=7edd41dd3da28fd5b1209f134c4da764 openapi/godaddy.orders=4e538ddf2c8681b379a55b1eab0caaf8 openapi/googleapis.youtube.reporting=3ffd9d21a15f35a2d3743eeafba87907 @@ -56,6 +56,7 @@ openapi/files.com=40aa1a859fde29a4b02aaa731ab51049 openapi/owler=5691538cbe2f1175d0efd6747a2e7990 openapi/shortcut=d0d412d4a31094286afe68cdc0aa1efc openapi/isendpro=fcfd4a4a4882fe065638010a3b7fdfa4 +openapi/sugarcrm=8e3568f99652d03f39fbc598771368d9 openapi/themoviedb=217c0b5d5a8a1c5995cbf0a6ad8b797a openapi/saps4hana.pp.idm=fcc5fc6d486ffc153f2afb64c17cbeb9 openapi/fraudlabspro.frauddetection=25ccbf51d2e411f71ce759b862ffef67 @@ -80,7 +81,7 @@ openapi/gototraining=0fe777ca2117f0b4ad4f2abbcf419247 openapi/beezup.merchant=a5e98ead19b87ae02f1cb878a2025605 openapi/cloudmersive.validate=25500448f0485c99f8d540084e256717 openapi/nytimes.topstories=845d55c573d96aff7f704640d3cb7088 -openapi/aayu.mftg.as2=d1c597989380f028db68ed7a097e9c22 +openapi/aayu.mftg.as2=2d573e196e8e24f84d143bc06788af5e openapi/cloudmersive.currency=ee9c4dd51db107e9fb374a526b7ccab3 openapi/spotify=bfae4f91ff8677b304e7ef46ed5cf16c openapi/sinch.verification=eec6178e1071641985bb80b4343e07fc @@ -149,6 +150,7 @@ openapi/zuora.collection=cca9340c03cf605db29d1ac12c4220b0 openapi/apple.appstore=f763d8aed49ded187bf51c8958458787 openapi/whatsapp.business=01f11938d1eeb12660369e4a3973f79a openapi/elasticsearch=2615ab90858f2de2e7f6acf68c13e64d +openapi/amadeus.flightcreateorders=9e067cab9559c0c85d4a7417c621bd3c openapi/cloudmersive.security=3b972179190ab6a7b2a68951f45dbe6f openapi/notion=b246b90ee714ac3f427b2646d887da78 openapi/paylocity=3917c13506e100df207dc62db28db80c @@ -208,6 +210,7 @@ openapi/apideck.lead=74320404edbf9bd29e31cf6e1b38b743 openapi/azure.datalake=54844ce90f9a03cf24cca955b455ab44 openapi/iris.esignature=66920b0dddb6cf1189cd892f6e9a82b5 openapi/workday.payroll=da35046ba3ee96e82b42fda5d3e068c6 +openapi/impala=1c30d97fd05ad9b13fc31381453fceb9 openapi/disqus=aa2d9cdaa4a728230b16f0610b50fd02 openapi/plaid=4cad3985208dcddf8f61fc8b5d5d3681 openapi/saps4hana.itcm.accountreceivable=09de2a2653cfc828870db7920f9893b7 @@ -284,6 +287,7 @@ openapi/googleapis.cloudscheduler=415586b7a84ef3397b2d7e45094b545f openapi/nytimes.semantic=6300120dc51fa5a48a3cd316c7030fc2 openapi/pocketsmith=6facfc80a18311f775655a97a29c1a89 openapi/googleapis.youtube.data=8c6fc160cd012bf00fd4c48924b911dd +openapi/zoho.crm.rest=f7092bf77e3fa15eaf6870bfe8923cce openapi/godaddy.agreements=9997ccca4084e0b342a0ba8fb75b5673 openapi/brex.onboarding=7c4b3debae14aa0ccce63acd8503b09e openapi/sinch.sms=e2c10cb517776e0fc105c4b0e56abe71 @@ -344,10 +348,12 @@ openapi/googleapis.books=0d3e3d06baebb2cd5be344a1bf6ab93b openapi/pagerduty=dc874636d432f016ab282f8e97659b24 openapi/gotomeeting=413f6f43ddd1ed52f3237615b6ce0492 openapi/zuora.revenue=99b799f9901f0538e21b826bc4c79825 +openapi/amadeus.flightofferssearch=5be797c127dce1f8b9c11b480f0f8bf9 openapi/googleapis.classroom=76883147a48ccdc468a7bc32497330f6 openapi/xero.finance=c6725a73994d0b12bb472b76b63828a1 openapi/dev.to=7d7905f678235401f25e4e0a4d5faca7 openapi/opendesign=bb463907a324eedd1e5a065f5aa9fdd1 +openapi/amadeus.flightoffersprice=e48714fcb8366ece031deb7fbdad472e openapi/botify=546575712fefaa83333419f51fa17539 openapi/launchdarkly=35141e40b82a0f591079b70960af482f openapi/ably=31fa1404121c263d33121fd4bfb49cd4 From 3825e0dbb770dacf8b7a78928d2b163ed47cd29a Mon Sep 17 00:00:00 2001 From: lakshanss Date: Fri, 17 Nov 2023 16:43:15 +0530 Subject: [PATCH 2/2] Prepare for stripe 1.2.2 release --- .github/workflows/ci.yml | 2 +- .github/workflows/daily-build.yml | 36 ---- openapi/stripe/Ballerina.toml | 2 +- openapi/stripe/Dependencies.toml | 285 ------------------------------ 4 files changed, 2 insertions(+), 323 deletions(-) delete mode 100644 .github/workflows/daily-build.yml delete mode 100644 openapi/stripe/Dependencies.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2525dd49..91fb19510 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: container: runs-on: ubuntu-latest container: - image: ballerina/ballerina:nightly + image: ballerina/ballerina:2201.0.2 options: --user root steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index 9884f27ea..000000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Daily build - -# Controls when the action will run. -on: - schedule: - - cron: '30 2 * * *' - -jobs: - dailyBuild: - runs-on: ubuntu-latest - container: - image: ballerina/ballerina:nightly - options: --user root - steps: - - uses: actions/checkout@v2 - - name: Build with Gradle - env: - BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_ACCESS_TOKEN }} - JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true - GRADLE_USER_HOME: ~/.gradle - run: | - ./gradlew build -Prelease=false -Premote=true -PbuildAll=true - # Send notification when build fails - - name: Notify failure - if: ${{ failure() }} - run: | - curl -X POST \ - 'https://api.github.com/repos/ballerina-platform/ballerina-release/dispatches' \ - -H 'Accept: application/vnd.github.v3+json' \ - -H 'Authorization: Bearer ${{ secrets.BALLERINA_BOT_TOKEN }}' \ - --data "{ - \"event_type\": \"notify-build-failure\", - \"client_payload\": { - \"repoName\": \"openapi-connectors\" - } - }" diff --git a/openapi/stripe/Ballerina.toml b/openapi/stripe/Ballerina.toml index 0a7b5f329..fbaeaf2ea 100644 --- a/openapi/stripe/Ballerina.toml +++ b/openapi/stripe/Ballerina.toml @@ -6,7 +6,7 @@ name = "stripe" icon = "icon.png" distribution = "2201.0.0" repository = "https://github.com/ballerina-platform/ballerinax-openapi-connectors" -version = "1.2.1" +version = "1.2.2" authors = ["Ballerina"] [build-options] observabilityIncluded = true diff --git a/openapi/stripe/Dependencies.toml b/openapi/stripe/Dependencies.toml deleted file mode 100644 index afb21d603..000000000 --- a/openapi/stripe/Dependencies.toml +++ /dev/null @@ -1,285 +0,0 @@ -# AUTO-GENERATED FILE. DO NOT MODIFY. - -# This file is auto-generated by Ballerina for managing dependency versions. -# It should not be modified by hand. - -[ballerina] -dependencies-toml-version = "2" - -[[package]] -org = "ballerina" -name = "auth" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "crypto"}, - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "lang.array"}, - {org = "ballerina", name = "lang.string"}, - {org = "ballerina", name = "log"}, - {org = "ballerina", name = "regex"} -] - -[[package]] -org = "ballerina" -name = "cache" -version = "3.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "task"}, - {org = "ballerina", name = "time"} -] - -[[package]] -org = "ballerina" -name = "crypto" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "time"} -] - -[[package]] -org = "ballerina" -name = "file" -version = "1.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "log"}, - {org = "ballerina", name = "os"}, - {org = "ballerina", name = "regex"}, - {org = "ballerina", name = "time"} -] - -[[package]] -org = "ballerina" -name = "http" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "auth"}, - {org = "ballerina", name = "cache"}, - {org = "ballerina", name = "crypto"}, - {org = "ballerina", name = "file"}, - {org = "ballerina", name = "io"}, - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "jwt"}, - {org = "ballerina", name = "lang.array"}, - {org = "ballerina", name = "lang.decimal"}, - {org = "ballerina", name = "lang.int"}, - {org = "ballerina", name = "lang.runtime"}, - {org = "ballerina", name = "lang.string"}, - {org = "ballerina", name = "lang.value"}, - {org = "ballerina", name = "log"}, - {org = "ballerina", name = "mime"}, - {org = "ballerina", name = "oauth2"}, - {org = "ballerina", name = "observe"}, - {org = "ballerina", name = "regex"}, - {org = "ballerina", name = "time"}, - {org = "ballerina", name = "url"} -] -modules = [ - {org = "ballerina", packageName = "http", moduleName = "http"} -] - -[[package]] -org = "ballerina" -name = "io" -version = "1.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "lang.value"} -] - -[[package]] -org = "ballerina" -name = "jballerina.java" -version = "0.0.0" - -[[package]] -org = "ballerina" -name = "jwt" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "cache"}, - {org = "ballerina", name = "crypto"}, - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "lang.int"}, - {org = "ballerina", name = "lang.string"}, - {org = "ballerina", name = "log"}, - {org = "ballerina", name = "regex"}, - {org = "ballerina", name = "time"} -] - -[[package]] -org = "ballerina" -name = "lang.__internal" -version = "0.0.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "lang.object"} -] - -[[package]] -org = "ballerina" -name = "lang.array" -version = "0.0.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "lang.__internal"} -] - -[[package]] -org = "ballerina" -name = "lang.decimal" -version = "0.0.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "lang.int" -version = "0.0.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "lang.object" -version = "0.0.0" - -[[package]] -org = "ballerina" -name = "lang.runtime" -version = "0.0.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "lang.string" -version = "0.0.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "lang.value" -version = "0.0.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "log" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "io"}, - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "lang.value"}, - {org = "ballerina", name = "observe"} -] - -[[package]] -org = "ballerina" -name = "mime" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "io"}, - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "lang.int"} -] - -[[package]] -org = "ballerina" -name = "oauth2" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "cache"}, - {org = "ballerina", name = "crypto"}, - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "log"}, - {org = "ballerina", name = "time"} -] - -[[package]] -org = "ballerina" -name = "observe" -version = "1.0.1" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "os" -version = "1.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "regex" -version = "1.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "task" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "time"} -] - -[[package]] -org = "ballerina" -name = "time" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] - -[[package]] -org = "ballerina" -name = "url" -version = "2.2.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] -modules = [ - {org = "ballerina", packageName = "url", moduleName = "url"} -] - -[[package]] -org = "ballerinai" -name = "observe" -version = "0.0.0" -dependencies = [ - {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "observe"} -] -modules = [ - {org = "ballerinai", packageName = "observe", moduleName = "observe"} -] - -[[package]] -org = "ballerinax" -name = "stripe" -version = "1.2.0" -dependencies = [ - {org = "ballerina", name = "http"}, - {org = "ballerina", name = "url"}, - {org = "ballerinai", name = "observe"} -] -modules = [ - {org = "ballerinax", packageName = "stripe", moduleName = "stripe"} -] - -