Skip to content

Commit

Permalink
Merge tag '3.0.0' into develop
Browse files Browse the repository at this point in the history
Release 3.0.0
  • Loading branch information
msqr committed Dec 8, 2023
2 parents 4aa4004 + 0f4bfd4 commit 17b7933
Show file tree
Hide file tree
Showing 28 changed files with 41 additions and 23 deletions.
2 changes: 1 addition & 1 deletion solarnet/common-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: Common Test'
version = '1.2.0'
version = '2.0.0'

base {
archivesName = 'solarnet-common-test'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: Common'
version = '1.18.0'
version = '2.0.0'

base {
archivesName = 'solarnet-common'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.util.concurrent.TimeoutException;
import org.springframework.http.MediaType;
import org.springframework.scheduling.concurrent.CustomizableThreadFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
Expand All @@ -51,8 +52,9 @@
* the results.
*
* @author matt
* @version 3.0
* @version 3.1
*/
@Controller
@RequestMapping("/ping")
public class PingController {

Expand Down
2 changes: 1 addition & 1 deletion solarnet/datum/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: Datum'
version = '1.16.0'
version = '2.0.0'

base {
archivesName = 'solarnet-datum'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/dnp3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: DNP3'
version = '1.0.0'
version = '2.0.0'

base {
archivesName = 'solarnet-dnp3'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/instructor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: Instructor'
version = '1.5.0'
version = '2.0.0'

base {
archivesName = 'solarnet-instructor'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/net-proxy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: Network Proxy'
version = '1.0.0'
version = '2.0.0'

base {
archivesName = 'solarnet-net-proxy'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/ocpp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: OCPP'
version = '1.15.0'
version = '2.0.0'

base {
archivesName = 'solarnet-ocpp'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/oscp-fp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarOSCP Flexibility Provider'
version = '1.8.0'
version = '2.0.0'

base {
archivesName = 'solaroscp-fp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
Expand Down Expand Up @@ -60,6 +61,7 @@ public PingController pingController() {
return controller;
}

@Controller
@RequestMapping("/ping")
static class SolarOscpFpPingController extends PingController {
// nothing new
Expand Down
2 changes: 1 addition & 1 deletion solarnet/oscp-sim-cp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarOSCP Capacity Provider Simulator'
version = '1.0.0'
version = '2.0.0'

base {
archivesName = 'solaroscp-sim-cp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
Expand Down Expand Up @@ -60,6 +61,7 @@ public PingController pingController() {
return controller;
}

@Controller
@RequestMapping("/ping")
static class SolarOscpSimCpPingController extends PingController {
// nothing new
Expand Down
2 changes: 1 addition & 1 deletion solarnet/oscp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: OSCP'
version = '1.8.0'
version = '2.0.0'

base {
archivesName = 'solarnet-oscp'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/solardnp3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarDNP3'
version = '1.1.0'
version = '2.0.0'

base {
archivesName = 'solardnp3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
Expand Down Expand Up @@ -56,6 +57,7 @@ public PingController pingController() {
return controller;
}

@Controller
@RequestMapping("/ping")
static class SolarDnp3PingController extends PingController {
// nothing new
Expand Down
3 changes: 3 additions & 0 deletions solarnet/solarflux-vernemq-webhook/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarFlux VerneMQ Webhook'
version = '2.0.0'

configurations {
all*.exclude group: 'com.amazonaws'
all*.exclude group: 'com.fasterxml.jackson.datatype', module: 'jackson-datatype-joda'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/solarin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarIn'
version = '1.16.1'
version = '2.0.0'

base {
archivesName = 'solarin'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/solarjobs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarJobs'
version = '1.10.0'
version = '2.0.0'

base {
archivesName = 'solarjobs'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/solarocpp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarOCPP'
version = '1.5.0'
version = '2.0.0'

base {
archivesName = 'solarocpp'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/solarquery/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarQuery'
version = '1.11.0'
version = '2.0.0'

base {
archivesName = 'solarquery'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/solaruser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

description = 'SolarUser'
version = '1.22.1'
version = '2.0.0'

base {
archivesName = 'solaruser'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/user-billing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: User Billing'
version = '1.6.0'
version = '2.0.0'

base {
archivesName = 'solarnet-user-billing'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/user-datum/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: User Datum'
version = '1.4.0'
version = '2.0.0'

base {
archivesName = 'solarnet-user-datum'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/user-dnp3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: User DNP3'
version = '1.1.0'
version = '2.0.0'

base {
archivesName = 'solarnet-user-dnp3'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/user-ocpp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: User OCPP'
version = '1.4.0'
version = '2.0.0'

base {
archivesName = 'solarnet-user-ocpp'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/user-oscp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: User OSCP'
version = '1.1.1'
version = '2.0.0'

base {
archivesName = 'solarnet-user-oscp'
Expand Down
2 changes: 1 addition & 1 deletion solarnet/user/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencyManagement {
}

description = 'SolarNet: User'
version = '1.5.0'
version = '2.0.0'

base {
archivesName = 'solarnet-user'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.springframework.core.io.Resource;
import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.http.converter.xml.SourceHttpMessageConverter;
import org.springframework.web.client.RestOperations;
import org.springframework.web.client.RestTemplate;
import net.solarnetwork.service.CertificateException;
Expand Down Expand Up @@ -127,6 +128,12 @@ public RestOperations createRestOps() {
restTemplate.getInterceptors().add(new LoggingHttpRequestInterceptor());
}

// Spring 6 no longer includes SourceHttpMessageConverter by default, but we rely on that
if ( restTemplate.getMessageConverters().stream()
.filter(c -> c instanceof SourceHttpMessageConverter<?>).findAny().isEmpty() ) {
restTemplate.getMessageConverters().add(0, new SourceHttpMessageConverter<>());
}

return restTemplate;
}

Expand Down

0 comments on commit 17b7933

Please sign in to comment.