mc68000-asm-plugin/build.gradle

96 lines
3.0 KiB
Groovy
Raw Normal View History

2021-07-13 12:32:20 +02:00
plugins {
id 'java'
2022-12-23 20:24:50 +01:00
id 'org.jetbrains.intellij' version '1.11.0'
id 'org.jetbrains.kotlin.jvm' version '1.8.0-RC2'
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'
2022-08-16 21:41:46 +02:00
version = '0.10'
2022-12-23 20:24:50 +01:00
sourceCompatibility = 17
targetCompatibility = 17
2021-07-13 12:32:20 +02: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'
testImplementation 'org.assertj:assertj-core:3.23.1'
2022-12-23 20:24:50 +01:00
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
2021-07-13 12:32:20 +02:00
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-reflect"
2022-12-23 20:24:50 +01:00
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.1'
2021-07-13 12:32:20 +02:00
// testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
}
intellij {
2022-12-23 20:24:50 +01:00
setVersion("2022.3") // LATEST-EAP-SNAPSHOT
setUpdateSinceUntilBuild(false)
// setPlugins(["com.intellij.java"])
2021-07-13 12:32:20 +02:00
}
runPluginVerifier {
2022-12-23 20:24:50 +01:00
ideVersions = ["IC-203.6682.168", "IC-223.7571.182", // 2020.3 - 2022.3
"CL-203.8084.11", // 2020.3
"CL-211.7628.27", // 2021.1
"CL-212.5712.21", // 2021.2
"CL-213.7172.20", // 2021.3.4
2022-10-29 13:28:09 +02:00
"CL-221.5921.22", // 2022.1.3
2022-12-23 20:24:50 +01:00
"CL-222.4345.21", // 2022.2.4
"CL-223.7571.171"] // 2022.3
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("""
2022-08-16 21:41:46 +02:00
<h4>V0.10 (undefined)</h4>
<ul>
2022-08-16 21:41:46 +02:00
<li>New: Added semantic highlighting. Currently available for data and address registers and local labels.
<li>Bugfix: addq/subq for address register stated it would affect the condition codes, which it in fact doesn't.
2022-10-27 13:31:34 +02:00
<li>New: Added simple custom navigation bar.
<li>New: Added folding support for functions and macro definitions.
<li>New: Added assembler directives to code completion (only lower-case except for other directives like IF
and MACRO, which are only suggested for upper-case).
</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"
}
runIde {
jvmArgs '--add-exports', 'java.base/jdk.internal.vm=ALL-UNNAMED'
}
}
tasks.coveralls {
dependsOn jacocoTestReport
2021-07-13 12:32:20 +02:00
}
jacoco {
toolVersion = '0.8.8'
2021-07-13 12:32:20 +02:00
}
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
}