Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.11.2, 2.12.0
-
Fix Version/s: 2.11.2
-
Component/s: gradle
-
Labels:None
-
Environment:(base) M-000981:jalview jprocter$ gradle --version
------------------------------------------------------------
Gradle 7.1
------------------------------------------------------------
Build time: 2021-06-14 14:47:26 UTC
Revision: 989ccc9952b140ee6ab88870e8a12f1b2998369e
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Oracle Corporation 11.0.10+9)
OS: Mac OS X 11.4 x86_64
(base) M-000981:jalview jprocter$ gradle --version ------------------------------------------------------------ Gradle 7.1 ------------------------------------------------------------ Build time: 2021-06-14 14:47:26 UTC Revision: 989ccc9952b140ee6ab88870e8a12f1b2998369e Kotlin: 1.4.31 Groovy: 3.0.7 Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020 JVM: 11.0.10 (Oracle Corporation 11.0.10+9) OS: Mac OS X 11.4 x86_64
Description
build.gradle doesn't compile with a modern gradle version :
gradle -PJAVA_VERSION=11 compileJava jalviewjs
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/jprocter/git/jalview/build.gradle' line: 2808
* What went wrong:
Could not compile build file '/Users/jprocter/git/jalview/build.gradle'.
> startup failed:
build file '/Users/jprocter/git/jalview/build.gradle': 2808: unable to resolve class SimpleHttpFileServerFactory
@ line 2808, column 33.
SimpleHttpFileServerFactory factory = new SimpleHttpFileServerFactory()
^
build file '/Users/jprocter/git/jalview/build.gradle': 2808: unable to resolve class SimpleHttpFileServerFactory
@ line 2808, column 43.
tpFileServerFactory factory = new Simple
^
2 errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
(base) M-000981:jalview jprocter$
gradle -PJAVA_VERSION=11 compileJava jalviewjs
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/jprocter/git/jalview/build.gradle' line: 2808
* What went wrong:
Could not compile build file '/Users/jprocter/git/jalview/build.gradle'.
> startup failed:
build file '/Users/jprocter/git/jalview/build.gradle': 2808: unable to resolve class SimpleHttpFileServerFactory
@ line 2808, column 33.
SimpleHttpFileServerFactory factory = new SimpleHttpFileServerFactory()
^
build file '/Users/jprocter/git/jalview/build.gradle': 2808: unable to resolve class SimpleHttpFileServerFactory
@ line 2808, column 43.
tpFileServerFactory factory = new Simple
^
2 errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
(base) M-000981:jalview jprocter$