gradle option to ignore cache

fronobulax

Developer
Staff member
I usually run gradle from a command line. Is there a command line parameter I can add that will tell gradle to ignore the cache and redo everything? My web searches only turn up things that don't work for me probably because I am not using an off the shelf build setup for android.
 

MCroft

Developer
Staff member
Does --rerun-tasks work for your setup?

Bash:
Michaels-MBP:kolmafia mcroft$ ./gradlew test


Starting a Gradle Daemon, 9 stopped Daemons could not be reused, use --status for details

> Configure project :

[versioning] WARNING - the working copy has unstaged or uncommitted changes.

> Task :compileJava

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details

> Task :compileTestJava

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

> Task :test


OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

BUILD SUCCESSFUL in 2m 38s

6 actionable tasks: 4 executed, 2 up-to-date


Michaels-MBP:kolmafia mcroft$ ./gradlew test

> Configure project :


[versioning] WARNING - the working copy has unstaged or uncommitted changes.


BUILD SUCCESSFUL in 2s


6 actionable tasks: 6 up-to-date


Michaels-MBP:kolmafia mcroft$ ./gradlew --rerun-tasks test


> Configure project :
[versioning] WARNING - the working copy has unstaged or uncommitted changes.

> Task :compileLibJava
/Users/mcroft/projects/kolmafia/lib/darrylbu/util/MenuScroller.java:448: warning: [removal] finalize() in Object has been deprecated and marked for removal
        public void finalize() throws Throwable {
                    ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

> Task :compileJava
/Users/mcroft/projects/kolmafia/lib/darrylbu/util/MenuScroller.java:448: warning: [removal] finalize() in Object has been deprecated and marked for removal
        public void finalize() throws Throwable {
                    ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

> Task :compileTestJava
Note: /Users/mcroft/projects/kolmafia/test/net/sourceforge/kolmafia/textui/javascript/ValueConverterTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :test
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

> :test > 2498 tests completed, 7 skipped
> :test > Executing test net.sourceforge.kolmafia.scripts.git.GitManagerTest
> :test > Executing test net.sourceforge...git.GitManagerTest$DependencySvnTests
> IDLE
 
Top