2019-03-10 18:19:46 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2021-05-06 12:42:23 +02:00
|
|
|
id 'org.jetbrains.intellij' version '0.7.2'
|
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.5.0'
|
2019-05-04 15:36:04 +02:00
|
|
|
id 'jacoco'
|
2021-05-06 12:42:23 +02:00
|
|
|
id 'com.github.kt3k.coveralls' version '2.11.0'
|
2019-03-10 18:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
group 'de.platon42'
|
2021-05-06 12:42:23 +02:00
|
|
|
version '1.12'
|
2020-10-02 19:24:22 +02:00
|
|
|
sourceCompatibility = "1.8"
|
|
|
|
targetCompatibility = "1.8"
|
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"
|
2021-05-06 12:42:23 +02:00
|
|
|
testImplementation "org.assertj:assertj-core:3.19.0"
|
2020-07-30 21:01:34 +02:00
|
|
|
testImplementation "org.assertj:assertj-guava:3.4.0"
|
2021-05-06 12:42:23 +02:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.0-M1'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.0-M1'
|
2019-03-10 18:19:46 +01:00
|
|
|
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"
|
|
|
|
}
|
2020-10-02 18:52:50 +02:00
|
|
|
|
2019-03-10 18:19:46 +01:00
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
2020-10-02 18:52:50 +02:00
|
|
|
|
2019-03-10 18:19:46 +01:00
|
|
|
intellij {
|
2021-05-06 12:42:23 +02:00
|
|
|
version '2021.1.1' // LATEST-EAP-SNAPSHOT
|
2019-03-10 18:19:46 +01:00
|
|
|
// pluginName 'Concise AssertJ Optimizing Nitpicker (Cajon)'
|
|
|
|
updateSinceUntilBuild false
|
2019-07-30 19:42:35 +02:00
|
|
|
plugins = ['java']
|
2019-03-10 18:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
patchPluginXml {
|
|
|
|
changeNotes """
|
2021-05-06 12:42:23 +02:00
|
|
|
<h4>V1.12 (06-May-21)</h4>
|
2020-02-17 18:33:11 +01:00
|
|
|
<ul>
|
2021-05-06 12:42:23 +02:00
|
|
|
<li>Maintenance. Updated various dependencies (Kotlin 1.50.0) and AssertJ 3.19.0
|
|
|
|
<li>Fixed issue#3 reported by hankem where usingRecursiveComparison() was not considered a complex transformation.
|
2019-05-06 20:12:54 +02:00
|
|
|
</ul>
|
2019-04-19 19:33:14 +02:00
|
|
|
<p>Full changelog available at <a href="https://github.com/chrisly42/cajon-plugin#changelog">Github project site</a>.</p>
|
2019-04-08 11:54:22 +02:00
|
|
|
"""
|
2019-03-10 18:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2019-05-04 15:36:04 +02:00
|
|
|
testLogging {
|
|
|
|
events "passed", "skipped", "failed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jacoco {
|
2021-05-06 12:42:23 +02:00
|
|
|
toolVersion = '0.8.7'
|
2019-05-04 15:36:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
2019-05-04 16:40:05 +02:00
|
|
|
xml.enabled true
|
2019-05-04 15:36:04 +02:00
|
|
|
csv.enabled false
|
|
|
|
}
|
2019-03-31 21:55:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
publishPlugin {
|
|
|
|
token intellijPublishToken
|
2019-03-10 18:19:46 +01:00
|
|
|
}
|