Questions tagged [sbt-aspectj]

sbt plugin for weaving with aspectj.

Use this tag if you have questions in relation to using aspectj within your scala build tool

https://github.com/sbt/sbt-aspectj

11 questions
5
votes
1 answer

Using Spring-Data-Neo4j advanced mapping mode in SBT

I'd like to use the advanced mapping mode of spring-data-neo4j in my Scala SBT project (hosted on github): I can store Nodes in the database with the repository, but I cannot make the aspectj-weaving work. This is what I have so…
Felix Dietze
  • 602
  • 7
  • 16
3
votes
0 answers

Why does JavaScript files reloading not work with sbt-aspectj in Play project?

I'm using sbt-aspectj plugin with Play Framework 2.1.5. When I hit refresh, all resources including javascript files are not reloaded automatically -- I need to restart the server in order to get the expected result. It seems that I'm missing…
Ben Rhouma Zied
  • 2,473
  • 3
  • 19
  • 29
3
votes
2 answers

How do you do develop an SBT project, itself?

Background: I've got a Play 2.0 project, and I am trying to add something to do aspectj weaving using aspects in a jar on some of my classes (Java). (sbt-aspectj doesn't seem to do it, or I can't see how). So I need to add a custom task, and have…
mconner
  • 1,174
  • 3
  • 12
  • 24
2
votes
3 answers

AspectJ pointcuts in Scala using SBT

I'm trying to build a hello world example of using AspectJ pointcuts in Scala using the sbt-aspectj plugin. In my plugins.sbt I've added the plugin: addSbtPlugin("com.typesafe.sbt" % "sbt-aspectj" % "0.10.2") and in my build.sbt, I've set it up as…
djsumdog
  • 2,560
  • 1
  • 29
  • 55
2
votes
2 answers

Running ApsctJ in Intellij IDEA with Scala

I am using Intellij IDEA Community Edition 14.0.3 for Scala development. I am having AspectJ in my application. I am using sbt-aspect v0.10.1. I am able to run everything fine when I run the application from SBT console. However, when I use run…
Yadu Krishnan
  • 3,492
  • 5
  • 41
  • 80
1
vote
1 answer

Scala + AspectJ: if() pointcut expressions

I'm using AspectJ library with sbt-aspectj in my Scala project. I'm trying to write @Pointcut with if() expression: @Aspect object PerformanceTracer extends Logger { @Pointcut("@annotation(PerformanceTracing) && execution(* *(..)) && if()") def…
Alex Elkin
  • 574
  • 6
  • 11
1
vote
2 answers

sbt aspectj with native packager

I'm attempting to use the sbt-aspectj plugin with the sbt native packager and am running into an issue where the associated -javaagent path to the aspectj load time weaver jar references an ivy cache location rather than something packaged. That is,…
drobert
  • 1,230
  • 8
  • 21
0
votes
1 answer

Creating an aspectJ library using sbt-aspect

I am in the process of writing a library that does monitoring/OpenTracing and I am attempting to use sbt-aspectj so that users of the library don't need to manually instrument their code. I am currently however getting an issue with creating an…
mdedetrich
  • 1,899
  • 1
  • 18
  • 29
0
votes
2 answers

Configure Kamon and AspectjWeaver in Play application

I'm trying to configure a play application to use Kamon. I've created a new play application using activator new kamon-play play-scala Then I posted it on github. I'm running on OS X 10.11.1 and I'm running JDK 1.8.0_65-b17 and the project is…
Mark J Miller
  • 4,751
  • 5
  • 44
  • 74
0
votes
1 answer

Error while using aspectj with Scala

I am having an application in scala. I need to use AOP for one of the functionality. I used the plugin sbt-aspectj . Everything is working fine when I run using the sbt console. However, I am not able to make it work when using the executable jar. I…
Yadu Krishnan
  • 3,492
  • 5
  • 41
  • 80
0
votes
1 answer

AspectJ plugin for sbt not working

I am trying to add aspectJ plugin to sbt to use kamon with my akka/scala application. But I am not able to configure the aspectJ plugin correctly. Every time I am running the project I am getting this error "AspectJWeaverMissing". I have made below…
alchemist
  • 41
  • 4