Skip to content

Commit b6fb547

Browse files
authored
Merge pull request #1319 from microsoft/heya/drop-java-7
Drop java 7
2 parents 049ceae + e0722ae commit b6fb547

File tree

110 files changed

+63
-590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+63
-590
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ If you're interested in contributing, take a look at the general [contributer's
44

55
## Prerequisites
66

7-
1. Java SDK 1.7 or higher
7+
1. Java SDK 1.8 or higher
88
2. Sign-in to [Microsoft Azure](https://azure.com)
99

1010
### Windows Naitive DLLs
@@ -23,8 +23,4 @@ If you're interested in contributing, take a look at the general [contributer's
2323
2. Add GRADLE_HOME/bin to your PATH environment variable
2424
3. In build.gradle add line `apply plugin: 'eclipse'`
2525
4. In Eclipse used _File -> Import Existing Project_ in a workspace.
26-
5. Use `gradle build` to build the project from the command line.
27-
28-
### Notes
29-
30-
* If you are using Java 8+, set JAVA_JRE_7 environment variable to point a Java 7 JRE installation. This will configure the bootstrap classpath to use the Java 7 library jars.
26+
5. Use `gradle build` to build the project from the command line.

gradle/common-java.gradle

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ apply plugin: 'checkstyle'
3131
apply plugin: 'org.owasp.dependencycheck'
3232
apply plugin: 'com.github.spotbugs'
3333

34-
sourceCompatibility = 1.7
35-
targetCompatibility = 1.7
34+
sourceCompatibility = 1.8
35+
targetCompatibility = 1.8
3636

3737
configurations {
3838
compileClasspath.resolutionStrategy.activateDependencyLocking()
@@ -129,38 +129,6 @@ if (hasProperty("JDKToUse")) {
129129
}
130130
updateTestDirectories()
131131

132-
// setting this variable is highly recommended
133-
def java7JreDir = System.env.'JAVA_JRE_7'
134-
def isJava7 = JavaVersion.current().isJava7()
135-
def isJava7Compatible = JavaVersion.current().isJava7Compatible()
136-
137-
if (!isJava7Compatible) {
138-
logger.error "The current JDK version isn't compatible with Java 7: "+JavaVersion.current()+". Please upgrade JDK 1.7+"
139-
if (isBuildServer || isRelease) {
140-
throw new GradleException("incompatible JDK version: ${JavaVersion.current()}; needs 1.7+")
141-
}
142-
}
143-
if (java7JreDir) {
144-
def jre7libDir = fileTree(dir: "$java7JreDir/lib", include: '*.jar')
145-
if (!jre7libDir.any()) {
146-
throw new GradleException("Invalid JAVA_JRE_7 directory. ${jre7libDir.dir} was empty")
147-
}
148-
149-
tasks.withType(JavaCompile) {
150-
options.bootstrapClasspath = jre7libDir
151-
}
152-
} else {
153-
def msg = "IMPORTANT: Environment variable 'JAVA_JRE_7' is not defined - Install JRE 7 and set 'JAVA_JRE_7' to prevent runtime compatibility issues!"
154-
if (!isJava7) {
155-
if (isBuildServer || isRelease) {
156-
logger.error msg
157-
throw new GradleException("JAVA_JRE_7 must be set")
158-
} else {
159-
logger.warn msg
160-
}
161-
}
162-
}
163-
164132
sourceSets {
165133
integrationTest {
166134
java.srcDir file('src/integTest/java')

settings.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ include ':agent:agent'
3636
// Projects for smokeTests
3737
include ':test:smoke'
3838
include ':test:smoke:appServers'
39-
include ':test:smoke:appServers:Tomcat.7'
4039
include ':test:smoke:appServers:Tomcat.8.5'
4140
include ':test:smoke:appServers:JBossEAP.7'
42-
include ':test:smoke:appServers:JBossEAP.6'
4341
include ':test:smoke:appServers:Jetty.9'
4442
include ':test:smoke:appServers:JavaSE'
4543
include ':test:smoke:testApps'

test/fakeIngestion/servlet/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ dependencies {
1414

1515
}
1616

17-
sourceCompatibility = 1.7
17+
sourceCompatibility = 1.8

test/fakeIngestion/standalone/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ dependencies {
1616

1717
mainClassName = 'com.microsoft.applicationinsights.test.fakeingestion.MockedAppInsightsIngestionServer'
1818

19-
sourceCompatibility = 1.7
19+
sourceCompatibility = 1.8

test/smoke/appServers/JBossEAP.6/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/smoke/appServers/JBossEAP.6/build.gradle

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/smoke/appServers/JBossEAP.6/jbosseap6.linux.partial.dockerfile

Lines changed: 0 additions & 33 deletions
This file was deleted.

test/smoke/appServers/JBossEAP.6/jre.excludes.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/smoke/appServers/JBossEAP.6/resources/linux/deploy.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)