2021-07-13 12:32:20 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2024-02-20 22:41:33 +01:00
|
|
|
id 'org.jetbrains.intellij' version '1.17.1'
|
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
|
2021-07-13 12:32:20 +02:00
|
|
|
id 'jacoco'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'de.platon42'
|
2024-02-20 22:41:33 +01:00
|
|
|
version = '0.11'
|
2022-12-23 20:24:50 +01:00
|
|
|
sourceCompatibility = 17
|
|
|
|
targetCompatibility = 17
|
2021-07-13 12:32:20 +02:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2024-02-20 22:41:33 +01:00
|
|
|
To run tests in IntelliJ use these VM Options for run configuration
|
2021-07-13 12:32:20 +02:00
|
|
|
-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 {
|
2021-07-30 14:05:37 +02:00
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
2024-02-20 22:41:33 +01:00
|
|
|
testImplementation 'org.assertj:assertj-core:3.25.3'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
|
2021-07-13 12:32:20 +02:00
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test"
|
2021-07-16 20:00:57 +02:00
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-reflect"
|
2024-02-20 22:41:33 +01:00
|
|
|
testImplementation 'org.junit.platform:junit-platform-launcher:1.10.2'
|
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
|
2021-07-16 20:00:57 +02:00
|
|
|
setUpdateSinceUntilBuild(false)
|
|
|
|
// setPlugins(["com.intellij.java"])
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
2021-07-27 16:43:46 +02:00
|
|
|
runPluginVerifier {
|
2024-02-20 22:41:33 +01:00
|
|
|
ideVersions = ["IC-203.6682.168", "IC-233.14015.106", // 2020.3 - 2023.3
|
|
|
|
"CL-203.8084.11", "CL-233.14015.92"] // 2020.3 - 2023.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-27 16:43:46 +02:00
|
|
|
}
|
|
|
|
|
2021-07-13 12:32:20 +02:00
|
|
|
patchPluginXml {
|
2021-07-16 20:00:57 +02:00
|
|
|
setChangeNotes("""
|
2024-02-20 22:41:33 +01:00
|
|
|
<h4>V0.10 (20-Feb-24)</h4>
|
2021-09-04 13:11:28 +02:00
|
|
|
<ul>
|
2024-02-20 22:41:33 +01:00
|
|
|
<li>Decided to release some features that have been sitting on my harddrive for almost two years, but never got released,
|
|
|
|
because I was unable to get that damn formatter working in a way that was acceptable (the API and the docs are easily one
|
|
|
|
the worst abominations I've come across).
|
|
|
|
<li>Maintenance. Updated all dependencies to the latest versions.
|
2022-08-16 21:41:46 +02:00
|
|
|
<li>New: Added semantic highlighting. Currently available for data and address registers and local labels.
|
2022-10-09 17:20:41 +02:00
|
|
|
<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.
|
2022-10-28 15:21:01 +02:00
|
|
|
<li>New: Added folding support for functions and macro definitions.
|
2022-10-29 13:10:55 +02:00
|
|
|
<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).
|
2021-08-03 10:57:53 +02:00
|
|
|
</ul>
|
2024-02-20 22:41:33 +01:00
|
|
|
<p>Full changelog available at <a href="https://git.platon42.de/chrisly42/mc68000-asm-plugin#changelog">Gitea project site</a>.</p>
|
2021-07-16 20:00:57 +02:00
|
|
|
""")
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
2021-07-16 20:00:57 +02:00
|
|
|
sourceSets.main.java.srcDirs('src/main/gen', 'src/main/java')
|
2021-07-14 13:07:54 +02:00
|
|
|
|
2021-07-13 12:32:20 +02:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events "passed", "skipped", "failed"
|
|
|
|
}
|
2022-08-16 10:54:57 +02:00
|
|
|
runIde {
|
|
|
|
jvmArgs '--add-exports', 'java.base/jdk.internal.vm=ALL-UNNAMED'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-13 12:32:20 +02:00
|
|
|
jacoco {
|
2022-08-16 10:54:57 +02:00
|
|
|
toolVersion = '0.8.8'
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
2021-07-16 20:00:57 +02:00
|
|
|
xml.required.set(true)
|
|
|
|
csv.required.set(false)
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishPlugin {
|
2021-07-16 20:00:57 +02:00
|
|
|
setToken(intellijPublishToken)
|
2024-02-20 22:41:33 +01:00
|
|
|
}
|