Skip to content

Commit

Permalink
Drop support for Java 7. Remove tasks deprecated in Gradle 7.0 .
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCoder4eu committed Apr 29, 2021
1 parent d90258d commit 4678f40
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ showConfig.doFirst {

//By default build also the default( plain Bootstrap without Themes ) Jar for Java 8 and 9 only
//defaultTasks 'showConfig', ':java8:defaultJar', ':java9:defaultJar', ':java10:defaultJar', ':java7:jar', ':java6:jar'
defaultTasks 'showConfig', ':java8:defaultJar', ':java11:defaultJar' //, ':java11:defaultJar'
defaultTasks 'showConfig', ':java8:defaultJar', ':java11:defaultJar' //, ':java17:defaultJar' //Next LTS?
4 changes: 2 additions & 2 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ patternfly.version=3.18.1
# Starting with BootsFaces v1.3.1 Java 11 LTS release will be supported dropping Java 9 and Java 10 (No-LTS releases).
# First LTS Release after Java 8 is Java 11, released september 2018
# Default Build uses Java 8
###java6=NO
java7=NO
###java6=NO #DROPPED
###java7=NO #DROPPED
java8=YES
java9=No
java10=No
Expand Down
6 changes: 4 additions & 2 deletions gradleResources/compileLess/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ buildscript {
}
dependencies {
//classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.15.1'
classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:3.1.0'
classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:3.3.1'
//classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:3.1.0'
//classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:3.0.10'
//classpath 'com.bertramlabs.plugins:less-asset-pipeline:2.15.1'
classpath 'com.bertramlabs.plugins:less-asset-pipeline:3.1.0'
classpath 'com.bertramlabs.plugins:less-asset-pipeline:3.3.1'
//classpath 'com.bertramlabs.plugins:less-asset-pipeline:3.1.0'
//classpath 'com.bertramlabs.plugins:less-asset-pipeline:3.0.10'
}
}
Expand Down
4 changes: 2 additions & 2 deletions java11/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
apply plugin: 'java'

//Configurations for Target Java 11 runtime.
sourceCompatibility = '1.7'
sourceCompatibility = '1.8'
targetCompatibility = '11'

compileJava {
sourceCompatibility = '1.7'
sourceCompatibility = '1.8'
targetCompatibility = '11'
}

Expand Down
2 changes: 1 addition & 1 deletion java8/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
apply plugin: 'java'

//Configurations for Target Java 8 runtime.
sourceCompatibility = '1.7'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'

archivesBaseName = 'BootsFaces-OSP'
Expand Down
14 changes: 7 additions & 7 deletions legacyJava/java7/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ mavenCentral()
}

dependencies {
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'com.sun.faces:jsf-api:2.2.14'
compile 'javax.el:javax.el-api:3.0.0'
compile 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20191001.1'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-core:2.0.17-beta'
compileOnly 'javax.servlet:javax.servlet-api:3.1.0'
compileOnly 'com.sun.faces:jsf-api:2.2.14'
compileOnly 'javax.el:javax.el-api:3.0.0'
compileOnly 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20191001.1'
testImplementation 'junit:junit:4.11'
testImplementation 'org.mockito:mockito-core:2.0.17-beta'
// testCompile 'org.jboss.arquillian.protocol:arquillian-protocol-servlet:1.1.8.Final'
// testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:2.1.1'
// testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:2.1.1'
Expand Down Expand Up @@ -112,7 +112,7 @@ jar.dependsOn(":gradleResources:buildResources")
//jar.onlyIf { buildJava7==true }

task defaultJar(type: Jar) {
baseName='BootsFaces-OSP-jre7-default'
archiveBaseName='BootsFaces-OSP-jre7-default'
from(sourceSets.main.output.classesDirs) {
include "**"
}
Expand Down
14 changes: 7 additions & 7 deletions legacyJava/java9/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ mavenCentral()
}

dependencies {
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'com.sun.faces:jsf-api:2.2.14'
compile 'javax.el:javax.el-api:3.0.0'
compile 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20191001.1'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-core:2.0.17-beta'
compileOnly 'javax.servlet:javax.servlet-api:3.1.0'
compileOnly 'com.sun.faces:jsf-api:2.2.14'
compileOnly 'javax.el:javax.el-api:3.0.0'
compileOnly 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20191001.1'
testImplementation 'junit:junit:4.11'
testImplementation 'org.mockito:mockito-core:2.0.17-beta'
// testCompile 'org.jboss.arquillian.protocol:arquillian-protocol-servlet:1.1.8.Final'
// testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:2.1.1'
// testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:2.1.1'
Expand Down Expand Up @@ -104,7 +104,7 @@ jar.dependsOn(":gradleResources:buildResources")
//jar.onlyIf { buildJava9==true }

task defaultJar(type: Jar) {
baseName='BootsFaces-OSP-jre9-default'
archiveBaseName='BootsFaces-OSP-jre9-default'
from(sourceSets.main.output.classesDirs) {
include "**"
}
Expand Down

0 comments on commit 4678f40

Please sign in to comment.