Comments (1)
As a workaround, it's pretty easy to implement the logic from the macro directly in build.sbt:
lazy val testTask = taskKey[Unit]("test task")
lazy val otherTask = taskKey[Unit]("dummy task")
otherTask / testTask / fileInputs := Seq(
Glob(file("src").getAbsoluteFile, RelativeGlob.**)
)
otherTask / testTask := {
val changes = (otherTask / testTask / changedInputFiles).value
val current = (otherTask / testTask / allInputFiles).value
val previous = Previous.runtimeInEnclosingTask(otherTask / testTask / inputFileStamps).value
val fileChanges = previous.map(changes).getOrElse(FileChanges.noPrevious(current))
if ((otherTask / testTask).inputFileChanges.hasChanges) {
println("CHANGED")
} else println("NOT CHANGED")
}
from sbt.
Related Issues (20)
- scalacOptions do not follow the delegation rules HOT 6
- SBT console "swallow" keypresses on JDK 22 and Windows 10
- sbt doesn't seem to follow 307 redirects HOT 1
- sbt whatDependsOn does not work anymore HOT 2
- set window title to organization + artifactId + sbt command HOT 1
- Incorrect spacing in build.properties causes sbt bash script to incorrectly choose to use native client
- files that depend on a dynamic class (say C) are not recompiled when C's private fields become public HOT 3
- Not able to start more than one service at a time using different ports. error is SBT server is already booting.
- Unable to track objects with Maps HOT 3
- StackOverflowError when using dependencyBrowseTree HOT 3
- Do not set -Xsource:3 flag automatically HOT 3
- `META-INF/MANIFEST.MF` has no parent zip entry `META-INF/` when packaging to a jar. HOT 1
- `publishLocalAllModule` fails with RuntimeException, "crossScalaVersions is undefined"
- `publishLocal` on the zinc module outputs error HOT 10
- The "update" or "evicted" commands are resolving to a different set of dependencies from just calling "compile" when not using coursier. HOT 6
- sbt >= 1.9.4 doesn't handle packaging type ejb properly HOT 2
- [request]: cli flag for showing compilation errors first at bottom
- Neither .sbtopts nor .jvmopts can be used to set max heap size HOT 4
- Can't seem to fix runtime IllegalAccessError HOT 3
- NoClassDefFoundError Win32NamedPipeServerSocket HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt.