Skip to content

Commit

Permalink
update documentation/changelog + fix a wrong task name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderpann committed Sep 29, 2024
1 parent e4d868c commit fb3b5d4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.29.0

### Changed

- Upgraded to Gradle 8.10.2 and Kotlin to 1.9.24.

### Added

- A few new helper functions are now available through extensions when applying `de.itemis.mps.gradle.common`:
- `ci` (determineCI(), isCI(), buildNumber(), registerDependencyRepositories())
- `jdk` (determine(JavaVersion))
- `itemis` (mbeddrGitHub(), itemisNexus())
- `githubAuth` (user, token)
- `directories` (artifactsDir(), scriptFile(String), jnLibraryPath())
- `de.itemis.mps.gradle.common` creates configurations for MPS (`common_mps`), language dependencies (`common_languageLibs`) and the ant lib (common_antLib) automatically. Tasks `commonCleanMps` and `commonResolveMps` are also created when you apply `de.itemis.mps.gradle.common`.
- The plugin `downloadJbr` has a new flag `defaultJavaExecutable` to set the downloaded JBR as the default Java executable.

### Fixed

- The `GetMpsInBrowser` task works again for all platforms including Mac Apple Silicon.

## 1.28.0

### Added
Expand Down
3 changes: 3 additions & 0 deletions docs/plugins/download-jbr.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ repositories {
downloadJbr {
jbrVersion = "11_0_6-b520.66"
defaultJavaExecutable.set(true) // optional
}
```

Expand All @@ -45,13 +46,15 @@ repositories {
downloadJbr {
jbrVersion = '11_0_6-b520.66'
defaultJavaExecutable.set(true) // optional
}
```

### Parameters

* `jbrVersion` - version of the JBR to download. While this supports maven version selectors we highly recommend not
using wildcards like `*` or `+` in there for reproducible builds.
* `defaultJavaExecutable` - set the downloaded JBR as the default Java executable
* `distributionType` - optional distribution type for the JBR to use. Will default to `jbr_jcef` if omitted.
* `downloadDir` - optional directory where the downloaded JBR is downloaded and extracted to. The plugin defaults to
`build/jbrDownload`.
2 changes: 1 addition & 1 deletion src/main/kotlin/de/itemis/mps/gradle/common.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ tasks.register<Delete>("commonCleanMps") {
}

tasks.named("clean") {
dependsOn("cleanMPS")
dependsOn("commonCleanMPS")
}

extensions.create<GitHubAuth>("githubAuth", project)
Expand Down

0 comments on commit fb3b5d4

Please sign in to comment.