Skip to content

Commit b39d7a1

Browse files
committed
feat: update gradle
1 parent 93c2903 commit b39d7a1

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

backend/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ group = 'ch.xxx'
2020
version = '0.0.1-SNAPSHOT'
2121

2222
java {
23-
sourceCompatibility = '21'
23+
toolchain {
24+
languageVersion = JavaLanguageVersion.of(21)
25+
}
2426
}
2527

2628
repositories {
2729
mavenCentral()
28-
maven { url "https://repo.spring.io/snapshot" }
30+
maven { url = 'https://repo.spring.io/snapshot' }
2931
}
3032

3133
dependencies {

backend/src/main/java/ch/xxx/aidoclibchat/usecase/service/FunctionService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public FunctionResult functionCall(String question, ResultFormat resultFormat) {
6464
var result = new FunctionResult(" ", null);
6565

6666
int i = 0;
67-
while (i < 3 && (result.jsonResult() == null && result.result() == " ")) {
67+
while (i < 3 && (result.jsonResult() == null && " ".equals(result.result()))) {
6868
try {
6969
result = switch (resultFormat) {
7070
case ResultFormat.Text -> this.functionCallText(question);

frontend/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
limitations under the License.
1212
*/
1313
plugins {
14-
id 'java'
14+
id 'java'
1515
}
1616

1717
group = 'ch.xxx'
@@ -30,7 +30,7 @@ task cleanAngular {
3030

3131
task buildAngular {
3232
if(project.hasProperty('withAngular')) {
33-
exec {
33+
providers.exec {
3434
logger.info('Task buildAngular - npm install')
3535
workingDir 'src/angular'
3636
if (System.getProperty("os.name").toUpperCase().contains("WINDOWS")){
@@ -39,7 +39,7 @@ task buildAngular {
3939
commandLine('npm', 'install')
4040
}
4141
}
42-
exec {
42+
providers.exec {
4343
logger.info('Task buildAngular - npm run build')
4444
workingDir 'src/angular'
4545
if (System.getProperty("os.name").toUpperCase().contains("WINDOWS")){
@@ -53,7 +53,7 @@ task buildAngular {
5353

5454
task testAngular {
5555
if(project.hasProperty('withAngular')) {
56-
exec {
56+
providers.exec {
5757
workingDir 'src/angular'
5858
if (System.getProperty("os.name").toUpperCase().contains("WINDOWS")){
5959
logger.info('Task buildAngular - npm run test')

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)