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)
- Command alias doesn't work with the project prefix HOT 1
- Allow the sbt launcher to be called programmatcially without running into an `exit` call HOT 10
- Compile ClassCastException HOT 1
- Unreachable case warning (E121) in inline generic function HOT 2
- Pipelining prevents Java compilation with `compileOrder := JavaThenScala` config
- sbt-coursier does not enable configuration of the `FileCache.localArtifactsShouldBeCached` setting
- Ivy revision latest version Semver syntax is buggy. HOT 1
- "value getOffsetStatic is not a member of object scala.runtime.LazyVals" while testing Java-only library with ScalaTest + Scala 3.4.1 HOT 9
- Please update the documentation HOT 1
- Sbt server displays weird characters around dates on Windows HOT 6
- java exception during first attempt to do REPL completion by TAB in sbt console on Scala 3.4.1 HOT 3
- Error message in log when compiling: BufferStrategyPaintManager$ HOT 5
- Sbt build times substantially slower on Windows vs Ubuntu. HOT 1
- `sbt.PluginData#dependencyClasspath` contains multiple `scala-library/compiler/reflect/xml` jars HOT 6
- How to report slowness issues from built-in resolver repo.typesafe.com (scala.jfrog.io)? HOT 16
- NPE when compiling HOT 1
- Fail to boot with match error with `scala-tools-releases` in `repositories` HOT 2
- Project not found when running with ++scalaVersion HOT 1
- Unable to run tests with javaOptions HOT 2
- Scala program does not receive EOF when using `sbt run`
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.