• Stars
    star
    4,843
  • Rank 8,272 (Top 0.2 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated 25 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Integration with Netflix OSS components
Build

Codecov

Features

  • Service Discovery: Eureka instances can be registered and clients can discover the instances using Spring-managed beans

  • Service Discovery: an embedded Eureka server can be created with declarative Java configuration

Building

Basic Compile and Test

To build the source you will need to install JDK 17.

Spring Cloud uses Maven for most build-related activities, and you should be able to get off the ground quite quickly by cloning the project you are interested in and typing

$ ./mvnw install
Note
You can also install Maven (>=3.3.3) yourself and run the mvn command in place of ./mvnw in the examples below. If you do that you also might need to add -P spring if your local Maven settings do not contain repository declarations for spring pre-release artifacts.
Note
Be aware that you might need to increase the amount of memory available to Maven by setting a MAVEN_OPTS environment variable with a value like -Xmx512m -XX:MaxPermSize=128m. We try to cover this in the .mvn configuration, so if you find you have to do it to make a build succeed, please raise a ticket to get the settings added to source control.

The projects that require middleware (i.e. Redis) for testing generally require that a local instance of [Docker](https://www.docker.com/get-started) is installed and running.

Documentation

The spring-cloud-build module has a "docs" profile, and if you switch that on it will try to build asciidoc sources using Antora from modules/ROOT/.

As part of that process it will look for a docs/src/main/asciidoc/README.adoc and process it by loading all the includes, but not parsing or rendering it, just copying it to ${main.basedir} (defaults to ${basedir}, i.e. the root of the project). If there are any changes in the README it will then show up after a Maven build as a modified file in the correct place. Just commit it and push the change.

Working with the code

If you donโ€™t have an IDE preference we would recommend that you use Spring Tools Suite or Eclipse when working with the code. We use the m2eclipse eclipse plugin for maven support. Other IDEs and tools should also work without issue as long as they use Maven 3.3.3 or better.

Activate the Spring Maven profile

Spring Cloud projects require the 'spring' Maven profile to be activated to resolve the spring milestone and snapshot repositories. Use your preferred IDE to set this profile to be active, or you may experience build errors.

Importing into eclipse with m2eclipse

We recommend the m2eclipse eclipse plugin when working with eclipse. If you donโ€™t already have m2eclipse installed it is available from the "eclipse marketplace".

Note
Older versions of m2e do not support Maven 3.3, so once the projects are imported into Eclipse you will also need to tell m2eclipse to use the right profile for the projects. If you see many different errors related to the POMs in the projects, check that you have an up to date installation. If you canโ€™t upgrade m2e, add the "spring" profile to your settings.xml. Alternatively you can copy the repository settings from the "spring" profile of the parent pom into your settings.xml.

Importing into eclipse without m2eclipse

If you prefer not to use m2eclipse you can generate eclipse project metadata using the following command:

$ ./mvnw eclipse:eclipse

The generated eclipse projects can be imported by selecting import existing projects from the file menu.

Note
To build the module spring-cloud-netflix-hystrix-contract along with the entire Netflix project run the build.sh script in the scripts directory.

Contributing

Note
Spring Cloud is released under the non-restrictive Apache 2.0 license. If you would like to contribute to this section of the documentation or if you find an error, please find the source code and issue trackers in the project at {github-project}[github].

License

The project license file is available here.

More Repositories

1

spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
Java
4,360
star
2

spring-cloud-kubernetes

Kubernetes integration with Spring Cloud Discovery Client, Configuration, etc...
Java
3,408
star
3

spring-cloud-config

External configuration (server and client) for Spring Cloud
Java
1,923
star
4

spring-cloud-sleuth

Distributed tracing for spring cloud
Java
1,747
star
5

spring-cloud-openfeign

Support for using OpenFeign in Spring Cloud apps
Java
1,140
star
6

spring-cloud-dataflow

A microservices-based Streaming and Batch data processing in Cloud Foundry and Kubernetes
Java
1,065
star
7

spring-cloud-function

Java
1,016
star
8

spring-cloud-stream

Framework for building Event-Driven Microservices
Java
960
star
9

spring-cloud-stream-samples

Samples for Spring Cloud Stream
Java
934
star
10

spring-cloud-release

Spring Cloud Release Train - dependency management across a wide range of Spring Cloud projects.
856
star
11

spring-cloud-consul

Spring Cloud Consul
Java
799
star
12

spring-cloud-contract

Support for Consumer Driven Contracts in Spring
Java
701
star
13

spring-cloud-commons

Common classes used in different Spring Cloud implementations
Java
689
star
14

spring-cloud-zookeeper

Spring Cloud Zookeeper
Java
542
star
15

spring-cloud-task

Short lived microservices with Spring Batch
Java
415
star
16

spring-cloud-bus

Spring Cloud event bus
Java
399
star
17

spring-cloud-stream-binder-kafka

Spring Cloud Stream binders for Apache Kafka and Kafka Streams
Java
328
star
18

spring-cloud-circuitbreaker

Spring Cloud Circuit Breaker API and Implementations
Java
320
star
19

spring-cloud-vault

Configuration Integration with HashiCorp Vault
Java
269
star
20

stream-applications

Functions and Spring Cloud Stream Applications for data driven microservices
Java
245
star
21

spring-cloud-dataflow-samples

Sample starter applications and code for use with the Spring Cloud Data Flow project
Java
216
star
22

spring-cloud-dataflow-ui

This repo provides the Dashboard application of Spring Cloud Data Flow
TypeScript
203
star
23

spring-cloud-connectors

Library to let cloud applications connect to services
Java
182
star
24

spring-cloud-build

Common build concerns, shared plugin configuration, etc. for Spring Cloud modules
Shell
181
star
25

spring-cloud-open-service-broker

Spring Cloud project for creating service brokers that conform to the Open Server Broker API specification
Java
160
star
26

spring-cloud-deployer-kubernetes

The Spring Cloud Deployer implementation for Kubernetes
Java
156
star
27

spring-cloud-deployer

The Spring Cloud Deployer project defines an SPI for deploying long lived applications and short lived tasks
Java
156
star
28

spring-cloud-cli

Spring Cloud CLI features
Java
155
star
29

spring-cloud-stream-binder-rabbit

Java
151
star
30

spring-cloud-core-tests

Integration tests for Spring Cloud (small projects testing classpath combinations)
Java
146
star
31

spring-cloud-skipper

A package manager that installs, upgrades, and rolls back Spring Boot applications on multiple Cloud Platforms.
Java
113
star
32

spring-cloud-stream-starters

Shell
98
star
33

spring-cloud-stream-binder-aws-kinesis

Spring Cloud Stream binder for AWS Kinesis
Java
97
star
34

spring-cloud-cloudfoundry

Integration between Cloudfoundry and the Spring Cloud APIs
Java
80
star
35

spring-cloud-schema-registry

A schema registry implementation for Spring Cloud Stream
Java
47
star
36

spring-cloud-jenkins-jobs

Spring Cloud Jenkins Job DSL
Groovy
41
star
37

spring-cloud-bindings

A library that exposes a rich Java language-binding and auto-configuration for CNB Bindings
Java
40
star
38

spring-cloud-deployer-local

The Spring Cloud Deployer implementation for a "local" machine
Java
39
star
39

spring-cloud-release-tools

Tools used for the Spring Cloud release process
Java
28
star
40

spring-cloud-deployer-cloudfoundry

The Spring Cloud Deployer implementation for Cloud Foundry
Java
27
star
41

spring-cloud-app-broker

Spring Cloud project for implementing service brokers that conform to the Open Server Broker API specification
Java
26
star
42

spring-cloud-static

Static resources for the Spring Cloud website
26
star
43

spring-cloud-common-security-config

A common security infrastructure used by Spring Cloud Data Flow and the projects in its ecosystem
Java
19
star
44

spring-cloud-dataflow-acceptance-tests

Java
13
star
45

baseimage

Shell
12
star
46

spring-cloud.github.io

GH pages for spring-cloud
HTML
7
star
47

spring-cloud-dataflow-apps-plugin

Java
7
star
48

stream-applications-acceptance-tests

Shell
7
star
49

spring-functions-catalog

Reusable Spring Functions for data driven microservices
Java
7
star
50

spring-cloud-stream-jenkins-jobs

Groovy
4
star
51

spring-cloud-dataflow-common

Java
2
star
52

.github

2
star
53

spring-cloud-dataflow-build

1
star