mc68000-asm-plugin/build.gradle

95 lines
3.0 KiB
Groovy
Raw Normal View History

2021-07-13 12:32:20 +02:00
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.1.6'
id 'org.jetbrains.kotlin.jvm' version '1.5.21'
2021-07-13 12:32:20 +02:00
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.12.0'
2021-07-13 12:32:20 +02:00
}
group = 'de.platon42'
version = '0.8'
2021-07-13 12:32:20 +02:00
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
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.21.0"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
2021-07-13 12:32:20 +02:00
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-reflect"
2021-07-13 12:32:20 +02:00
// testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += "-Xjvm-default=all"
}
2021-07-13 12:32:20 +02:00
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
intellij {
2021-09-25 21:29:17 +02:00
setVersion("2021.2.2") // LATEST-EAP-SNAPSHOT
setUpdateSinceUntilBuild(false)
// setPlugins(["com.intellij.java"])
2021-07-13 12:32:20 +02:00
}
runPluginVerifier {
2021-09-25 21:29:17 +02:00
ideVersions = ["IC-203.6682.168", "IC-212.5284.40", // 2020.3 - 2021.2.2
"CL-203.5981.166", "CL-203.8084.11", // 2020.3
"CL-211.6693.114", "CL-211.7628.27", // 2021.1
2021-09-25 21:29:17 +02:00
"CL-212.4746.93", "CL-212.5284.51"] // 2021.2 - 2021.2.2
2021-09-04 14:04:12 +02:00
downloadDir = System.getProperty("user.home") + "/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/verifier"
}
2021-07-13 12:32:20 +02:00
patchPluginXml {
setChangeNotes("""
<p>I still got zero feedback and zero <a href="https://plugins.jetbrains.com/plugin/17268-mc68000-assembly-language-support/reviews">ratings</a> :-(</p>
<h4>V0.8 (unreleased)</h4>
<ul>
<li>New: Support for MC68020+ addressing modes! However, MC68020+ specific instructions have not been added yet.
<li>Enhancement: Label documentation now also works for local labels and includes end-of-line comment for label, too.
<li>Enhancement: Symbol definition documentation now also includes comments in the same way as the label documentation does.
<li>New: Macro definition / invocation documentation provider that even tries to expand macros.
<li>New: Added Language settings page with one option so far (-spaces option).
</ul>
2021-07-13 12:32:20 +02:00
<p>Full changelog available at <a href="https://github.com/chrisly42/mc68000-asm-plugin#changelog">Github project site</a>.</p>
""")
2021-07-13 12:32:20 +02:00
}
sourceSets.main.java.srcDirs('src/main/gen', 'src/main/java')
2021-07-13 12:32:20 +02:00
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
jacoco {
toolVersion = '0.8.7'
}
jacocoTestReport {
reports {
xml.required.set(true)
csv.required.set(false)
2021-07-13 12:32:20 +02:00
}
}
publishPlugin {
setToken(intellijPublishToken)
2021-07-13 12:32:20 +02:00
}