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
62 changes: 62 additions & 0 deletions .github/workflows/springwolf-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: springwolf-web

on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, ready_for_review ]
workflow_dispatch:

permissions:
contents: read
checks: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v7

- name: Set up JDK
uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6.4.1

- name: Check formatting (before running tests)
run: ./gradlew -p springwolf-web spotlessCheck

- name: Run build, check, analyzeDependencies
run: ./gradlew -p springwolf-web build

- name: Publish Test Report
uses: mikepenz/action-junit-report@v6
if: success() || failure()
with:
check_name: test-web
require_tests: true
report_paths: '**/build/test-results/test/TEST-*.xml'
annotate_only: github.event.pull_request.head.repo.full_name != github.repository # for forks

- name: Publish package
if: github.ref == 'refs/heads/main'
run: ./gradlew -p springwolf-web publish
env:
ORG_GRADLE_PROJECT_SNAPSHOT: true

ORG_GRADLE_PROJECT_SIGNINGKEY: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGKEY}}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD}}

ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
117 changes: 59 additions & 58 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
applyDotEnvFileAsGradleProperties()

var addons = [
'springwolf-common-model-converters' ,
'springwolf-common-model-converters',
'springwolf-json-schema',
'springwolf-kotlinx-serialization-model-converter'
]
Expand Down Expand Up @@ -149,7 +149,6 @@ allprojects {
exceptionFormat = 'full'
}
}

