mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-09 09:02:10 +01:00
Compile test classes to java 8 to fix enforcer
This commit is contained in:
committed by
René Pfeuffer
parent
2bf87fb937
commit
217f6348c0
@@ -49,6 +49,10 @@ class JavaModulePlugin implements Plugin<Project> {
|
||||
options.release = 8
|
||||
}
|
||||
|
||||
project.compileTestJava {
|
||||
options.release = 8
|
||||
}
|
||||
|
||||
project.tasks.withType(Javadoc) {
|
||||
failOnError false
|
||||
}
|
||||
|
||||
@@ -38,16 +38,18 @@ buildscript {
|
||||
}
|
||||
apply plugin: 'org.kordamp.gradle.enforcer'
|
||||
|
||||
// https://kordamp.org/enforcer-gradle-plugin/
|
||||
|
||||
enforce {
|
||||
rule(enforcer.rules.RequireGradleVersion) { r ->
|
||||
r.version = '6.7'
|
||||
}
|
||||
rule(enforcer.rules.RequireJavaVersion) { r ->
|
||||
r.version = '11.'
|
||||
r.version = '11'
|
||||
}
|
||||
rule(enforcer.rules.EnforceBytecodeVersion) { r ->
|
||||
r.maxJdkVersion = '1.8'
|
||||
}
|
||||
rule(enforcer.rules.RequireGradleVersion) { r ->
|
||||
r.version = '6.7'
|
||||
}
|
||||
}
|
||||
|
||||
includeBuild 'build-plugins'
|
||||
|
||||
Reference in New Issue
Block a user