2019-03-10 18:19:46 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'org.jetbrains.intellij' version '0.4.3'
|
2019-04-11 23:55:35 +02:00
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.30'
|
2019-03-10 18:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
group 'de.platon42'
|
2019-04-13 18:35:49 +02:00
|
|
|
version '0.5'
|
2019-03-10 18:19:46 +01:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
To run tests in IntelliJ use these VM Options for run configuration
|
|
|
|
-ea -Didea.system.path=build/idea-sandbox/system-test -Didea.config.path=build/idea-sandbox/config-test -Didea.plugins.path=build/idea-sandbox/plugins-test
|
|
|
|
*/
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
2019-04-06 16:53:20 +02:00
|
|
|
testCompile "org.assertj:assertj-core:3.12.2"
|
|
|
|
testCompile "org.assertj:assertj-guava:3.2.1"
|
2019-03-10 18:19:46 +01:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.0'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.0'
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test"
|
2019-04-18 22:12:48 +02:00
|
|
|
// testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
|
2019-03-10 18:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
intellij {
|
2019-04-06 16:53:20 +02:00
|
|
|
version '2019.1'
|
2019-03-10 18:19:46 +01:00
|
|
|
// pluginName 'Concise AssertJ Optimizing Nitpicker (Cajon)'
|
|
|
|
updateSinceUntilBuild false
|
|
|
|
}
|
|
|
|
|
|
|
|
patchPluginXml {
|
|
|
|
changeNotes """
|
2019-04-18 22:12:48 +02:00
|
|
|
<h4>V0.5 (18-Apr-19)</h4>
|
2019-04-13 18:35:49 +02:00
|
|
|
<ul>
|
2019-04-18 22:12:48 +02:00
|
|
|
<li>Fixed incompatibility with IDEA versions < 2018.2 (affected AssertThatSizeInspection). Minimal version is now 2017.3.
|
2019-04-13 18:35:49 +02:00
|
|
|
<li>Fixed missing Guava imports (if not already present) for AssertThatGuavaInspection. This was a major PITA to get right.
|
2019-04-18 22:12:48 +02:00
|
|
|
<li>Added support for referencing and refactoring inside .extracting() methods with fields, properties and methods (though
|
|
|
|
getter renaming does not work that perfect, but I'm giving up for now as the IntelliJ SDK docs are seriously lacking).
|
|
|
|
<li>Fixed an exception in batch mode if the description string was the same but for different fixes.
|
|
|
|
Now descriptions are different for quick fixes triggered by AssertThatJava8OptionalInspection and AssertThatGuavaOptionalInspection.
|
2019-04-13 18:35:49 +02:00
|
|
|
</ul>
|
2019-04-11 23:55:35 +02:00
|
|
|
<h4>V0.4 (11-Apr-19)</h4>
|
2019-04-08 11:54:22 +02:00
|
|
|
<ul>
|
2019-04-11 23:55:35 +02:00
|
|
|
<li>Reduced minimal supported IDEA version from 2018.2 to 2017.2.
|
|
|
|
<li>New inspection AssertThatJava8Optional that operates on Java 8 Optional objects and tries to use contains(), containsSame(), isPresent(), and isNotPresent() instead.
|
|
|
|
<li>New inspection AssertThatGuavaOptional that operates on Guava Optional objects and tries to use contains(), isPresent(), and isAbsent() instead.
|
|
|
|
<li>Added support in AssertThatBinaryExpressionIsTrueOrFalse for is(Not)EqualTo(Boolean.TRUE/FALSE).
|
2019-04-08 11:54:22 +02:00
|
|
|
</ul>
|
|
|
|
<h4>V0.3 (07-Apr-19)</h4>
|
|
|
|
<ul>
|
2019-04-07 11:29:07 +02:00
|
|
|
<li>New inspection AssertThatBinaryExpressionIsTrueOrFalse that will find and fix common binary expressions and equals() statements (more than 150 combinations) inside assertThat().
|
2019-04-06 17:41:32 +02:00
|
|
|
<li>Merged AssertThatObjectIsNull and AssertThatObjectIsNotNull to AssertThatObjectIsNullOrNotNull.
|
2019-04-06 16:53:20 +02:00
|
|
|
<li>Support for hasSizeLessThan(), hasSizeLessThanOrEqualTo(), hasSizeGreaterThanOrEqualTo(), and hasSizeGreaterThan() for AssertThatSizeInspection (with AssertJ >=13.2.0).
|
|
|
|
<li>Really fixed highlighting for JUnit conversion. Sorry.
|
2019-04-08 11:54:22 +02:00
|
|
|
</ul>
|
|
|
|
"""
|
2019-03-10 18:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
// testLogging {
|
|
|
|
// events "passed", "skipped", "failed"
|
|
|
|
// }
|
2019-03-31 21:55:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
publishPlugin {
|
|
|
|
token intellijPublishToken
|
2019-03-10 18:19:46 +01:00
|
|
|
}
|