Started by GitHub push by Geolykt Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/sponge-mixin-sl The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/sponge-mixin-sl/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/stianloader/SLMixin.git # timeout=10 Fetching upstream changes from https://github.com/stianloader/SLMixin.git > git --version # timeout=10 > git --version # 'git version 2.54.0' > git fetch --tags --force --progress -- https://github.com/stianloader/SLMixin.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision dd100899212dc23289060773fa0d6fc35ffa2982 (refs/remotes/origin/main) > git config core.sparsecheckout # timeout=10 > git checkout -f dd100899212dc23289060773fa0d6fc35ffa2982 # timeout=10 Commit message: "Fix checkstyle" > git rev-list --no-walk 671bbbe86e6c78c9f3709909a0adaa7c3f09b017 # timeout=10 false SCM Skip: Pattern .*\[CI-SKIP\].* NOT matched on message: Fix checkstyle -.- Added the checkstyle task to the publishToMavenLocal task to fix that from happening in the future [Gradle] - Launching build. [sponge-mixin-sl] $ /var/lib/jenkins/workspace/sponge-mixin-sl/gradlew -PpublishRepo=http://localhost:25615/maven clean publish Starting a Gradle Daemon (subsequent builds will be faster) > Configure project : Publishing to http://localhost:25615/maven > Task :clean > Task :compileJava /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/mixin/transformer/EnumInfo.java:201: warning: [serial] serializable class org.spongepowered.asm.mixin.transformer.EnumInfo.AssumptionViolatedException has no definition of serialVersionUID public static final class AssumptionViolatedException extends Exception { ^ /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/mixin/gen/AccessorGeneratorMethodProxy.java:78: warning: [deprecation] getClassNode() in org.spongepowered.asm.mixin.struct.SpecialMethodInfo has been deprecated boolean isInterface = Bytecode.hasFlag(this.info.getClassNode(), Opcodes.ACC_INTERFACE); ^ /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/mixin/gen/AccessorGeneratorMethodProxy.java:81: warning: [deprecation] getClassNode() in org.spongepowered.asm.mixin.struct.SpecialMethodInfo has been deprecated method.instructions.add(new MethodInsnNode(opcode, this.info.getClassNode().name, this.targetMethod.name, this.targetMethod.desc, isInterface)); ^ /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/mixin/gen/AccessorGeneratorFieldSetter.java:56: warning: [deprecation] getClassNode() in org.spongepowered.asm.mixin.struct.SpecialMethodInfo has been deprecated if (Bytecode.hasFlag(this.info.getClassNode(), Opcodes.ACC_INTERFACE)) { ^ /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/mixin/gen/AccessorGeneratorFieldSetter.java:59: warning: [deprecation] getClassNode() in org.spongepowered.asm.mixin.struct.SpecialMethodInfo has been deprecated this.info, this.info.getClassNode().name, this.targetField.name)); ^ 5 warnings > Task :processResources NO-SOURCE > Task :classes > Task :compileJava9Java /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java9/module-info.java:100: warning: [module] module not found: mixinextras.common opens org.spongepowered.asm.mixin.injection to mixinextras.common; ^ /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java9/module-info.java:101: warning: [module] module not found: mixinextras.common opens org.spongepowered.asm.mixin.injection.struct to mixinextras.common; ^ /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java9/module-info.java:102: warning: [module] module not found: mixinextras.common opens org.spongepowered.asm.mixin.transformer to com.google.gson, mixinextras.common; ^ /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java9/module-info.java:103: warning: [module] module not found: mixinextras.common opens org.spongepowered.asm.mixin.transformer.ext to mixinextras.common; ^ /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java9/module-info.java:104: warning: [module] module not found: mixinextras.common opens org.spongepowered.asm.mixin.transformer.ext.extensions to mixinextras.common; ^ 5 warnings > Task :processJava9Resources NO-SOURCE > Task :java9Classes > Task :javadoc > Task :javadocJar > Task :sourcesJar > Task :compileTestJava NO-SOURCE > Task :processTestResources NO-SOURCE > Task :testClasses UP-TO-DATE > Task :test NO-SOURCE > Task :jar > Task :assemble > Task :checkstyleJava9 > Task :checkstyleTest NO-SOURCE > Task :validateHeaders FAILED File /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/util/internal/SLNumberParser.java does not have the correct license header File /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/util/internal/SLArrayUtils.java does not have the correct license header File /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/util/internal/SLHelpers.java does not have the correct license header > Task :checkstyleMain [ant:checkstyle] [ERROR] /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/util/internal/SLNumberParser.java:7:1: Class SLNumberParser should be declared as final. [FinalClass] [ant:checkstyle] [ERROR] /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/util/internal/SLArrayUtils.java:10:1: Class SLArrayUtils should be declared as final. [FinalClass] [ant:checkstyle] [ERROR] /var/lib/jenkins/workspace/sponge-mixin-sl/src/main/java/org/spongepowered/asm/util/internal/SLHelpers.java:10:1: Class SLHelpers should be declared as final. [FinalClass] > Task :checkstyleMain FAILED [Incubating] Problems report is available at: file:///var/lib/jenkins/workspace/sponge-mixin-sl/build/reports/problems/problems-report.html FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * Where: Build file '/var/lib/jenkins/workspace/sponge-mixin-sl/build.gradle' line: 119 * What went wrong: Execution failed for task ':validateHeaders'. > License header validation failed for the following files: SLNumberParser.java SLArrayUtils.java SLHelpers.java * 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':checkstyleMain'. > A failure occurred while executing org.gradle.api.plugins.quality.internal.CheckstyleAction > Checkstyle rule violations were found. See the report at: file:///var/lib/jenkins/workspace/sponge-mixin-sl/build/reports/checkstyle/main.html Checkstyle files with violations: 3 Checkstyle violations by severity: [error:3] * Try: > Run with --scan to get full insights. ============================================================================== 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 1m 15s 10 actionable tasks: 10 executed Build step 'Run with timeout' changed build result to FAILURE Build step 'Run with timeout' marked build as failure Sending notification to Discord. Finished: FAILURE