mc68000-asm-plugin/build.gradle

91 lines
3.0 KiB
Groovy
Raw Normal View History

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 {
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"
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
setUpdateSinceUntilBuild(false)
// setPlugins(["com.intellij.java"])
2021-07-13 12:32:20 +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-13 12:32:20 +02:00
patchPluginXml {
setChangeNotes("""
2024-02-20 22:41:33 +01:00
<h4>V0.10 (20-Feb-24)</h4>
<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.
<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>
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-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'
}
}
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)
2024-02-20 22:41:33 +01:00
}