Skip to content

Commit 2f69196

Browse files
authored
JE-71170 [Spring Boot Cluster]: 500 Internal Server Error for jar test project after deploy (#1)
1 parent ba00da7 commit 2f69196

File tree

9 files changed

+378
-247
lines changed

9 files changed

+378
-247
lines changed

build.gradle

100755100644
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
buildscript {
2-
ext {
3-
springBootVersion = '1.5.2.RELEASE'
4-
}
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
54

6-
repositories {
7-
mavenLocal()
8-
mavenCentral()
9-
}
10-
dependencies {
11-
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
12-
}
13-
}
14-
15-
16-
apply plugin: 'java'
17-
apply plugin: 'eclipse'
18-
apply plugin: 'org.springframework.boot'
19-
20-
sourceCompatibility = 1.8
21-
targetCompatibility = 1.8
22-
23-
jar {
24-
baseName = 'spring-boot-sample-jelastic'
25-
version = '1.0.0'
5+
plugins {
6+
id 'java-library'
7+
id 'maven-publish'
268
}
279

2810
repositories {
29-
mavenLocal()
30-
mavenCentral()
31-
11+
mavenLocal()
12+
maven {
13+
url = uri('https://repo.maven.apache.org/maven2/')
14+
}
3215
}
3316

3417
dependencies {
35-
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
36-
compile("org.hibernate:hibernate-validator")
37-
compile("org.springframework.boot:spring-boot-starter")
38-
compile("org.springframework.boot:spring-boot-starter-actuator")
39-
compile 'org.jolokia:jolokia-core'
40-
testCompile("org.springframework.boot:spring-boot-starter-test")
18+
api libs.javax.validation.validation.api
19+
api libs.org.hibernate.validator.hibernate.validator
20+
api libs.org.springframework.boot.spring.boot.starter.thymeleaf
21+
api libs.org.springframework.boot.spring.boot.starter.actuator
22+
api libs.org.jolokia.jolokia.client.java
23+
api libs.org.springframework.boot.spring.boot.starter.web
24+
testImplementation libs.org.springframework.boot.spring.boot.starter.test
25+
}
26+
27+
group = 'org.springframework'
28+
version = '3.0.0'
29+
description = 'Spring Boot Sample Jelastic'
30+
java.sourceCompatibility = JavaVersion.VERSION_1_8
31+
32+
publishing {
33+
publications {
34+
maven(MavenPublication) {
35+
from(components.java)
36+
}
37+
}
4138
}
4239

40+
tasks.withType(JavaCompile) {
41+
options.encoding = 'UTF-8'
42+
}
4343

44-
task wrapper(type: Wrapper) {
45-
gradleVersion = '3.4.1'
44+
tasks.withType(Javadoc) {
45+
options.encoding = 'UTF-8'
4646
}

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was generated by the Gradle 'init' task.
2+
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
3+
4+
org.gradle.configuration-cache=true
5+

gradle/libs.versions.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was generated by the Gradle 'init' task.
2+
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format
3+
4+
[versions]
5+
javax-validation-validation-api = "2.0.1.Final"
6+
org-hibernate-validator-hibernate-validator = "6.0.10.Final"
7+
org-jolokia-jolokia-client-java = "2.2.9"
8+
org-springframework-boot-spring-boot-starter-actuator = "3.1.11"
9+
org-springframework-boot-spring-boot-starter-test = "3.1.11"
10+
org-springframework-boot-spring-boot-starter-thymeleaf = "3.1.11"
11+
org-springframework-boot-spring-boot-starter-web = "3.1.11"
12+
13+
[libraries]
14+
javax-validation-validation-api = { module = "javax.validation:validation-api", version.ref = "javax-validation-validation-api" }
15+
org-hibernate-validator-hibernate-validator = { module = "org.hibernate.validator:hibernate-validator", version.ref = "org-hibernate-validator-hibernate-validator" }
16+
org-jolokia-jolokia-client-java = { module = "org.jolokia:jolokia-client-java", version.ref = "org-jolokia-jolokia-client-java" }
17+
org-springframework-boot-spring-boot-starter-actuator = { module = "org.springframework.boot:spring-boot-starter-actuator", version.ref = "org-springframework-boot-spring-boot-starter-actuator" }
18+
org-springframework-boot-spring-boot-starter-test = { module = "org.springframework.boot:spring-boot-starter-test", version.ref = "org-springframework-boot-spring-boot-starter-test" }
19+
org-springframework-boot-spring-boot-starter-thymeleaf = { module = "org.springframework.boot:spring-boot-starter-thymeleaf", version.ref = "org-springframework-boot-spring-boot-starter-thymeleaf" }
20+
org-springframework-boot-spring-boot-starter-web = { module = "org.springframework.boot:spring-boot-starter-web", version.ref = "org-springframework-boot-spring-boot-starter-web" }

gradle/wrapper/gradle-wrapper.jar

-10.2 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Mon Mar 13 21:22:59 CET 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-bin.zip

0 commit comments

Comments
 (0)