75 lines
1.9 KiB
Groovy
75 lines
1.9 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.intellij' version '0.4.21'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.4.0-rc'
|
|
id 'jacoco'
|
|
id 'com.github.kt3k.coveralls' version '2.10.1'
|
|
}
|
|
|
|
group 'de.platon42'
|
|
version '1.10'
|
|
|
|
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"
|
|
testImplementation "org.assertj:assertj-core:3.16.1"
|
|
testImplementation "org.assertj:assertj-guava:3.4.0"
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test"
|
|
// testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
intellij {
|
|
version '2020.2'
|
|
// pluginName 'Concise AssertJ Optimizing Nitpicker (Cajon)'
|
|
updateSinceUntilBuild false
|
|
plugins = ['java']
|
|
}
|
|
|
|
patchPluginXml {
|
|
changeNotes """
|
|
<h4>V1.10 (31-Jul-20) Friday the 31st Edition</h4>
|
|
<ul>
|
|
<li>Updated libraries to the latest versions (including AssertJ 3.16.1 and Kotlin 1.40-rc).
|
|
<li>Fixed two possible index out of bounds exceptions in ExtractorReferenceContributor and BogusAssertionInspection.
|
|
</ul>
|
|
<p>Full changelog available at <a href="https://github.com/chrisly42/cajon-plugin#changelog">Github project site</a>.</p>
|
|
"""
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|
|
|
|
jacoco {
|
|
toolVersion = '0.8.5'
|
|
}
|
|
|
|
jacocoTestReport {
|
|
reports {
|
|
xml.enabled true
|
|
csv.enabled false
|
|
}
|
|
}
|
|
|
|
publishPlugin {
|
|
token intellijPublishToken
|
|
} |