Skip to content

build failured. #2

@liudonghua123

Description

@liudonghua123

Hi, I tried to build use ant or gradle publish in github codespaces. but it failed with the following errors.

@liudonghua123 ➜ /workspaces/jython3 (master) $ ant
Buildfile: /workspaces/jython3/build.xml

developer-preinit:

common-dirs:

common-jars:

common-paths:

common-constants:

common-config:

common-version-strings:

init:

antlr-up-to-date:

antlr-gen:

git-present:

git-is-tagged:

git-is-unmodified:

brand-up-to-date:

brand-version-metadata:

brand-version-nogit:

brand-version:
     [echo] Writing git and build metadata to version.properties.
     [echo] jython.version        = 3.0.1a1-DEV
     [echo] build.git.branch      = master
     [echo] build.git.version     = c98b603
     [echo] build.git.tag         = heads/master-dirty

compile:
    [javac] Compiling 897 source files to /workspaces/jython3/build/classes
    [javac] /workspaces/jython3/src/org/python/core/PyXRange.java:18: error: cannot find symbol
    [javac]              doc = BuiltinDocs.xrange_doc)
    [javac]                               ^
    [javac]   symbol:   variable xrange_doc
    [javac]   location: class BuiltinDocs
    [javac] /workspaces/jython3/src/org/python/core/PyXRange.java:105: error: cannot find symbol
    [javac]     @ExposedMethod(doc = BuiltinDocs.xrange___len___doc)
    [javac]                                     ^
    [javac]   symbol:   variable xrange___len___doc
    [javac]   location: class BuiltinDocs
    [javac] /workspaces/jython3/src/org/python/core/PyXRange.java:115: error: cannot find symbol
    [javac]     @ExposedMethod(doc = BuiltinDocs.xrange___getitem___doc)
    [javac]                                     ^
    [javac]   symbol:   variable xrange___getitem___doc
    [javac]   location: class BuiltinDocs
    [javac] /workspaces/jython3/src/org/python/core/PyXRange.java:129: error: cannot find symbol
    [javac]     @ExposedMethod(doc = BuiltinDocs.xrange___iter___doc)
    [javac]                                     ^
    [javac]   symbol:   variable xrange___iter___doc
    [javac]   location: class BuiltinDocs
    [javac] /workspaces/jython3/src/org/python/core/PyXRange.java:134: error: cannot find symbol
    [javac]     @ExposedMethod(doc = BuiltinDocs.xrange___reversed___doc)
    [javac]                                     ^
    [javac]   symbol:   variable xrange___reversed___doc
    [javac]   location: class BuiltinDocs
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 5 errors

BUILD FAILED
/workspaces/jython3/build.xml:747: Compile failed; see the compiler error output for details.

Total time: 13 seconds
@liudonghua123 ➜ /workspaces/jython3 (master) $ gradle publish
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

[Incubating] Problems report is available at: file:///workspaces/jython3/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* Where:
Build file '/workspaces/jython3/build.gradle' line: 669

* What went wrong:
A problem occurred evaluating root project 'jython-slim'.
> Could not set unknown property 'classifier' for task ':testJar' of type org.gradle.api.tasks.bundling.Jar.

* 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 8s
@liudonghua123 ➜ /workspaces/jython3 (master) $ gradle publish --warning-mode all
Executing Gradle on JVM versions 16 and lower has been deprecated. This will fail with an error in Gradle 9.0. Use JVM 17 or greater to execute Gradle. Projects can continue to use older JVM versions via toolchains. Consult the upgrading guide for further information: https://docs.gradle.org/8.14.2/userguide/upgrading_version_8.html#minimum_daemon_jvm_version

> Configure project :
Build file '/workspaces/jython3/build.gradle': line 67
The org.gradle.api.plugins.JavaPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.14.2/userguide/upgrading_version_8.html#java_convention_deprecation
        at build_c8enjkqhw4q430r9m9w0psey1.run(/workspaces/jython3/build.gradle:67)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/workspaces/jython3/build.gradle': line 68
The org.gradle.api.plugins.JavaPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.14.2/userguide/upgrading_version_8.html#java_convention_deprecation
        at build_c8enjkqhw4q430r9m9w0psey1.run(/workspaces/jython3/build.gradle:68)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/workspaces/jython3/build.gradle': line 233
The AbstractCompile.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the destinationDirectory property instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.14.2/userguide/upgrading_version_7.html#compile_task_wiring
        at build_c8enjkqhw4q430r9m9w0psey1$_run_closure7.doCall$original(/workspaces/jython3/build.gradle:233)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_c8enjkqhw4q430r9m9w0psey1.run(/workspaces/jython3/build.gradle:231)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/workspaces/jython3/build.gradle': line 311
The WriteProperties.outputFile property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the destinationFile property instead. For more information, please refer to https://docs.gradle.org/8.14.2/dsl/org.gradle.api.tasks.WriteProperties.html#org.gradle.api.tasks.WriteProperties:outputFile in the Gradle documentation.
        at build_c8enjkqhw4q430r9m9w0psey1$_run_closure12.doCall$original(/workspaces/jython3/build.gradle:311)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_c8enjkqhw4q430r9m9w0psey1.run(/workspaces/jython3/build.gradle:307)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/workspaces/jython3/build.gradle': line 651
The org.gradle.api.plugins.JavaPluginConvention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.14.2/userguide/upgrading_version_8.html#java_convention_deprecation
        at build_c8enjkqhw4q430r9m9w0psey1$_run_closure20$_closure52.doCall$original(/workspaces/jython3/build.gradle:651)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_c8enjkqhw4q430r9m9w0psey1$_run_closure20.doCall$original(/workspaces/jython3/build.gradle:644)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

[Incubating] Problems report is available at: file:///workspaces/jython3/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* Where:
Build file '/workspaces/jython3/build.gradle' line: 669

* What went wrong:
A problem occurred evaluating root project 'jython-slim'.
> Could not set unknown property 'classifier' for task ':testJar' of type org.gradle.api.tasks.bundling.Jar.

* 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 1s
@liudonghua123 ➜ /workspaces/jython3 (master) $ 

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions