Skip to content

Commit

Permalink
Merge pull request #137 from TNG/feature/update_intellij_plugin
Browse files Browse the repository at this point in the history
Feature/update intellij plugin
  • Loading branch information
fudler authored Oct 25, 2024
2 parents 6d4d7da + 6f2a949 commit f0440e7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
29 changes: 19 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

val jetbrainsPublishUsername: String? by project
val jetbrainsPublishToken: String? by project

plugins {
id("org.jetbrains.intellij") version "1.15.0"
kotlin("jvm") version "1.9.0"
id("org.jetbrains.intellij.platform") version "2.1.0"
id("org.jetbrains.kotlin.jvm") version "2.0.21"
}
val kotlinVersion = project.getKotlinPluginVersion()

Expand All @@ -26,22 +27,30 @@ tasks {

repositories {
mavenCentral()
}

intellij {
version.set("IC-2023.3")
pluginName.set("jgiven-intellij-plugin")
plugins.set(listOf("java"))
intellijPlatform {
defaultRepositories()
}
}

dependencies {
intellijPlatform {
intellijIdeaCommunity("2024.2")
bundledPlugin("com.intellij.java")
instrumentationTools()

testFramework(TestFrameworkType.Plugin.Java)
}

implementation(kotlin("stdlib", kotlinVersion))

testImplementation(kotlin("stdlib-jdk7", kotlinVersion))
testImplementation("com.tngtech.jgiven:jgiven-junit:1.2.5")
testImplementation("com.tngtech.jgiven:jgiven-junit:1.3.0")
testImplementation("com.tngtech.junit.dataprovider:junit4-dataprovider:2.10")
testImplementation("org.assertj:assertj-core:3.24.2")
testImplementation("org.mockito:mockito-core:5.1.1")
testImplementation("org.assertj:assertj-core:3.26.3")
testImplementation("org.mockito:mockito-core:5.14.1")

testImplementation("org.opentest4j:opentest4j:1.3.0")
}

inline operator fun <T : Task> T.invoke(a: T.() -> Unit): T = apply(a)
4 changes: 2 additions & 2 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ repositories {
}

dependencies {
testImplementation 'com.tngtech.jgiven:jgiven-junit:1.2.0'
testImplementation 'com.tngtech.jgiven:jgiven-junit:1.3.0'
testImplementation 'junit:junit:4.13.2'
}
}
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<idea-plugin>
<id>JGivenPlugin</id>
<name>JGiven</name>
<version>0.0.19</version>
<version>0.0.21</version>

<description>Provides support for navigation between JGiven scenario states.</description>
<change-notes>
The plugin now supports IntelliJ version 2023.3.
The plugin now supports IntelliJ version 2024.2.
</change-notes>
<vendor email="[email protected]" url="http://www.tngtech.com">TNG Technology Consulting GmbH</vendor>

Expand Down

0 comments on commit f0440e7

Please sign in to comment.