Skip to content

Commit e8e121d

Browse files
LaunchDarklyReleaseBotkbrackbillRaymond HoLexi Rossrengawm
authored
prepare 8.0.0 release (#104)
* use gonfalon generated openapi 3 spec * clean up circle config * get openapi spec from prod gonfalon * use staging url * update go sample to use updated go client * revert back to production openapi spec * fix Python sample * fix swagger-client import name * update typescript target to axios * update java sample code to use new java client * update javascript sample code to use new javascript client * update ruby sample code to use new ruby client * update ruby client for testing * update java sample * [ch103716] Correct typo in big segment update operation name * [ch105622] add flag dependencies endpoints to openapi (#190) * add flag dependencies endpoints * fix list dep flags resp description * Bw/ch109131/generator migration start (#192) * first stab at migrating generators. ran out of time to fix errors. * Go client generating remove old README template for Go ignoring openapi-generator binary from git * download generator if not there * update Go example add back go folder temporarily to build * working go example * template cleanup * updates for python and go * add ruby support * temporary reorder of build * wget json file again build all clients fix up docs there is no more yaml generation * updates for java * small cleanup * basic README cleanup to kick off CI Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> * update releaser (#193) * first stab at migrating generators. ran out of time to fix errors. * Go client generating remove old README template for Go ignoring openapi-generator binary from git * download generator if not there * update Go example add back go folder temporarily to build * working go example * template cleanup * updates for python and go * add ruby support * temporary reorder of build * wget json file again build all clients fix up docs there is no more yaml generation * updates for java * small cleanup * basic README cleanup to kick off CI * update releaser * updates for javascript * wrong directory * fix java * update typescript build * minor js updates * clean up flag in conflict * updates for PHP * remove commented out dependency java Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> * Updating sample codes to work with latest spec (#194) * update readme links (#195) * Adding the DX squad as codeowners * Update docs for environment approval settings (#196) * Update docs for environment approval settings Co-authored-by: Sarah Day <scribblingfox@users.noreply.github.com> * add sample code link (#198) * temporarily remove csharp from publication process (#197) * Remove vestigial files * Update readme * Rev to open api generator 5.2 * Skip spec validation to avoid breaking it * Update README.md Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> * Update readme * Clean description refs from openapi spec before generating * Revert "Clean description refs from openapi spec before generating" This reverts commit 21e2da1. * Skip spec validation * 86 github pages * Revert removal of java sdk gh page * Remove validation skipping * Samples sans reps2 * s/GlobalFlagRep/FlagPost * s/VariateRep/FlagPostVariations * pass in git info to every clinet (#200) * update docs for approvals copy flag (#201) * Update go example * Use patched version of openapi-generator-cli temporarily * Update ld-openapi-generator-cli.jar * further implementation of Dockerized Releaser (#204) * Update examples * Fix python sample * Fix ruby sample * verify that client code builds, fix (most) Java build issues, make dry run more useful (#205) * update goas branch for new release process (#206) * fix problems with Java and JavaScript client builds (#207) * Fix typescript sample code (#208) * updates for typescript * add node t types remove finally * remove commented out code * fixes based on feedback * Fix bad merge * adding github host key (#210) * add ssh dir * back out previous ssh changes and correctly use https (#212) * Java Client Changes (#213) * move Java to end of publish add gradle.properties file to set longer timeout to Sonatype * move Java to end of publish * Update .ldrelease/publish-dry-run.sh Co-authored-by: carmenquan <cquan@launchdarkly.com> Co-authored-by: carmenquan <cquan@launchdarkly.com> * Replace deprecated docker image usage with newer CircleCI docker images (#214) * api-client-javascript 6.0.0 doesn't work due to incorrect package generation (#215) * update to copy hidden files * remove python * Revert "remove python" This reverts commit b5bc51b589406d4af33826be5a3da1ed7836583c. * fix python build (#216) * [sc124605] Removing custom template for ruby client (#217) * removing custom template for ruby client * remove whitespace * using token username (#218) * allow release to proceed if a per-target publish step failed only because it was already published * update Makefile (#220) add temporary template, plan to upstream change * renaming variate to variation (#222) * update generator (#221) * update .jar (#223) * update version template (#224) * switch to gradlew, update from deprecated ghpages library (#225) * allow execution of gradle wrapper (#226) * Remove publish to java gh pages (#228) * remove publish to java gh pages * adding whitespace * remove csharp dotnet references (#230) * Update branch from master to main (#229) * update branch from master to main * adding fetch all * test if main exists * test if main exists * test clone * Removed git submodule -b to checkout the default branch automatically. * Update Makefile * Update Makefile * Update Makefile * Removed c# * Update Makefile * Replaced make foreach with bash for loop. * Apply suggestions from code review * Update Makefile * Update Makefile * Rollback to working version. * Update Makefile * add git fetch * remove variable * adding back version * using prev branch variable * remove version Co-authored-by: Yusinto Ngadiman <yusinto@gmail.com> Co-authored-by: Kevin Brackbill <kbrack@launchdarkly.com> Co-authored-by: Raymond Ho <rho@launchdarkly.com> Co-authored-by: Lexi Ross <lross@launchdarkly.com> Co-authored-by: Matt Wagner <mwagner@launchdarkly.com> Co-authored-by: Henry Jacobs <hjacobs@launchdarkly.com> Co-authored-by: LaunchDarklyCI <dev@launchdarkly.com> Co-authored-by: Dan O'Brien <dobrien@launchdarkly.com> Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: vatasha <21329981+vatasha@users.noreply.github.com> Co-authored-by: Sarah Day <scribblingfox@users.noreply.github.com> Co-authored-by: Christie Williams <xie.williams@gmail.com> Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com> Co-authored-by: Eli Bishop <eli@launchdarkly.com> Co-authored-by: carmenquan <cquan@launchdarkly.com> Co-authored-by: Yusinto Ngadiman <yusinto@gmail.com>
1 parent a08d254 commit e8e121d

6 files changed

Lines changed: 7 additions & 20 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ experimental:
55
notify:
66
branches:
77
only:
8-
- master
8+
- main
99

1010
jobs:
1111
build:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ scripts/release/java/.gradle/*
5757
.classpath
5858
.project
5959
.settings/
60+
.idea

.ldrelease/publish.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ git config --global user.email launchdarklyreleasebot@launchdarkly.com
1111

1212
# Publish updates to client repositories
1313
echo Publishing updates to client repositories...
14-
# Temporarily exclude csharp-dotnet2
1514
make RELEASE_TARGETS="go java javascript php python ruby typescript-axios" TAG=${LD_RELEASE_VERSION} push
1615

1716
# Publish client artifacts to registries

Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ GENERATOR_JAR=ld-openapi-generator-cli.jar
77
OPENAPI_JSON_URL=https://app.launchdarkly.com/api/v2/openapi.json
88

99
API_TARGETS ?= \
10-
csharp-dotnet2 \
1110
go \
1211
java \
1312
javascript \
@@ -16,7 +15,7 @@ API_TARGETS ?= \
1615
ruby \
1716
typescript-axios
1817

19-
RELEASE_BRANCH ?= master # when we bump a major version, we may need to change this
18+
RELEASE_BRANCH ?= main # when we bump a major version, we may need to change this
2019
PREV_RELEASE_BRANCH ?= $(RELEASE_BRANCH) # override this to create a revision of an older branch
2120
RELEASE_TARGETS ?= $(API_TARGETS) # for now, we don't release the docs to repos
2221
RELEASE_SUFFIX ?= # allows the private branch to push to repos with a "-private" suffix
@@ -40,7 +39,6 @@ SAMPLES_PATH ?= ./samples
4039

4140
# The following variables define any special command-line parameters that need to be passed
4241
# to openapi-generator for each language/platform.
43-
CODEGEN_PARAMS_csharp-dotnet2 = --additional-properties=packageName=LaunchDarkly.Api --additional-properties=clientPackage=LaunchDarkly.Api.Client
4442
CODEGEN_PARAMS_go = --additional-properties=packageName=ldapi \
4543
--additional-properties=email=support@launchdarkly.com \
4644
--additional-properties=developerName=LaunchDarkly \
@@ -113,11 +111,11 @@ all: $(API_TARGETS) $(DOC_TARGETS)
113111
load_prior_targets:
114112
rm -rf $(TARGETS_PATH)
115113
mkdir -p $(TARGETS_PATH)
116-
set -e; \
117-
cd $(TARGETS_PATH); \
118-
git init; \
114+
set -e
115+
cd $(TARGETS_PATH)
116+
git init
119117
$(foreach RELEASE_TARGET, $(RELEASE_TARGETS), \
120-
git submodule add -b $(PREV_RELEASE_BRANCH) $(REPO_USER_URL)/api-client-$(RELEASE_TARGET)$(RELEASE_SUFFIX) ./api-client-$(RELEASE_TARGET) ;)
118+
git submodule add $(REPO_USER_URL)/api-client-$(RELEASE_TARGET)$(RELEASE_SUFFIX) ./api-client-$(RELEASE_TARGET) && git checkout $(PREV_RELEASE_BRANCH) ;)
121119

122120
$(TARGET_OPENAPI_JSON): $(GENERATOR_JAR) $(TARGETS_PATH)
123121
curl -s -L --fail $(OPENAPI_JSON_URL) > $@

scripts/release/java.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,3 @@ if [ -n "${PUBLISH_FAILED}" ]; then
2626
exit 1
2727
fi
2828
fi
29-
30-
# Publish to GitHub Pages
31-
./gradlew gitPublishPush

swagger-codegen-templates/java/build.gradle.mustache

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ dependencies {
5656
testImplementation 'junit:junit:4.13.1'
5757
}
5858

59-
gitPublish {
60-
repoUri = 'git@github.com:launchdarkly/api-client-java.git'
61-
branch = 'gh-pages'
62-
contents {
63-
from javadoc
64-
}
65-
}
66-
6759
compileJava {
6860
// The generated code should be treated as UTF-8 because some of the properties
6961
// in our openapi.json may include non-ASCII Unicode characters.

0 commit comments

Comments
 (0)