ultraq / redhorizon

Recreating the original 2D Command & Conquer games
Apache License 2.0
6 stars 4 forks source link

build error #6

Closed philippkeller closed 3 years ago

philippkeller commented 7 years ago

Hi there, I've just opened a pull request to solve some basic build errors. Still, I'm running into the error below. I know that you don't actively develop this any more, but if you could spend 2 minutes to point me into the right direction I might be able to fix it and do another pull request to revive this project

14:41 $ gradle build
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at aspectj_c43so8izdc8vwzr5jqzpiffqm.run(https://raw.github.com/ultraq/gradle-support/master/aspectj.gradle:30)
:Projects:Red Horizon - Aspects:compileJava UP-TO-DATE
:Projects:Red Horizon - Aspects:processResources UP-TO-DATE
:Projects:Red Horizon - Aspects:classes UP-TO-DATE
:Projects:Red Horizon - Aspects:compileTestJava UP-TO-DATE
:Projects:Red Horizon - Aspects:processTestResources UP-TO-DATE
:Projects:Red Horizon - Aspects:testClasses UP-TO-DATE
:Projects:Red Horizon - Aspects:test UP-TO-DATE
:Projects:Red Horizon - Aspects:jar UP-TO-DATE
:Projects:Red Horizon - Aspects:assemble UP-TO-DATE
:Projects:Red Horizon - Aspects:check UP-TO-DATE
:Projects:Red Horizon - Aspects:build UP-TO-DATE
:Projects:Red Horizon - Filetypes:compileJava UP-TO-DATE
:Projects:Red Horizon - Filetypes:processResources UP-TO-DATE
:Projects:Red Horizon - Filetypes:classes UP-TO-DATE
:Projects:Red Horizon - Filetypes:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
/Users/philipp/oss/redhorizon/Projects/Red Horizon - Filetypes/Tests/redhorizon/filetypes/tests/MixFileTests.java:19: error: package redhorizon.filetypes.mix does not exist
import redhorizon.filetypes.mix.MixFile;
                               ^
/Users/philipp/oss/redhorizon/Projects/Red Horizon - Filetypes/Tests/redhorizon/filetypes/tests/MixFileTests.java:20: error: package redhorizon.filetypes.mix does not exist
import redhorizon.filetypes.mix.MixRecord;
                               ^
/Users/philipp/oss/redhorizon/Projects/Red Horizon - Filetypes/Tests/redhorizon/filetypes/tests/MixFileTests.java:46: error: cannot find symbol
                         MixFile mixfile = new MixFile("Allies.mix", inputstream.getChannel())) {
                         ^
  symbol:   class MixFile
  location: class MixFileTests
/Users/philipp/oss/redhorizon/Projects/Red Horizon - Filetypes/Tests/redhorizon/filetypes/tests/MixFileTests.java:46: error: cannot find symbol
                         MixFile mixfile = new MixFile("Allies.mix", inputstream.getChannel())) {
                                               ^
  symbol:   class MixFile
  location: class MixFileTests
/Users/philipp/oss/redhorizon/Projects/Red Horizon - Filetypes/Tests/redhorizon/filetypes/tests/MixFileTests.java:48: error: cannot find symbol
                        MixRecord record = mixfile.getEntry("affirm1.v00");
                        ^
  symbol:   class MixRecord
  location: class MixFileTests
5 errors
1 warning
:Projects:Red Horizon - Filetypes:compileTestJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':Projects:Red Horizon - Filetypes:compileTestJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.057 secs
philippkeller commented 7 years ago

I figured out that renaming the directories Tests in the projects makes the whole gradle build run through. So this is at least a workaround but not the right solution I guess

ultraq commented 3 years ago

Ah, super old issue, but will close now: the build tools have changed significantly since this was raised and I've hooked it up to Travis CI to make sure it's always building as well. Also, the PR mentioned (#5) was closed/resolved a while ago too!