Skip to content

Commit

Permalink
Use gradle version catalogs for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Feb 5, 2024
1 parent 39c9e4b commit 1b453be
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.3.0

Released 2024-02-05

- Update platform check test case
- Update platform checks
- Add mention about local and instrumented testing to README
- Update docs to point to the skip-c-demo sample

## 0.2.4

Released 2023-12-31
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ let package = Package(
.library(name: "SkipFFI", targets: ["SkipFFI"]),
],
dependencies: [
.package(url: "https://source.skip.tools/skip.git", from: "0.7.40"),
.package(url: "https://source.skip.tools/skip-foundation.git", from: "0.3.11")
.package(url: "https://source.skip.tools/skip.git", from: "0.8.0"),
.package(url: "https://source.skip.tools/skip-foundation.git", from: "0.5.0")
],
targets: [
.target(name: "SkipFFI", dependencies: [.product(name: "SkipFoundation", package: "skip-foundation")], plugins: [.plugin(name: "skipstone", package: "skip")]),
Expand Down
21 changes: 19 additions & 2 deletions Sources/SkipFFI/Skip/skip.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# Configuration file for https://skip.tools project
#
# Kotlin dependencies and Gradle build options for this module can be configured here

# the blocks to add to the settings.gradle.kts
settings:
contents:
- block: 'dependencyResolutionManagement'
contents:
- block: 'versionCatalogs'
contents:
- block: 'create("libs")'
contents:
- 'version("jna", "5.14.0")'
- 'library("jna", "net.java.dev.jna", "jna").versionRef("jna")'

# the blocks to add to the build.gradle.kts
build:
contents:
- block: 'dependencies'
export: false
contents:
- 'api(libs.jna) { artifact { type = "aar" } }'
- block: 'dependencies'
contents:
- 'implementation("net.java.dev.jna:jna:5.13.0@aar")'
- 'testImplementation("net.java.dev.jna:jna:5.13.0")'
- 'testImplementation(libs.jna)'

0 comments on commit 1b453be

Please sign in to comment.