-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
! build: only depend on aspectjweaver with provided scope, closes #106
- Loading branch information
Showing
3 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
import sbt._ | ||
import sbt.Keys._ | ||
import com.typesafe.sbt.SbtAspectj.{ Aspectj, aspectjSettings } | ||
import com.typesafe.sbt.SbtAspectj.{ Aspectj, defaultAspectjSettings } | ||
import com.typesafe.sbt.SbtAspectj.AspectjKeys.{ aspectjVersion, compileOnly, lintProperties, weaverOptions } | ||
|
||
|
||
object AspectJ { | ||
|
||
lazy val aspectJSettings = aspectjSettings ++ Seq( | ||
lazy val aspectJSettings = inConfig(Aspectj)(defaultAspectjSettings) ++ aspectjDependencySettings ++ Seq( | ||
aspectjVersion in Aspectj := Dependencies.aspectjVersion, | ||
compileOnly in Aspectj := true, | ||
fork in Test := true, | ||
javaOptions in Test <++= weaverOptions in Aspectj, | ||
javaOptions in run <++= weaverOptions in Aspectj, | ||
lintProperties in Aspectj += "invalidAbsoluteTypeName = ignore" | ||
) | ||
|
||
def aspectjDependencySettings = Seq( | ||
ivyConfigurations += Aspectj, | ||
libraryDependencies <++= (aspectjVersion in Aspectj) { version => Seq( | ||
"org.aspectj" % "aspectjtools" % version % Aspectj.name, | ||
"org.aspectj" % "aspectjweaver" % version % Aspectj.name, | ||
"org.aspectj" % "aspectjrt" % version % Aspectj.name | ||
)} | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters