Skip to content

Commit

Permalink
Merge pull request #11 from mbeddr/arbitrary-jars-example
Browse files Browse the repository at this point in the history
Example Gradle code to depend on arbitrary JARs
  • Loading branch information
sergej-koscejev authored Oct 5, 2023
2 parents ad09cf9 + a43bee8 commit 9894fe2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,25 @@ The following artifacts are published:
- Since 2021.1, the artifact *com.jetbrains.platform-concurrency* is no longer available.
- Since 2022.2, the artifact *com.jetbrains.platform-api* is no longer available.


# Adding a dependency on arbitrary JAR files from an MPS distribution

This repository only publishes some JAR files and does not publish additional JARs retroactively for older versions. If you are using Gradle, you can add a dependency on an arbitrary selection of JARs from within the MPS distribution as follows (using Gradle Kotlin syntax):

```kotlin
val mpsRuntime by configurations.creating
val mpsZip by configurations.creating

dependencies {
mpsZip("com.jetbrains:mps:...")
mpsRuntime(zipTree({ mpsZip.singleFile }).matching {
include("lib/mps-core.jar")
include("lib/mps-environment.jar")
include("lib/mps-platform.jar")
include("lib/mps-openapi.jar")
include("lib/mps-logging.jar")
include("lib/platform-api.jar")
include("lib/util.jar")
})
}
```

0 comments on commit 9894fe2

Please sign in to comment.