Skip to content

Commit e6b62b7

Browse files
committed
Get AOP working
1 parent 9d87590 commit e6b62b7

File tree

5 files changed

+90
-221
lines changed

5 files changed

+90
-221
lines changed

smart-contract/hyperledger-fabric/v2/java/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ plugins {
1818
application
1919
id("com.github.johnrengelman.shadow") version "7.1.2"
2020
id("com.diffplug.spotless") version "6.19.0"
21+
id("io.freefair.lombok") version "8.6"
22+
id("io.freefair.aspectj.post-compile-weaving") version "8.6"
2123
}
2224

2325
// java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } }
@@ -35,14 +37,14 @@ dependencies {
3537
implementation("org.slf4j:slf4j-api:2.0.13")
3638
implementation("org.slf4j:slf4j-simple:2.0.13")
3739
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
38-
implementation("com.jcabi:jcabi-aspects:0.25.1")
39-
implementation("org.aspectj:aspectjrt:1.9.19")
40-
implementation("org.aspectj:aspectjweaver:1.9.19")
40+
implementation("com.jcabi:jcabi-aspects:0.26.0")
4141
implementation("org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.0")
4242
implementation("org.hyperledger.fabric:fabric-protos:0.3.0")
4343
implementation(files("libs/hypernate-0.1.0-alpha.jar"))
4444
implementation(files("$openJMLDir/jmlruntime.jar"))
4545

46+
aspect("com.jcabi:jcabi-aspects:0.26.0")
47+
4648
testImplementation("org.assertj:assertj-core:3.11.1")
4749
testImplementation("org.junit.jupiter:junit-jupiter:5.4.2")
4850
testImplementation("org.mockito:mockito-core:2.28.2")

smart-contract/hyperledger-fabric/v2/java/specs/hu/bme/mit/ftsrg/chaincode/tpcc/data/entity/Customer.jml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package hu.bme.mit.ftsrg.chaincode.tpcc.data.entity;
44

55
import hu.bme.mit.ftsrg.hypernate.entity.Entity;
66

7-
public class Customer implements Entity {
7+
public final class Customer implements Entity {
88

99
public /*@ pure @*/ int getC_id();
1010

0 commit comments

Comments
 (0)