Skip to content

Commit

Permalink
🦄 refactor: Updated Javet to compileOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Oct 1, 2024
1 parent 54d363c commit 1ae935e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- "docs/**"

env:
JAVET_BUDDY_VERSION: 0.1.0
JAVET_BUDDY_VERSION: 0.2.0

jobs:
build_jar:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ JavetBuddy is [Javet](https://github.com/caoccao/Javet) + [ByteBuddy](https://by
<dependency>
<groupId>com.caoccao.javet.buddy</groupId>
<artifactId>javet-buddy</artifactId>
<version>0.1.0</version>
<version>0.2.0</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
Expand All @@ -26,14 +26,14 @@ JavetBuddy is [Javet](https://github.com/caoccao/Javet) + [ByteBuddy](https://by
### Gradle Kotlin DSL

```kotlin
implementation("com.caoccao.javet.buddy:javet-buddy:0.1.0")
implementation("com.caoccao.javet.buddy:javet-buddy:0.2.0")
implementation("net.bytebuddy:byte-buddy:1.14.10")
```

### Gradle Groovy DSL

```groovy
implementation 'com.caoccao.javet.buddy:javet-buddy:0.1.0'
implementation 'com.caoccao.javet.buddy:javet-buddy:0.2.0'
implementation 'net.bytebuddy:byte-buddy:1.14.10'
```

Expand Down
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object Config {
const val BYTE_BUDDY = "1.14.10"
const val JAVA_VERSION = "1.8"
const val JAVET = "3.1.8"
const val JAVET_BUDDY = "0.1.0"
const val JAVET_BUDDY = "0.2.0"
const val JUNIT = "5.10.1"
}
}
Expand All @@ -80,11 +80,11 @@ dependencies {
val os = OperatingSystem.current()
val cpuArch = System.getProperty("os.arch")
if (os.isMacOsX) {
implementation("com.caoccao.javet:javet:${Config.Versions.JAVET}")
compileOnly("com.caoccao.javet:javet:${Config.Versions.JAVET}")
} else if (os.isLinux && (cpuArch == "aarch64" || cpuArch == "arm64")) {
implementation("com.caoccao.javet:javet-linux-arm64:${Config.Versions.JAVET}")
compileOnly("com.caoccao.javet:javet-linux-arm64:${Config.Versions.JAVET}")
} else {
implementation("com.caoccao.javet:javet-macos:${Config.Versions.JAVET}")
compileOnly("com.caoccao.javet:javet-macos:${Config.Versions.JAVET}")
}
implementation(Config.Projects.BYTE_BUDDY)
}
Expand Down
4 changes: 4 additions & 0 deletions docs/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 0.2.0

* Updated Javet to `compileOnly`

## 0.1.0

* Added `JavetReflectionObjectFactory`

0 comments on commit 1ae935e

Please sign in to comment.