Skip to content

Commit

Permalink
migrate to kotlin, add environment variables & working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
lechuckroh committed Jan 15, 2022
1 parent 5b19898 commit e4efffb
Show file tree
Hide file tree
Showing 30 changed files with 618 additions and 656 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ IntelliJ Run configuration plugin for [Task](https://taskfile.dev/).
## Requirements

* Install `task`. See [here](https://taskfile.dev/#/installation)
* JDK 11 to build from source
* JDK 8 or higher to build from source

## Install from JetBrains Plugin Marketplace

Expand All @@ -29,5 +29,9 @@ Install [Taskfile Plugin](https://plugins.jetbrains.com/plugin/17058-taskfile) b

1. Open 'Run/Debug Configurations'.
2. Add `Taskfile`:
* Task executable: Select `task` executable to run. Set empty to run `task` in `$PATH`.
* Taskfile: Select `Taskfile.yml` file to use.
* Task: Input task name to run.
* CLI arguments: Input [CLI arguments](https://taskfile.dev/#/usage?id=forwarding-cli-arguments-to-commands) to use.
* Working directory
* Environment variables
8 changes: 7 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
version: '3'

tasks:
runIde: ./gradlew runIde
build:
cmds:
- ./gradlew build

runIde:
cmds:
- ./gradlew runIde
23 changes: 19 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.3.0'
id "java"
id "org.jetbrains.kotlin.jvm" version "1.5.32"
id "org.jetbrains.intellij" version "1.3.0"
}

apply plugin: "kotlin"
apply plugin: "org.jetbrains.intellij"

group 'lechuck'
version '1.2.0'
version '1.3.0'

sourceCompatibility = 1.8
targetCompatibility = 1.8

compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}

repositories {
mavenCentral()
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
Expand All @@ -19,6 +34,7 @@ dependencies {
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = '2021.3'
updateSinceUntilBuild = false
}

buildSearchableOptions {
Expand All @@ -28,7 +44,6 @@ buildSearchableOptions {
patchPluginXml {
version = project.version
sinceBuild = '204'
untilBuild = '213.*'
}

publishPlugin {
Expand Down
Binary file modified docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit e4efffb

Please sign in to comment.