Skip to content

Commit

Permalink
Upgrade to Knot.x 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszmichalak committed Mar 22, 2024
1 parent a80451c commit 4da3932
Show file tree
Hide file tree
Showing 43 changed files with 1,071 additions and 984 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,27 @@ on:
branches:
- 'main'
- 'releases/**'
pull_request:

jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/gradle-build-action@v2
- name: "Build: Distribution -> Getting Started with Stack"
run: ./distribution/getting-started/gradlew -p ./distribution/getting-started build --info
- name: 'Build: Distribution -> Getting Started with Stack'
run: ./distribution/getting-started/gradlew -p ./distribution/getting-started build --info
- name: 'Build: Distribution -> Getting Started with Docker'
run: ./distribution/getting-started/gradlew -p ./distribution/getting-started build-docker --info
- name: 'Build: API gateway -> OpenAPI & API Console'
run: ./api-gateway/api-console/gradlew -p ./api-gateway/api-console build-docker --info
- name: 'Build: API gateway -> API Composition'
run: ./api-gateway/api-composition/gradlew -p ./api-gateway/api-composition build-docker --info
- name: 'Build: API gateway -> Caching'
run: ./api-gateway/caching/gradlew -p ./api-gateway/caching build --info
- name: 'Build: API gateway -> GraphQL API'
run: ./api-gateway/graphql-api/gradlew -p ./api-gateway/graphql-api build-docker --info
- name: 'Build: API gateway -> Secure API'
run: ./api-gateway/security/gradlew -p ./api-gateway/security build-docker --info
- name: 'Build: Template processing -> Handlebars'
run: ./template-processing/handlebars/gradlew -p ./template-processing/handlebars build-docker --info
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://dev.azure.com/knotx/Knotx/_apis/build/status/Knotx.knotx-example-project?branchName=master)](https://dev.azure.com/knotx/Knotx/_build/latest?definitionId=15&branchName=master)
[![CI](https://github.com/Knotx/knotx-example-project/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/Knotx/knotx-example-project/actions/workflows/ci.yaml)

# Knot.x Examples
Examples show how you can customize/extend [Knot.x Stack](https://github.com/Knotx/knotx-stack) in
Expand Down
14 changes: 13 additions & 1 deletion api-gateway/api-composition/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,19 @@ allprojects {
}

tasks.named("build") {
dependsOn("runTest")
dependsOn("build-stack")
}

tasks.register("build-docker") {
group = "docker"
dependsOn("runFunctionalTest")
}

tasks.register("build-stack") {
group = "stack"
// https://github.com/Knotx/knotx-gradle-plugins/blob/master/src/main/kotlin/io/knotx/distribution.gradle.kts
dependsOn("assembleCustomDistribution")
mustRunAfter("build-docker")
}

apply(from = "https://raw.githubusercontent.com/Knotx/knotx-starter-kit/${project.property("knotxVersion")}/gradle/docker.gradle.kts")
Expand Down
2 changes: 1 addition & 1 deletion api-gateway/api-composition/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.0.1-SNAPSHOT
knotxVersion=2.2.0
knotxVersion=2.4.0
knotxConf=knotx
docker.image.name=knotx-example/composing-many-apis
Binary file modified api-gateway/api-composition/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 4da3932

Please sign in to comment.