Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update intellij plugin #137

Merged
merged 5 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
fudler marked this conversation as resolved.
Show resolved Hide resolved
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
Loading