Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Prepare for release v1.4.0
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Jan 17, 2021
1 parent 50646bc commit 200035f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 17 deletions.
11 changes: 9 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
All notable changes to this project will be documented in this file.

## [Unreleased]
## [1.3.2] -2021-01-13

## [1.4.0] - 2021-01-18

### Added
- Support plugins properties information in jar manifest(#5)

## [1.3.2] - 2021-01-13

### Changed
- Open OmT project When `omegat.projectDir` specified for `runOmegaT` task
Expand Down Expand Up @@ -62,7 +68,8 @@ All notable changes to this project will be documented in this file.
## [0.9.4] - 2017-2-22
## [0.9.1] - 2016-9-25

[Unreleased]: https://github.com/miurahr/omegat-textra-plugin/compare/v1.3.2...HEAD
[Unreleased]: https://github.com/miurahr/omegat-textra-plugin/compare/v1.4.0...HEAD
[1.4.0]: https://github.com/miurahr/omegat-textra-plugin/compare/v1.3.2...v1.4.0
[1.3.2]: https://github.com/miurahr/omegat-textra-plugin/compare/v1.3.1...v1.3.2
[1.3.1]: https://github.com/miurahr/omegat-textra-plugin/compare/v1.3.0...v1.3.1
[1.3.0]: https://github.com/miurahr/omegat-textra-plugin/compare/v1.2.0...v1.3.0
Expand Down
33 changes: 19 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ To apply the plugin, please add one of the following snippets to your `build.gra

```groovy
plugins {
id 'org.omegat.gradle' version '1.3.2'
id 'org.omegat.gradle' version '1.4.0'
}
```
or `build.gradle.kts` in Kotlin;

```kotlin
plugins {
id("org.omegat.gradle") version "1.3.2"
id("org.omegat.gradle") version "1.4.0"
}
```

Expand Down Expand Up @@ -59,7 +59,6 @@ $ ./gradlew translate

This will generate translation result in OmegaT target directory.


## Development of a custom OmegaT plugin

### Step 1: Apply the plugin to your Gradle script
Expand All @@ -68,23 +67,22 @@ To apply the plugin, please add one of the following snippets to your `build.gra

```groovy
plugins {
id 'org.omegat.gradle' version '1.3.2'
id 'org.omegat.gradle' version '1.4.0'
}
```
or in kotlin
```kotlin
plugins {
id("org.omegat.gralde") version "1.3.2"
id("org.omegat.gralde") version "1.4.0"
}
```


### Step 2: `omegat` configuration closure to your `build.gradle` file

```groovy
omegat {
version '5.2.0' // available: 5.2.0, 5.4.1: default
pluginClass "your.plugin.main.className" // mandatory for plugin development
version = "5.3.0" // available: 5.4.1:default, 5.3.0, 5.2.0, 5.1.0, 5.0.0, 4.3.0
pluginClass = "your.plugin.main.className" // mandatory for plugin development
debugPort = 5566 // specify when you use a debugger
projectDir = File(project.projectDir, "test-omt-project").toString()
}
Expand All @@ -98,7 +96,6 @@ When launching `runOmegaT` or `debugOmegaT`, project will build jar file and pla
plugin into temporal configuration folder `build/omegat/plugins` then launch OmegaT
and open OmegaT project at configured as `omegat.projectDir`


### Step 3. Configure dependencies

You can put dependencies with packIntoJar configuration, dependencies are bundled with plugin as Fat-Jar.
Expand All @@ -109,8 +106,19 @@ It is because commons-io is dependency of OmegaT, so we can use it without bundl
```groovy
dependencies {
packIntoJar 'org.slf4j:slf4j-api:1.7.25'
compile 'commons-io:commons-io:2.5'
compile 'commons-lang:commons-lang:2.6'
implementation 'commons-io:commons-io:2.5'
implementation 'commons-lang:commons-lang:2.6'
// ...
}
```

or in kotlin;

```kotlin
dependencies {
packIntoJar("org.slf4j:slf4j-api:1.7.25")
implementation("commons-io:commons-io:2.5")
implementation("commons-lang:commons-lang:2.6")
// ...
}
```
Expand All @@ -129,13 +137,10 @@ plugin.link=https://github.com/miurahr/omegat-onlinedictionary

Here is a table how properties becomes manifest record;


| Data | plugin manifest | gradle.properties | gradle standard property |
| ---- | --------------- | ----------------- | ------------------------ |
| Name | Plugin-Name | n/a | rootProject.name |
| Version | Plugin-Version | n/a | version |
| Author | Plugin-Author | `plugin.author` | n/a |
| Description | Plugin-Description | `plugin.description` | n/a |
| Website | Plugin-Link | `plugin.link` | n/a |


2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
`maven-publish`
}
group = "org.omegat"
version = "1.4.0-SNAPSHOT"
version = "1.4.0"

tasks.compileJava {
options.release.set(8)
Expand Down

0 comments on commit 200035f

Please sign in to comment.