2021-07-13 12:32:20 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2021-07-16 20:00:57 +02:00
|
|
|
id 'org.jetbrains.intellij' version '1.1.3'
|
|
|
|
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.11.0'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'de.platon42'
|
2021-07-27 12:42:26 +02:00
|
|
|
version = '0.3'
|
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 {
|
2021-07-30 14:05:37 +02:00
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
2021-07-16 20:00:57 +02:00
|
|
|
testImplementation "org.assertj:assertj-core:3.20.2"
|
2021-07-13 12:32:20 +02:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.0-M1'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.0-M1'
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test"
|
2021-07-16 20:00:57 +02:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
intellij {
|
2021-07-30 14:05:37 +02:00
|
|
|
setVersion("2021.2") // 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 {
|
2021-07-30 14:05:37 +02:00
|
|
|
ideVersions = ["IC-193.5662.53", "IC-212.4746.92", // 2019.3.1 - 2021.2
|
2021-07-27 16:43:46 +02:00
|
|
|
"CL-193.5233.103", "CL-193.7288.25", // 2019.3
|
|
|
|
"CL-201.6668.126", "CL-201.8743.17", // 2020.1
|
|
|
|
"CL-202.6397.106", "CL-202.8194.17", // 2020.2
|
|
|
|
"CL-203.5981.166", "CL-203.8084.11", // 2020.3
|
2021-07-30 14:05:37 +02:00
|
|
|
"CL-211.6693.114", "CL-211.7628.27", // 2021.1
|
|
|
|
"CL-212.4746.93"] // 2021.2
|
2021-07-27 16:43:46 +02:00
|
|
|
downloadDir = System.getProperty("user.home") + "/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea"
|
|
|
|
}
|
|
|
|
|
2021-07-13 12:32:20 +02:00
|
|
|
patchPluginXml {
|
2021-07-16 20:00:57 +02:00
|
|
|
setChangeNotes("""
|
2021-07-28 08:00:09 +02:00
|
|
|
<h4>V0.3 (28-Jul-21)</h4>
|
2021-07-27 12:42:26 +02:00
|
|
|
<ul>
|
2021-07-27 20:00:45 +02:00
|
|
|
<li>Enhancement: Macro contents are no longer parsed, added syntax highlighting options for macros.
|
2021-07-27 16:34:49 +02:00
|
|
|
<li>Enhancement: Macro definitions are now word and stub indexed, macro calls reference to definition.
|
|
|
|
<li>Enhancement: Macro definition refactoring and find usages support.
|
|
|
|
<li>Enhancement: Structural View also shows macro definitions.
|
|
|
|
<li>Bugfix: Missing REPT and ENDR assembler directives added.
|
|
|
|
<li>Cosmetics: Changed or added some icons at various places.
|
|
|
|
<li>Performance: Reference search for global labels and symbols now uses stub index.
|
2021-07-27 20:00:45 +02:00
|
|
|
<li>Compatibility: Restored compatibility with IDE versions < 2021.1.
|
|
|
|
<li>Performance: Optimized lexer.
|
2021-07-27 12:42:26 +02:00
|
|
|
</ul>
|
2021-07-27 08:01:03 +02:00
|
|
|
<h4>V0.2 (27-Jul-21)</h4>
|
2021-07-26 10:50:22 +02:00
|
|
|
<ul>
|
2021-07-26 10:59:40 +02:00
|
|
|
<li>Cosmetics: Added (same) icon for plugin as for file type.
|
2021-07-28 08:00:09 +02:00
|
|
|
<li>Performance: Use Word-Index for global labels and symbols instead of iterating over the file.
|
|
|
|
<li>Performance: Use Stub-Index for global labels and symbols.
|
2021-07-26 19:52:48 +02:00
|
|
|
<li>Bugfix: No longer reports a syntax error when file lacks terminating End-Of-Line.
|
|
|
|
<li>Enhancement: Registers are now offered for code completion, making editing less annoying.
|
2021-07-26 10:50:22 +02:00
|
|
|
</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-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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jacoco {
|
|
|
|
toolVersion = '0.8.7'
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|