Skip to content

Commit bec6cbe

Browse files
committed
restoring full java 8 buildability until 1 jan 2024
1 parent af9940e commit bec6cbe

16 files changed

+157
-14
lines changed

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '2.7.9-SNAPSHOT'
3+
id 'org.springframework.boot' version '2.7.9-SNAPSHOT' // cant go beyond this until Java 17
44
id 'io.spring.dependency-management' version '1.1.0'
5-
id("org.sonarqube") version "4.3.0.3225"
5+
id("org.sonarqube") version "3.5.0.2730" // cant go beyond this until Java 11
66
id 'jacoco'
77
id "org.owasp.dependencycheck" version "8.3.1"
88
}
@@ -39,7 +39,7 @@ dependencies {
3939
implementation("com.google.guava:guava:32.1.2-jre")
4040

4141
testImplementation 'com.tngtech.archunit:archunit-junit5:1.1.0'
42-
testImplementation 'org.mockito:mockito-junit-jupiter:5.4.0'
42+
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '4.11.0' // cant go beyond this until Java 11
4343
}
4444

4545
tasks.named('test') {
@@ -77,3 +77,6 @@ jacocoTestReport {
7777
}
7878
}
7979

80+
// Note, on 1 January 2024 this project will abandon support for Java 8, as SonarQube itself requires 17 on the server and 11 on the client and Spring now requires Java 17.
81+
// Java 8 market share is below 33% as this is written and will likely be below 25% by 2024.
82+

src/main/java/com/ldiamond/sqgraph/AssembledSearchHistory.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
package com.ldiamond.sqgraph;
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
11+
package com.ldiamond.sqgraph;
212

313
import java.util.List;
414

src/main/java/com/ldiamond/sqgraph/Config.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Copyright Larry Diamond 2023 All Rights Reserved
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
211
package com.ldiamond.sqgraph;
312

413
import java.io.Serializable;

src/main/java/com/ldiamond/sqgraph/DashboardCellRenderer.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Copyright Larry Diamond 2023 All Rights Reserved
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
211
package com.ldiamond.sqgraph;
312

413
import java.awt.Color;

src/main/java/com/ldiamond/sqgraph/DashboardOutput.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
111
package com.ldiamond.sqgraph;
212

313
import java.awt.image.BufferedImage;

src/main/java/com/ldiamond/sqgraph/GraphOutput.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Copyright Larry Diamond 2023 All Rights Reserved
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
211
package com.ldiamond.sqgraph;
312

413
import java.util.ArrayList;

src/main/java/com/ldiamond/sqgraph/MetricsResults.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Copyright Larry Diamond 2023 All Rights Reserved
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
211
package com.ldiamond.sqgraph;
312

413
import lombok.Data;

src/main/java/com/ldiamond/sqgraph/PDFOutput.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
111
package com.ldiamond.sqgraph;
212

313
import java.awt.image.BufferedImage;

src/main/java/com/ldiamond/sqgraph/SearchHistory.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Copyright Larry Diamond 2023 All Rights Reserved
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
211
package com.ldiamond.sqgraph;
312

413
import java.util.Date;

src/main/java/com/ldiamond/sqgraph/SqgraphApplication.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Copyright Larry Diamond 2023 All Rights Reserved
1+
/**
2+
* Copyright (C) 2023-present Larry Diamond, All Rights Reserved.
3+
*
4+
* This program is distributed in the hope that it will be useful,
5+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
6+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7+
* license linked below for more details.
8+
*
9+
* For license terms, see <https://github.com/larrydiamond/sqgraph/blob/main/LICENSE.md>.
10+
**/
211
package com.ldiamond.sqgraph;
312

413
import java.io.File;

0 commit comments

Comments
 (0)