tasks.register('updateAsyncApiJson') {
group = 'verification'
description = 'Update the AsyncAPI JSON files in the examples to match the current state of the plugin'
Expand All @@ -175,74 +174,76 @@ allprojects {
var publishingEnabled = (
project.name == 'springwolf-asyncapi' ||
project.name == 'springwolf-bindings' ||
project.name == 'springwolf-core' ||
project.name == 'springwolf-ui' ||
addons.contains(project.name) ||
plugins.contains(project.name)
project.name == 'springwolf-core' ||
project.name == 'springwolf-ui' ||
project.name == 'springwolf-web' ||
addons.contains(project.name) ||
plugins.contains(project.name)
)
tasks.withType(PublishToMavenRepository).configureEach { it.enabled = publishingEnabled }
tasks.withType(PublishToMavenLocal).configureEach { it.enabled = publishingEnabled }
publishing {
publications {
mavenJava(MavenPublication) {
from components.java

artifactId = project.name
groupId = project.group
version = project.version

pom {
name = ''
description = ''
url = 'https://www.springwolf.dev'

licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}

developers {
developer {
id = 'stavshamir'
name = 'Stav Shamir'
email = 'shamir.stav@gmail.com'
}

developer {
id = 'timonback'
name = 'Timon Back'
email = 'timon.back+springwolf@gmail.com'
}

developer {
id = 'sam0r040'
name = 'David Müller'
email = 'david.mueller@codecentric.de'
}

developer {
id = 'ctasada'
name = 'Carlos Tasada'
email = 'ctasada@gmail.com'
}
}

scm {
url = 'https://github.com/springwolf/springwolf-core'
}
}
MavenPublication mavenJava = publishing.publications.create('mavenJava', MavenPublication)
mavenJava.from components.java

mavenJava.artifactId = project.name
mavenJava.groupId = project.group
mavenJava.version = project.version

mavenJava.pom {
name = ''
description = ''
url = 'https://www.springwolf.dev'

licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}

developers {
developer {
id = 'stavshamir'
name = 'Stav Shamir'
email = 'shamir.stav@gmail.com'
}

developer {
id = 'timonback'
name = 'Timon Back'
email = 'timon.back+springwolf@gmail.com'
}

developer {
id = 'sam0r040'
name = 'David Müller'
email = 'david.mueller@codecentric.de'
}

developer {
id = 'ctasada'
name = 'Carlos Tasada'
email = 'ctasada@gmail.com'
}
}

scm {
url = 'https://github.com/springwolf/springwolf-core'
}
}

signing {
required = { gradle.taskGraph.hasTask("publish") }
def signingKey = project.findProperty("SIGNINGKEY") as String
def signingPassword = project.findProperty("SIGNINGPASSWORD") as String
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
sign mavenJava
}
}
subprojects {
if (plugins.contains(name)) {
apply from: rootProject.file('springwolf-plugins/web-test-suite.gradle')
configureWebTestSuite.call()
}
}

Expand Down
6 changes: 2 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kafka = "4.4.0"
kotlin = "2.4.21"
node-plugin = "7.1.0"
nodeVersion = "22.22.3"
pnpm = "11.4.0"
pnpm = "12.21.0"
openapi-gradle = "1.9.0"
org-junit-jupiter = "6.1.3"
org-junit-plattform = "6.1.3"
Expand All @@ -28,13 +28,11 @@ spring-cloud = "2025.1.3" # not managed by spring-boot-dependencies
spring-cloud-stream = "5.0.4" # not managed by spring-boot-dependencies

[libraries]
activemq-broker = { module = "org.apache.activemq:activemq-broker", version.ref = "activemq" }
amqp-client = "com.rabbitmq:amqp-client:5.37.0"
assertj-core = "org.assertj:assertj-core:3.27.7"
avro = "org.apache.avro:avro:1.12.2"
awaitility = "org.awaitility:awaitility:4.3.0"
commons-io = "commons-io:commons-io:2.22.0"
commons-lang3 = "org.apache.commons:commons-lang3:3.21.0"
commons-logging = "commons-logging:commons-logging:1.4.0"
jackson-annotations = "com.fasterxml.jackson.core:jackson-annotations:2.22"
jackson-core = { module = "tools.jackson.core:jackson-core", version.ref = "jackson-core" }
Expand Down Expand Up @@ -77,6 +75,7 @@ spring-cloud-aws-starter-sqs = { module = "io.awspring.cloud:spring-cloud-aws-st
spring-amqp = { module = "org.springframework.amqp:spring-amqp" }
spring-rabbit = { module = "org.springframework.amqp:spring-rabbit" }
spring-boot = { module = "org.springframework.boot:spring-boot" }
spring-boot-actuator = { module = "org.springframework.boot:spring-boot-actuator" }
spring-boot-artemis = { module = "org.springframework.boot:spring-boot-artemis" }
spring-boot-autoconfigure = { module = "org.springframework.boot:spring-boot-autoconfigure" }
spring-boot-configuration-processor = { module = "org.springframework.boot:spring-boot-configuration-processor" }
Expand All @@ -88,7 +87,6 @@ spring-boot-starter-actuator = { module = "org.springframework.boot:spring-boot-
spring-boot-starter-amqp = { module = "org.springframework.boot:spring-boot-starter-amqp" }
spring-boot-starter-webmvc = { module = "org.springframework.boot:spring-boot-starter-webmvc" }
spring-boot-test = { module = "org.springframework.boot:spring-boot-test" }
spring-boot-webmvc = { module = "org.springframework.boot:spring-boot-webmvc" }
spring-boot-webmvc-test = { module = "org.springframework.boot:spring-boot-webmvc-test" }
spring-cloud-dependencies = { module = "org.springframework.cloud:spring-cloud-dependencies", version.ref = "spring-cloud" }
spring-cloud-starter-stream-kafka = { module = "org.springframework.cloud:spring-cloud-starter-stream-kafka", version.ref = "spring-cloud-stream" }
Expand Down
7 changes: 4 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
rootProject.name = 'springwolf'

include(
'springwolf-add-ons:springwolf-common-model-converters',
'springwolf-add-ons:springwolf-json-schema',
'springwolf-add-ons:springwolf-kotlinx-serialization-model-converter',
'springwolf-asyncapi',
'springwolf-bindings',
'springwolf-core',
Expand All @@ -20,9 +23,7 @@ include(
'springwolf-examples:springwolf-sqs-example',
'springwolf-examples:springwolf-stomp-example',
'springwolf-ui',
'springwolf-add-ons:springwolf-common-model-converters',
'springwolf-add-ons:springwolf-json-schema',
'springwolf-add-ons:springwolf-kotlinx-serialization-model-converter',
'springwolf-web',
)

project(':springwolf-plugins:springwolf-amqp-plugin').name = 'springwolf-amqp'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.springframework.boot.gradle.plugin.SpringBootPlugin


plugins {
id 'java-library'

Expand Down Expand Up @@ -40,13 +41,8 @@ java {
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'springwolf-common-model-converters'
description = 'Common model converters beans for Springwolf'
}
}
}
MavenPublication mavenJava = publishing.publications.getByName('mavenJava')
mavenJava.pom {
name = 'springwolf-common-model-converters'
description = 'Common model converters beans for Springwolf'
}
13 changes: 4 additions & 9 deletions springwolf-add-ons/springwolf-json-schema/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,8 @@ java {
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'springwolf-json-schema'
description = 'Extends Springwolf schemas with json-schema'
}
}
}
MavenPublication mavenJava = publishing.publications.getByName('mavenJava')
mavenJava.pom {
name = 'springwolf-json-schema'
description = 'Extends Springwolf schemas with json-schema'
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,8 @@ kotlin {
jvmToolchain(17)
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'springwolf-kotlinx-serialization-model-converter'
description = 'Kotlinx serialization model converter beans for Springwolf'
}
}
}
MavenPublication mavenJava = publishing.publications.getByName('mavenJava')
mavenJava.pom {
name = 'springwolf-kotlinx-serialization-model-converter'
description = 'Kotlinx serialization model converter beans for Springwolf'
}
13 changes: 4 additions & 9 deletions springwolf-asyncapi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@ java {
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'springwolf-asyncapi'
description = 'Springwolf implementation of the AsyncAPI specification'
}
}
}
MavenPublication mavenJava = publishing.publications.getByName('mavenJava')
mavenJava.pom {
name = 'springwolf-asyncapi'
description = 'Springwolf implementation of the AsyncAPI specification'
}
14 changes: 4 additions & 10 deletions springwolf-bindings/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dependencies {
implementation libs.spring.core
implementation libs.spring.boot.autoconfigure
implementation libs.slf4j.api
implementation libs.commons.lang3
implementation libs.jspecify

compileOnly libs.lombok
Expand All @@ -43,13 +42,8 @@ java {
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'springwolf-bindings'
description = 'Automated JSON API documentation bindings'
}
}
}
MavenPublication mavenJava = publishing.publications.getByName('mavenJava')
mavenJava.pom {
name = 'springwolf-bindings'
description = 'Automated JSON API documentation bindings'
}
Loading
Loading