Skip to content

Commit e358f05

Browse files
authored
Merge pull request #74 from picimako/160
v1.6.0
2 parents 89af35d + 9a97cb1 commit e358f05

File tree

197 files changed

+389
-382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+389
-382
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ jobs:
4040
- name: Fetch Sources
4141
uses: actions/checkout@v4
4242

43-
# Validate wrapper
44-
- name: Gradle Wrapper Validation
45-
uses: gradle/actions/wrapper-validation@v3
46-
4743
# Set up Java environment for the next steps
4844
- name: Setup Java
4945
uses: actions/setup-java@v4

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
## [Unreleased]
66

7+
## [1.6.0]
8+
### Changed
9+
- Removed the until-build version, so that the plugin potentially will need less new releases when
10+
there is no compatibility issue with a newer IDE major version. The earliest IDE version supported now is 2025.1.
11+
- Updated project dependency versions and fine-tuned their configuration.
12+
- Added some minor simplifications to features.
13+
714
## [1.5.0]
815
### Changed
916
- New supported IDE version range: 2024.3 - 2025.1.*.

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ Some messages, like inspection titles are not yet included, and simply are in th
4646

4747
The following markers are placed on extension point implementations and more important types, to help identify certain aspects of the code:
4848
- `@since <version number>` in javadocs
49-
- `@HasSonarLintAlternative` annotation if an inspection has an alternative in SonarLint
5049

5150
## CI/CD
5251

build.gradle.kts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
group = providers.gradleProperty("pluginGroup").get()
1515
version = providers.gradleProperty("pluginVersion").get()
1616

17-
// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
17+
// Set the JVM language level used to build the project.
1818
kotlin {
1919
jvmToolchain(21)
2020
}
@@ -34,10 +34,10 @@ dependencies {
3434

3535
//Required for 'junit.framework.TestCase' referenced in 'com.intellij.testFramework.UsefulTestCase'
3636
testImplementation(libs.junit)
37-
testImplementation("org.assertj:assertj-core:3.27.3")
38-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
39-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
40-
testImplementation("org.junit.jupiter:junit-jupiter-params:5.11.4")
37+
testImplementation(libs.assertj)
38+
testImplementation(libs.junitJupiterApi)
39+
testRuntimeOnly(libs.junitJupiterEngine)
40+
testImplementation(libs.junitJupiterParams)
4141

4242
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
4343

@@ -50,7 +50,6 @@ dependencies {
5050
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace.
5151
plugins(providers.gradleProperty("platformPlugins").map { it.split(',') })
5252

53-
instrumentationTools()
5453
pluginVerifier()
5554
zipSigner()
5655
testFramework(TestFrameworkType.Platform)
@@ -62,6 +61,7 @@ dependencies {
6261
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
6362
intellijPlatform {
6463
pluginConfiguration {
64+
name = providers.gradleProperty("pluginName")
6565
version = providers.gradleProperty("pluginVersion")
6666

6767
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
@@ -92,7 +92,7 @@ intellijPlatform {
9292

9393
ideaVersion {
9494
sinceBuild = providers.gradleProperty("pluginSinceBuild")
95-
untilBuild = providers.gradleProperty("pluginUntilBuild")
95+
// untilBuild = providers.gradleProperty("pluginUntilBuild")
9696
}
9797
}
9898

@@ -106,13 +106,14 @@ intellijPlatform {
106106
intellijPlatformTesting {
107107
val runTestsInIJCommunity by intellijPlatformTesting.testIde.registering {
108108
type = IntelliJPlatformType.IntellijIdeaCommunity
109-
version = "2024.3"
109+
version = "2025.1"
110110
task {
111111
useJUnitPlatform {
112112
isScanForTestClasses = false
113113
include("**/*Test.class")
114114
//Excluded due to https://github.com/picimako/mockitools/issues/69
115115
exclude("**/MockFieldInitializationInspectionTest.class, **/StubOnlyMockInVerificationInspectionTest.class")
116+
environment("NO_FS_ROOTS_ACCESS_CHECK", true)
116117
}
117118
}
118119
}

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
pluginGroup = com.picimako.mockitools
44
pluginName = Mockitools
55
# SemVer format -> https://semver.org
6-
pluginVersion = 1.5.0
6+
pluginVersion = 1.6.0
77

88
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
9-
pluginSinceBuild = 243
10-
pluginUntilBuild = 251.*
9+
pluginSinceBuild = 251
10+
#pluginUntilBuild = 251.*
1111

1212
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
1313
platformType = IC
14-
platformVersion = 2024.3
14+
platformVersion = 2025.1
1515

1616
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1717
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
@@ -21,7 +21,7 @@ platformPlugins =
2121
platformBundledPlugins = com.intellij.java
2222

2323
# Gradle Releases -> https://github.com/gradle/gradle/releases
24-
gradleVersion = 8.10.2
24+
gradleVersion = 8.13
2525

2626
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2727
kotlin.stdlib.default.dependency = false

gradle/libs.versions.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
[versions]
22
# libraries
33
junit = "4.13.2"
4+
assertj = "3.27.3"
5+
junitJupiter = "5.11.3"
46

57
# plugins
68
changelog = "2.2.1"
7-
intelliJPlatform = "2.0.1"
8-
kotlin = "2.1.0"
9-
lombok = "8.12.1"
9+
intelliJPlatform = "2.5.0"
10+
kotlin = "2.1.20"
11+
lombok = "8.13.1"
1012

1113
[libraries]
1214
junit = { group = "junit", name = "junit", version.ref = "junit" }
15+
assertj = { group = "org.assertj", name = "assertj-core", version.ref = "assertj" }
16+
junitJupiterApi = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junitJupiter" }
17+
junitJupiterEngine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junitJupiter" }
18+
junitJupiterParams = { group = "org.junit.jupiter", name = "junit-jupiter-params", version.ref = "junitJupiter" }
1319

1420
[plugins]
1521
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }

gradle/wrapper/gradle-wrapper.jar

122 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum
@@ -206,7 +205,7 @@ fi
206205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207206

208207
# Collect all arguments for the java command:
209-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210209
# and any embedded shellness will be escaped.
211210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212211
# treated as '${Hostname}' itself on the command line.

src/main/java/com/picimako/mockitools/CallChainAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Copyright 2024 Tamás Balog. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
1+
//Copyright 2025 Tamás Balog. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
22

33
package com.picimako.mockitools;
44

0 commit comments

Comments
 (0)